Headers: Right-angle or straight will work - I actually wish I had used right-angle headers on the main board to keep things flatter. 4x4cm piece of stripboard (15x15 holes).3300 uF capacitor (you can get this from the WiiMote as well, else anything comparable will do).240 ohm resistor (I used two 120 ohm in series).2.4x1.2cm piece of stripboard (9x4, with 9 holes along the strip).or just carefully wrap it with a piece of tape :) Pot the soldered connections in sugru, silicone, etc.Test the continuity of the connections.Solder the camera pins to the header pins.Nudge pins 5 and 6 a little toward the center and nudge the other as necessary to make them line up with the pins on the 3x2 or two 3x1 headers.Clip pins 3 and 4 - we don't need them.Remove it from the WiiMote - desoldering braid works best, but I did manage to remove two intact with a blowtorch :).
Something to pot the camera connections.1.5x1.3cm pice of stripboard (6x5 holes, with 5 holes along the strip).Broken WiiMotes are usually easy to find and the camera module is almost always OK - it's the buttons that wear out. You can find a broken WiiMote for cheap,I got one from Game Over in Amsterdam for 1 EUR. There are unused pins on the PIC16F1503 and I've included male headers for all pins in the stripboard pcb, so in-circuit programming is possible and there is room for expansion (another servo, more sensors, rocket launchers.). This project should cost less than 25 EUR even if you have no spare parts laying around. My first prototype fit the voltage regulator and main board components on one 17x10 breadboard. No PCB etching required :) I made this with stripboard and just cut traces and added jumpers where needed. Making something with room for expansion.Using one power source for servos and microcontroller.PWM servo control, and getting maximum resolution in movement.
#Diy motion control for bescor mp 101 code
8-bit PIC programming in C using MPLAB X, XC8 and MPLAB X Code Configurator.You can solder and desolder through-hole components.PIC16F1503 (a 14-pin, 8-bit PIC microcontroller).Pans or tilts when the light source moves away from the center of the frame, attempting to keep it in the center. Basic Functionalityĭetects and tracks an infrared light source. It might be useful for someone that wants to learn or apply I2C, Interrupts and Callbacks, PWM, or Servo Control. When I finally got it working, I thought I'd share it.
I think this has been done quite a bit already, but I did not find a straightforward way of doing this with PICs. This is a good learning project that is fun to build - I got a lot out of making it.