The first code block defines all of our
I/O lines and the PS2 controller object.
The Setup() block configures the I/O lines
and discovers which PS2 controller you
are using. Finally, the Loop() block is the
code that controls everything in real time.
Notice at the top of the loop I left in a
way to make the controller rumble if you
push the blue “X” button on the right of
the PS2 controller. Push it a little and it
rumbles a little; push it a lot and, well,
you get the idea. I left that in so you
could experiment with having a sensor
give some user feedback.
To get everything to work properly,
turn on the PS2 controller, then power up
the YAAR after you connect the battery.
The blinking red LED on the wireless
module will stop blinking and turn solid
when the remote and the module have
connected. Now go drive! Figure 4 is a
picture of my monster. It isn’t pretty, but it works great!
Well, that’s it for another month. Keep building robots
and if you get stumped, drop me an email. As usual, if you
have any questions for Mr. Roboto, feel free to email me at
firstname.lastname@example.org and I’ll be happy to try to
answer it! SV
STEER WINNING ROBOTS
Perform proportional speed, direction, and steering with only two Radio/Control channels for vehicles using two
separate brush-type electric motors mounted right and left
with our mixing RDFR dual speed control. Used in many
successful competitive robots. Single joystick operation: up
goes straight ahead, down is reverse. Pure right or left twirls
vehicle as motors turn opposite directions. In between stick
positions completely proportional. Plugs in like a servo to
your Futaba, JR, Hitec, or similar radio. Compatible with gyro
steering stabilization. Various volt and amp sizes available.
The RDFR47E 55V 75A per motor unit pictured above.
SERVO 10.2012 19