Step 1: Getting the Materials:
1. One chassis (you can use any as of your convenience).
2. Four gear motors (I used 200 rpm motor).
3. Four wheels.
4. Female bolt (comes with gear motor).
1. Two batteries- 6V 1.2A maintenance-free lead acid battery (you can use Li-Po too or only one cell, but it shoud be greater than 5V and have high current).
2. Wire stripper and cutter
3. Nose plier
4. Single threaded (hook-up) wires (multi colors).
5. One breadboard (174mm x 67mm).
7. IR-Photodiode sensor (if you can't find it, the ckt is discussed in this instructable).
8. Resistors- 270Ω, 10kΩ.
9. Capacitors- 10μF electrolytic, 33pF ceramic.
10. 11.0592MHz oscillator .
11. A burner for programing AT89S52. I have used ZF-007 ISP Programmer.
For IR proximity sensor:
1. Resistors- four 10kΩ, four 270Ω.
2. Potentiometers- four 10kΩ.
3. LEDs- four IR, four photodiode.
4. Copper clad board or blank PCB.
Step 2: Building the Chassis
Step 3: Placing the Batteries
Step 4: Making the IR and Photodiode Sensor
You can use blank pcb or copper clad board to make this. The pcb layout file and circuit diagram is given below.
Step 5: Getting Circuit Ready
Note: L293D will provide the same output voltage that is given to pin no. 8. so check the motor specification and select appropriate battery.
Step 6: Connecting Proximity Sensors
The connection of proximity sensors are very easy. We need to connect the data terminals to INPUT- of LM324 (please refer to datasheet for perfect understanding. Now we need to connect the variable resistor terminal to INPUT+ of LM324. The positive and negative terminals of proximity sensors are connected to the +5V supply. Always take care while inserting the leads into the breadboard as if it's not inserted properly, it won't work.
Now let's see the programming part.
Step 7: Programming Your IC
NOTE: The programming softwares i used are crac*ed softwares so you have to download those softwares first and then install as the instruction says. i've uploaded the c file and the hex file. Download it.
Step 8: Check Everything and Start Playing...
If everything is right, start playing.
I've uploaded a video of this.
NOTE: The video is with 5 IR sensors. You can also do it by adding extra IR sensor at the middle, a LM324 and changing some programming.
The robot still have some bugs because of those cheap IR sensors. These bugs can be removed by using good quality IR sensors like sharp, etc.
My next instructables will be Cheap solder hands with magnifine glass, fume extractor (picture below)