Sunday 28 February 2016

Diplama project

RAILWAY CRACK DETECTION SYSTEM


Software Tools:

               AVR STUDIO
               Extreme burner

Hardware Tools

               AVR programmer
               AVR development board
               IR sensor
               RF transreciver

Concept:
             a robot roll on the railway track and an IR crack detection system fixed with the robot. When any crack detected the robot stop and inform about the crack to near station.

Programme:

/*
 * Railway crack detection system .c
 *
 * Created: 16/02/2016 2:40:44 AM
 *  Author: SURIA SARATH
 */


#include <avr/io.h>

int main(void)
{
DDRA=0x00;
DDRB=0xff;
DDRC=0xff;
PORTA=0x00;
    while(1)
    {
        if (PINA & (1<<PA0)==1)
        {
PORTB=0x0a;
PORTC=0x00;

        }
else if(PINA | (1<<PA0)==1)
{

PORTB=0X00;
PORTC=0x01;
}
    }
}


No comments:

Post a Comment