Arduino Muscle Car

Convert a cheap, dumb RC truck into an autonomous “smart” auto

Muscle Car Orangutan Installation

Dave Prochnow

If you're looking for an easy way to add DC motor control to your next Arduino project, look no further than the Orangutan LV-168 Robot Controller by Pololu. Equipped with two bidirectional, low-voltage, H-bridge motor controls, this ATmega168 board can handle many of the tasks that are typically sought by Arduino DIYers. Plus you won't have to monkey around with lots of complex programming, either. Pololu offers a complete suite of Arduino libraries that provide easy-to-use high-level commands for tweaking every nook and cranny of the LV-168 board.

In addition to the two motor control outputs, the LV-168 features eight plug-and-use I/O ports, two LEDs (red and green), an 8x2 LCD, a programmable buzzer, three user-definable push-buttons, an analog potentiometer, and an onboard temperature sensor. Supporting these impressive hardware features are six Orangutan-specific Arduino libraries. Just import the appropriate library include link into your project and you can play Bach on the buzzer, display a room's ambient temperature on the LCD, or drive the motor outputs forward and reverse.

As a demonstration of the simplicity of use and the powerful command structure exhibited by the Orangutan LV-168, we modified an inexpensive RC truck into a self-contained, "smart" robot cruiser capable of driving around a room, avoiding obstacles, playing a tune, flashing its lights, and displaying the room temperature.

Want to try your own Orangutan? Just download our Arduino sketch, load it on an Orangutan, wire up the truck, and away you go.

TIME: 1 HOUR
COST: $83.65
DIFFICULTY: EASY

PARTS

NOTE: In order to program your Orangutan, you will need an AVR ISP programmer (e.g., Atmel AVRISP MkII).

Muscle Car LCD

Dave Prochnow

STEPS

  1. Follow Pololu's extensive setup instructions for configuring the Arduino programming environment to use the Orangutan LV-168 robot controller.
  2. Open the RC truck and disconnect the wires for the drive motor and the steering magnet.
  3. Solder two wires to the positive (+) and negative (-) battery pack terminals of the RC truck. These wires should be routed outside the truck and inserted into the power input terminals of the Orangutan.
  4. Route the drive motor wires and the steering magnet wires outside the truck and attach them to the LV-168's "motor 1" and "motor 2" outputs, respectively. I was unable to get the magnetic steering control on our truck to work properly. Therefore, I elected to permanently "fix" a slight right turn into the front steering wheel's alignment.
  5. Mount the Sharp GP2D120 IR sensor in I/O line C4 of the Orangutan.
  6. Insert two AA batteries into the truck and turn on the LV-168's power switch. The blue power LED should illuminate. If you don't see the power LED, check your wiring from the car to the Orangutan.
  7. Connect an AVR ISP programmer to your PC. Start the Arduino programming environment and copy our sketch to your PC. Download the muscle car sketch onto the Orangutan. Disconnect the RC truck from the AVR ISP programmer. Set the RC truck on the floor and press the power switch.

Muscle Car Robot

Dave Prochnow

This tricked-out ride will play a tune, display a splash screen, flash its lights, then dart around the room. Both the room temperature and the distance measured with the Sharp sensor are displayed on the LCD. When an object closer than 30cm is detected by the sensor, the motor speed is reduced and the Hummer is driven in reverse. This "backing up" action will continue until the path in front of the truck is clear of obstacles. Happy trails.