My First Robot
While I wait for the geared motors to arrive in my mail, I have continued the work on the software.
Since it is my first robot with behavior a bit more complex than the Gwünderer ( http://letsmakerobots.com/node/30544 ) it is programmed a bit more Clean Code style.
The behavior of this robot is implemented with the state-pattern in combination with the strategy-pattern. The state is determined by the sensor and contains the relevant motor configuration to apply. That might be "Don't Panic! Go Ahead!" or "Turn Left (since there is most space)" or "Backwards now!". The strategy determines how this is fulfilled. So is a "Go Ahead" a simple motor forward while a "Backwards" is a motor backward followed by a u-turn.
You find the source code here: https://github.com/mnemonia/robotix/tree/master/MyFirstRobot






@ Tue, 2012-01-03 18:38
A neat platform
I like the platform, I was looking at this the other day. I must have a tinker with arduinos too..
@ Tue, 2012-01-03 04:56
Oooh! Nice Bot! I really
Oooh! Nice Bot! I really liked the Gwunderer... But this is cool as well! Where did you get the chassis? And what is that shield? And this bot is very neat! :D
@ Tue, 2012-01-03 10:47
The shield
I believe thats the ever-popular Adafruit Motor Shield Which you can use to control 4 DC motors or 2 Stepper motors.
@ Tue, 2012-01-03 10:22
Thank you!
The chassis is from here: http://shop.boxtec.ch/product_info.php/cPath/59_61/products_id/40536
And the shield is this one: http://www.adafruit.com/products/81