

#define speedB 11 // Pin 11 controls the speed of Motor B using the values 0-255. #define motorB 13 // Pin 13 controls the direction of Motor B using the values 0 and 1 #include "ArduinoNunchuk.h" // The library used by the Nunchuck * Nunchuck Library created by Gabriel Bianconi, * This program controls the Bescor MP-101 Pan/Tilt system using the Wii Nunchuck If you have any questions, please contact me or leave a comment.
#Bescor mp 101 7 pin midi code
Here’s a link to the library we’ll be using to get the Nunchuck working.Įach line of code below will be labeled and hopefully help you understand the process. (Update: Here’s a link to installing the Arduino Software.) If anyone’s interested in a in depth tutorial about using the Arduino software, please leave a comment.
#Bescor mp 101 7 pin midi drivers
In this step, the Arduino software and drivers need to be installed on the computer.

Yellow/ Blue – Tilt, Purple/ Red – Pan Step 5: Program the Arduino The wires are connected as followed on the motor shield:īrown – 3.3v Step 4: Connect the MIDI Wires to the Arduino Motor Shield Step 3: Connect the Nunchuck Wires to the Arduino Motor Shield If you use a different extension, the wire colors might be in a different order. These wires will connect to the Arduino pins and later I’ll show in the code the pin assignments. To connect the Wii Nunchuck controller, I used this extension. Step 2: Strip the Nunchuck Extension Wires (Note: The wire colors from other cables might be different from the original cable.)

It’s also possible to use the original cable. I’ll be using a five pin MIDI cable like this one. I searched for a better remote, but couldn’t find one at a reasonable price, so after trying a few experiments, I found using the Nunchuck, the Arduino, and the motor shield together, I could make a great controller. Also, the speed slider is difficult to use while panning. First off, the controller only allows movement on one axis at a time. The Bescor MP-101 pan and tilt is a great cost effective solution for video and photo setups, but it has several limitations. I’ll try to get a working prototype up this week. Update: Thanks to Bill Porter, there is a better way to connect the Bescor to the Arduino instead of using the Motor Shield.
