Let us look into the Random Access Mode functionality of APR9600 in my next post
Sunday, May 30, 2010
Introduction to Random Access Mode of APR 9600
Let us look into the Random Access Mode functionality of APR9600 in my next post
Thursday, April 29, 2010
Introduction to APR9600
Tuesday, April 13, 2010
Saline Level monitoring using LDR
The LDR sensor circuit consists of a comparator, an LDR and a pair of multi-turn preset resistor (10k ohm). The LDR is connected in series with a preset resistor forms a voltage divider configuration. When no laser beam falls on the LDR its resistance will be very high compared to 10k ohm. So by voltage divider rule small voltage will be available across the preset resistor. But when laser beam falls on the LDR its resistance becomes almost zero. So voltage across the preset will become nearly 5V. This change in voltage across the preset can be detected using a comparator. Comparator is constructed using UA741. The threshold voltage can set using another 10k ohm preset connected to the inverting input of the opamp.
In normal condition output of comparator remains at logic zero because the laser beam is distracted by the saline present in the bottle, but when saline level reduces, the distraction is lost and the laser beam falls on the LDR, because of this comparator output changes to logic one. This change is used by microcontroller to detect the quantity in the saline bottle.
Sunday, April 4, 2010
Introduction to EMAS-Wi Tech
Sunday, March 28, 2010
Emergency Announcement System In Hospital Using Wireless Technology
The advancement in technology had favored many fields. The Emergency announcement systems present in the hospitals nowadays, are not implemented real time and any crucial data is transmitted through wired means. There is a probability for the crucial data to get lost, by not reaching the right person at the right time. Our system is designed to overcome these drawbacks by transmitting the data obtained from sensors to the respected persons through wireless means. Sensors are provided to measure the physical values e.g. Saline level, heart beat, etc. The outputs from these sensors are fed to the microcontroller which is monitoring continuously. When abnormal input conditions were sensed by the microcontroller, it transmits respective message to the intended person immediately through wireless medium. The entire system is designed to provide a cost effective solution to save the life of people in need.
More details on my next post.....
NOTE: AU PERS center has been shutted down last year
Friday, November 28, 2008
The usage of ‘gets’ statement in C Programming
Well we have already discussed about the usage of ‘fflush’ statement, let us now discuss about the usage of ‘gets’ statement. String is an array of characters and we use the format specifier ‘%s’ to directly get these array of characters, which is not possible in the case of array of integers. In the case of array of integers we use the ‘for’ loop to get the values since we don't have any format specifier for array of integers.
To get array of characters we use the format specifier ‘%s’ as shown below
puts(“Enter the string”);
scanf(“%s”,ex_str);
puts(ex_str);
Enter a string
sample text
sample
puts(“Enter a string”);
gets(ex_str);
puts(ex_str);
Enter a string
sample text
sample text
Just think of getting a name of a person which contains first name, last name and middle name so this ‘gets’ statement is much useful in those situations. Happy Programming!!
Saturday, November 15, 2008
The usage of ‘fflush’ statement in C programming
{
int num;
char ch;
clrscr();
printf(“Enter a number\n”);
scanf(“%d”,&num);
printf(“Enter a character\n”);
scanf(“%c”,&ch);
printf(“The value of num is %d and ch is %c”,num,ch);
getch();
}
The output of the program is shown below
12
Enter a character
The value of num is 12 and ch is
Wonder why this happens? Well let us look at the problem. When you type the number 12 and press ‘Enter’ key, the value corresponding to key press ‘1’ and ‘2’ is read from the input buffer and gets assigned to the variable ‘num’ once you press the ‘Enter’ key(delimiter). Now the value of the ‘Enter’ key is stored in the input buffer. So when you want to read a character, the value of the ‘Enter’ key which is stored in the input buffer is assigned to the character variable ‘ch’. This results in giving a wrong output. This is where the ‘fflush’ command comes into picture. The ‘fflush’ clears the specified buffer, so after getting the integer value we need to clear the input buffer (which stores the ‘Enter’ key value) before getting the character value. So the C program is changed as shown below.
printf(“Enter a number\n”);
scanf(“%d”,&num);
fflush(stdin);
printf(“Enter a character\n”);
scanf(“%c”,&ch);
Hope you know understood the importance of ‘ffush’ statement