- #BESCOR MP 101 CHEAP HOW TO#
- #BESCOR MP 101 CHEAP SERIAL#
- #BESCOR MP 101 CHEAP DRIVERS#
- #BESCOR MP 101 CHEAP UPDATE#
- #BESCOR MP 101 CHEAP CODE#
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 CHEAP UPDATE#
Nunchuk.update() // The Nunchuck values update in the loop
#BESCOR MP 101 CHEAP CODE#
Nunchuk.init() //Initialize the Nunchuck code
#BESCOR MP 101 CHEAP 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 CHEAP 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. TCCR4B = TCCR4B & B11111000 | B00000011 // PWM frequency of 490.Update: Thanks to Bill Porter, there is a better way to connect the Bescor to the Arduino instead of using the Motor Shield. I built a three camera system without the nunchuck, using an Arduno Mega but the PWM frequency is controlled by different timers,Īrduino Mega 2560 timers have no common frequency: Step 3: Connect the Blue, Black, Green, and Yellow Wires Here’s the one I’m using.Ĭonnect the white wire to vin and red wire to ground. The WiiChuck adapter makes it easy to connect the Nunchuck to the Arduino. Step 2: Connect the WiiChuck Adapter, Power and Ground Wires Note: It’s better to cover the exposed soldered connections to prevent the wires from touching. I cut the controller and cut off the ends of the wires and solder jumpers to it. There are several ways to connect the wires to the Arduino. Pin 7 – Red – Ground Step 1: Prepare the Wires The colors of the wires may be different. Note: Please check for continuity with a multi-meter.
#BESCOR MP 101 CHEAP HOW TO#
In this tutorial, I’ll show you how to connect the Arduino to the Bescor MP-101.