Building a Steering Wheel Controller Using the NI myDAQ
Materials

- LabVIEW 2009 software and DAQmx driver
· Accelerometer - any 2 or 3 axis will work, MMA7260QT 3-Axis Accelerometer recommended ($14.99+ ~$5 S/H)



· Duct tape
· (Optional) button for additional interaction in game – ($2 at radio shack)

Instructions:
1. If using an Ethernet cable, cut the 2 ends off to reveal 4 colored pairs of wire. Use scissors or a knife to cut back the outer insulation
2. Strip 6 of the wires so about half an inch of wire is revealed (or all 8 if using the optional button). On the other end, strip about an inch for easier wiring to the sensors.
3. Attach the wires to the accelerometer and pushbutton as shown below. You may need to cut some of the copper wires from each lead to fit in the holes of the accelerometer (see figures 1-3)

Figure 1. Wiring Diagram

Figure 2. Photo of accelerometer wiring

Figure 3. myDAQ wiring
4. Mount the accelerometer and the optional button to the wheel.
5. Install the DAQmx driver and LabVIEW on your computer
6. Run the SteeringWheelController VI, then click the run button. Follow the on screen dialogs to calibrate the wheel.

Figure 4. Front Panel of controller VI
7. Once finished calibrating, the Turn Intensity and Throttle Indicators will match the orientation of the steering wheel
8. Run your desired game, and map the controls to the wheel (left is num4, right is num6, throttle is num8, and the optional button is “p”)
ATTACHED: VI CODE