consists only of a Sharp GP2Y0A21YK distance measuring sensor, a Pololu Dual Serial SMC01A motor controller and two DC motors with their respective GEAR BOX (in my case I buy pololu robotic kit that came with the ball Caster, tamiya gear box and chassis).
As the code is simple, the Arduino through serial connection with SMC01A sends orders to stop, turn right, left and backwards.
Arduino Sketch
The programming is very basic when detects a obstacle (about 15cm) stops, then turn left to take a reading of the distance, then turn right and take another reading, after the two distances has ven taked he choose the best option in this case the greater distance, turn to that side and continue.
Video below.
Video 1
Video 2
Video 3
Video 4
Arduino Sketch
The programming is very basic when detects a obstacle (about 15cm) stops, then turn left to take a reading of the distance, then turn right and take another reading, after the two distances has ven taked he choose the best option in this case the greater distance, turn to that side and continue.
Video below.
Video 1
Video 2
Video 3
Video 4
It needs a little changes to the program once get improve I show you the videos.
0 comments:
Post a Comment