Wednesday, December 21, 2016

Hamdard University 2016 SCONEST & HU STEM

Hamdard University has organized 5th IEEE Student Conference on Engineering Sciences and Technology (SCONEST 2016) along with 1st Hamdard University Science Technology Engineering and Mathematics (HU STEM 2016) Research Symposium. I was assigned the job of Conference Secretary for SCONEST 2016. It was a great opportunity and nice experience. In the opening session at Bait al-Hikmah Auditorium on December 14, 2016 snap below (from left) Prof. Dr. Manzoor Hussain Soomoro (at Podium), President ECO4Science Foundation and Chief Guest, Dr. Tariq Javid (myself), Prof. Dr. Pervez Akhtar, Director HIET and Conference Co-Chair, Prof. Dr. Hk. Abdul Hannan, Vice Chancellor and Conference General Chair, Engr. Irfan Ahmad, Advisor on Renewable Energy China Hydro Power Project, Prof. Dr. Vali Uddin, Dean FEST and Conference Chair, and Mr. Ali Suleman, Chair IEEE HIET Student Branch.

Saturday, December 17, 2016

How to write and present your work?

The presentation [LINK] is delivered on Friday December 2, 2016 at Hamdard Institute of Engineering & Technology (HIET), Hamdard University. The presentation focus on use of simple and direct English language to write and present research work.


Wednesday, September 7, 2016

Memory Recall: BCBGC-09 USA

In 2009, NUST sponsored a visit to Orlando, USA to present research work at BCBGC-09. Few pictures are posted here (courtesy of Syed Nayyer Abbas Kazmi, IIU, Islamabad).






Dia Diagram Editor

Dia is an application available at LINK to create technical diagrams. A very useful, however, requires sparing sometime to learn. For starters, you may need to try "Toggles snap-to-grid" and "Toggles object snapping." Further, on properties set Font and Font size.










Wednesday, June 15, 2016

Photos from ICEEST 2016

There are two papers in this conference which is organized by Iqra University, Karachi. The papers are presented by Engr. Azhar Dilshad and Engr. Pardeep Kumar. Two keynote speakers and session chairs are Dr. Vali Uddin Abbas and Dr. Muhammad Faisal Khan. Well, my contribution is in the form of a couple of questions. Photos are courtesy of Azfar Ghani







Tuesday, May 31, 2016

Application: Fuzzy Logic Image Processing

The same MATLAB code at [LINK] is applied with a change of image only. Both input and output are shown below for record.



Monday, May 9, 2016

Example 4-1 from Make: AVR Programming (2014)

This post is based on classroom demonstration of Example 4-1 from book Make: AVR Programming by Elliot Williams. The demonstration has three variations in cylonEyes.c listing on pp. 60-61. The Proteus simulation model is shown below. Then comes program codes and a short movie clip.

// Example 4-1. cylonEyes.c modified listing 1
// ------- Preamble -------- //
#include <avr/io.h>     /* Defines pins, ports, etc */
#include <util/delay.h> /* Functions to waste time */
#define DELAYTIME 1000  /* milliseconds */
#define LED_PORT  PORTB
#define LED_PIN   PINB
#define LED_DDR   DDRB
int main(void) {
// -------- Inits --------- //
uint8_t i = 0;
LED_DDR = 0xff;         /* Data Direction Register B: all set up for output */
// ------ Event loop ------ //
while (1) {
            while (i < 7) {
                            LED_PORT = (1 << i);    /* illuminate only i'th pin */
                            _delay_ms(DELAYTIME);   /* wait */
                            i = i + 1; /* move to the next LED */
                          }
            while (i > 0) {
                            LED_PORT = (1 << i);    /* illuminate only i'th pin */
                            _delay_ms(DELAYTIME);   /* wait */
                            i = i - 1; /* move to the previous LED */
                          }
          } /* End event loop */
return (0);
}

// Example 4-1. cylonEyes.c modified listing 2
// ------- Preamble -------- //
#include <avr/io.h>     /* Defines pins, ports, etc */
#include <util/delay.h> /* Functions to waste time */
#define DELAYTIME 1000  /* milliseconds */
#define LED_PORTB   PORTB
#define LED_PINB    PINB
#define LED_DDRB    DDRB
#define LED_PORTD   PORTD
#define LED_PIND    PIND
#define LED_DDRD    DDRD
int main(void) {
// -------- Inits --------- //
uint8_t i = 0;
uint8_t j = 0;
LED_DDRB = 0xff;         /* Data Direction Register B: all set up for output */
LED_DDRD = 0xff;
// ------ Event loop ------ //
while (1) {
            while (i < 7) {
                            LED_PORTB = (1 << i);    /* illuminate only i'th pin */
                            LED_PORTD = (1 << j);
                            _delay_ms(DELAYTIME);    /* wait */
                            i = i + 1;               /* move to the next LED */
                            j = i;
                          }
            while (i > 0) {
                            LED_PORTB = (1 << i);    /* illuminate only i'th pin */
                            LED_PORTD = (1 << j);
                            _delay_ms(DELAYTIME);   /* wait */
                            i = i - 1;              /* move to the previous LED */
                            j = i;
                          }
          } /* End event loop */
return (0);
}

// Example 4-1. cylonEyes.c modified listing 3
// ------- Preamble -------- //
#include <avr/io.h>     /* Defines pins, ports, etc */
#include <util/delay.h> /* Functions to waste time */
#define DELAYTIME 1000  /* milliseconds */
#define LED_PORTB   PORTB
#define LED_PINB    PINB
#define LED_DDRB    DDRB
#define LED_PORTD   PORTD
#define LED_PIND    PIND
#define LED_DDRD    DDRD
int main(void) {
// -------- Inits --------- //
uint8_t i = 0;
uint8_t j = 7;
LED_DDRB = 0xff;         /* Data Direction Register B: all set up for output */
LED_DDRD = 0xff;
// ------ Event loop ------ //
while (1) {
            while ((i < 7)&&(j > 0)) {
                            LED_PORTB = (1 << i);    /* illuminate only i'th pin */
                            LED_PORTD = (1 << j);
                            _delay_ms(DELAYTIME);    /* wait */
                            i = i + 1;               /* move to the next LED */
                            j = j - 1;
                          }
            while ((i > 0)&&(j < 7)) {
                            LED_PORTB = (1 << i);    /* illuminate only i'th pin */
                            LED_PORTD = (1 << j);
                            _delay_ms(DELAYTIME);   /* wait */
                            i = i - 1;              /* move to the previous LED */
                            j = j + 1;
                          }
          } /* End event loop */
return (0);
}