BESCOR MP 101 DRIVER
To mimic that, directly attaching each direction wire to an IO pin is suitable.Ī motor shield is a H-bridge driver meaning it expects to be directly connected to motor coils. It seems the original controller simply tied each direction button to GND (through a resistor). Someone pointed me to your site wondering why you used a motor shield, and I’m a bit unsure why you chose to as well. Print values for debugging to see what's going on Run motor B based on the input from the joystickĭigitalWrite(motorB, 1) // Direction of the pan "right"ĪnalogWrite(speedB, absy * 2) // Multiplied by 2 to increase the values 0-255ĪnalogWrite(speedB, 0) // turn off if the joystick is in the center Run motor A based on the input from the joystickĭigitalWrite(motorA, 1) // Direction of the tilt "up"ĪnalogWrite(speedA, absx * 2) // Multiplied by 2 to increase the values 0-255 Vary = nunchuk.analogY - 130 // nunchuk.analogY is the value of the y-axisĪbsx = abs(absx) // Convert the x-axis value to an absolute value Varx = nunchuk.analogX - 130 // nunchuk.analogX is the value of the x-axis 130 is the distance from 0 on the joystick Read the values from the joystick and calculate the distance from center
BESCOR MP 101 UPDATE
Nunchuk.update() // The Nunchuck values update in the loop Nunchuk.init() //Initialize the Nunchuck code
BESCOR MP 101 SERIAL
Serial.begin(115200) // Opening the serial port Int absy = 0 // The y-axis variable used to store the absolute value. Int absx = 0 // The x-axis variable used to store the absolute value. Int vary = 0 // The y-axis variable to store the value coming from the Nunchuck Int varx = 0 // The x-axis variable to store the value coming from the Nunchuck #define speedA 3 // Pin 11 controls the speed of Motor A using the values 0-255ĪrduinoNunchuk nunchuk = ArduinoNunchuk() #define motorA 12 // Pin 12 controls the direction of Motor A using the values 0 and 1 #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. 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 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
![bescor mp-101 bescor mp-101](https://www.bhphotovideo.com/images/images2500x2500/bescor_mp1e6va_mp_1e_mp6va_npf_l_series_1636499.jpg)
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.
![bescor mp-101 bescor mp-101](https://i.ebayimg.com/images/g/3m0AAOSwOf5hgHev/s-l225.jpg)
I’ll try to get a working prototype up this week.
![bescor mp-101 bescor mp-101](http://frozentime.se/cam_trig/IC2272_pinout.png)
Update: Thanks to Bill Porter, there is a better way to connect the Bescor to the Arduino instead of using the Motor Shield.