Introduction: Techno Bot:obstruction Avoider
hello,im aryan ,here is my obstruction avoiding robot TECHNOBOT
you'll need
arduino uno r3
ir sensor
l293d motor driver ic
3 9v batteries
2x12v motors
set of jumper cables
chasis
2xmotor brackets
6x nuts&bolts
2 xwheels
1x castor wheel
Step 1: Setting the Chasis
stick arduino on the chasis as shown here.
then in the same way the ic.
and the ir sensor in the front(eyerything is to be stuck by double sided tape)
Step 2: Mounting the Motors
on 2-3 cm away of the chasis's end mount the brackets.
each is to be fixed by 2 bolts on the end
Step 3: Fixing the Castor
on middle of the front part of the chasis fix the castor.also with 2 bolts .
Step 4: Code
d/*
Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain. */ // Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int enable34 = 6;
int enable12=7;
int motor1b=8;
int motor1y=9;
int motor2b=10;
int motor2y=11;
int sespow=2;
int sesb=3; int data;
// the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(enable34, OUTPUT);
digitalWrite(enable34, HIGH);
pinMode(enable12, OUTPUT);
digitalWrite(enable12, HIGH);
pinMode(motor1b, OUTPUT);
pinMode(motor1y, OUTPUT);
pinMode(motor2b, OUTPUT);
pinMode(motor2y, OUTPUT);
pinMode(sespow, OUTPUT);
digitalWrite(sespow, HIGH);
pinMode(sesb, INPUT); }
// the loop routine runs over and over again forever: void loop() { data=digitalRead(sesb); if(data==HIGH) { digitalWrite(motor1b, LOW); // turn the LED on (HIGH is the voltage level) digitalWrite(motor1y, HIGH); digitalWrite(motor2b, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(motor2y, LOW); } else { digitalWrite(motor1b, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(motor1y, LOW); digitalWrite(motor2b, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(motor2y, LOW); }
}
Step 5: Wiring
do it ad per the code.
!!ENJOY!!!