Friday, June 29, 2012

Temperature Tracker using LabVIEW

This is a software that can track the outcoming temperature. Once the room temperature exceeds certain value ( in this case 29 degree Celcius), the fan will turn on.

Here is how the front panel looks like

and here is the Block Diagram 



Wire Wrapping

Wire-Wrapping is a method for making electric circuit board. There are other ways, such as using breadboard and through Printed Circuit Board(PCB). But Wire wrapping is cheaper to make than breadboard and simpler than PCB.
The picture shown is an example of wire-wrapping.

Wednesday, June 13, 2012

999 Counter

999 counter Video on Youtube
C code on AVR microcontroller (ATmega8515L)

#include<mega8515.h>


void loopDelay(unsigned int n)
{
while (n > 0)
    {
 
    n--;
    }
}

static unsigned  char SEVEN_SEG[] = { 0x3F, 0x06, 0x5B, 0x4F, 0x66, 0x6D, 0x7D, 0x07, 0x7F, 0x6F};
unsigned int counter = 0x00;
unsigned int k = 0;
void main(void)
{
DDRA = 0xFF;  //Set all pin as O/P
DDRE = 0x07;
PORTE = 0x07;  // LED-on, BUZZ-off
DDRC = 0x07;

while (1)
    {        
       
        if (counter > 999) counter = 0x00;
       
        for (k=0;k<100;k++)
        {      
        PORTA = SEVEN_SEG[counter/100];
        PORTC = 0x04;            
        loopDelay(100);
        PORTA = SEVEN_SEG[(counter%100)/10];
        PORTC = 0x02;              
        loopDelay(100);
        PORTA = SEVEN_SEG[counter%10];
        PORTC = 0x01;              
        loopDelay(100);
       
        }
           
               
        counter ++;                      
    }              
}