Rover bot is a very simple exploring bot. It will move forward until it detects an obstacle in front of it and stop. When the obstacle is no longer there, it will move forward again.
This is a very simple example intended to demonstrate the arduino with an h-bridge, range finder, and state machine. I plan to build on this simple project soon.
Hardware
Current hardware includes:- common "turtle" plexiglas platform
- Arduino Uno
- 2 simple geared motors with wheels
- Keyes L298 H-bridge
- HC-SR04 ultra sonic range finder
- 6x "AA" battery
Software
The C source code is driven by a simple state machine.- Initially, the state switches to FORWARD.
- When the distance to an object in front of it is less than 15cm, the state transitions to STOP.
- Then, when the distance is above 30cm, the state transitions to FORWARD again.
Here is the source code:
https://github.com/gregemel/roverbot
Fork my bot!
This project uses open hardware, open software, and an open mind. My intention is to provide all code and designs for free (as in speech), with no warranty of any kind.
Wiring diagram from this instructable.