Hi all,
Using the great tutorial here on this website about the $50 robot, I created my very own robot.
My robot does have some differences with the one in the tutorial:
- The shop was out of atmega8's, so I bought the atmega32, it's the same one we used in university (5 years ago for me).
Of course the connections were different, and also the A/C convertor was on different ports. - I only use 1 photoresistor, because the 2nd broke during the tests. I solved it by keeping the info of the last 20 values of the sensor, and if the current value of the sensor is less (threshold) than the average of the last 20 values, the robot turns to the right.
- My robot is more of a €120 robot, instead of a $50 robot. We don't have many good electronic stores in Belgium, so I had to buy the servo's from an R/C shop. They only had heavy duty servo's, of €26 each. The advantage is that I'm able to create the wheel and body out of plywood.
- With the delay_cycle function in the tutorial, I wasn't able to make the wheels turn at the same speed (in opposite direction). So I used the AVR delay-library which has the _delay_us and _delay_ms functions. These worked better for me.
Well, here it is:
[youtube]n_HyxbruoUQ[/youtube]
Hope you all liked it.
As you can see, it still doesn't have collision detection, that will come in v2.
I also want to make a 'follow the line' robot, so I guess that's for v3.
Greetz
Spippo