Srishti 2012 Electronics Section
Srishti 2012 Electronics Section
Electronics Section
SCARED BOT
Made by :-
1. Atmega 16
Small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals. Digital IO is the most fundamental mode of connecting a MCU(microcontroller) to external world. The interface is done using what is called a port. A port is the point where data internal to MCU chip comes out . They are present in form of PINS of the IC. Most of the PINs are dedicated to this function and other pins are used for power supply,clock
3. IR sensors
4. Dc motors
For rotating wheels in a specific direction ,motors are used .
Avr Programming
back
PORTD
PORTC center
right
{ r=0; } if(bit_is_set(PINC,2)) { c=1; } else { c=0; } if(bit_is_set(PINC,6)) { l=1; } else { l=0; } if(bit_is_set(PINC,7)) { p=1; } else { p=0; } } void find_f() { if( l==1 && { f=0; return; } if( l==0 && { f=0; return; } if( l==0 && { f=1; return; } if( l==0 && { f=1; return; } if( l==1 && { f=-1; return;
} if( l==1 && c==1 && r==0) { f=-1; return; } if( l==1 && c==1 && r==1) { f=5; return; } else { f=10; return; } } void move11() { PORTD=0b00110101; } void move10() { PORTD=0b00110111; } void move01() { PORTD=0b00111101; } void move00() { PORTD=0b00111111; }
if(p==1) { switch(f) { case 5: move00(); break; case 0: move11(); break; case 1: move10(); break; case -1:move01();
Uses: 1) As a path guider for persons strange to locations. 2) For cloth collection in our hostels. 3) For collecting daily reports in offices. Can be further converted to line maze follower by simple changes in coding . Can be used in stores to carry goods from one place to another . By using different types of sensors ,we can make it such that it can move in our desired direction .
Acknowledgement: I have gained a lot of knowledge in this well managed and the most interesting section. I thank to all seniors for helping me to make such a good robot using microcontroller.