Wiring the Wireless FF
Here’s a runthrough of the wiring for my wireless follow focus design.
Common to both the sender and receiver setup is the battery circuit.
The plugs were stripped from dead power supplies that went to god knows what. Just had them lying around not doing anything so I used them for this project. The 9v caps were bought at radio shack. One end of each of the pieces is soldered into the rocker switch (also radio shack), and the other ends are cut together with a buttsplice.
The board setup includes the Arduino UNO, XBee shield from SparkFun, the XBee wireless chip, a breadboard, an optical encoder, and jumpers (I chose colors to match power, ground, etc.)
I went online and found the schematic for the optical encoder which told me exactly which pin did what.
Signal 1 and 2 came out of the two pins in the middle and power and ground were on opposite ends. I stuck the encoder into the breadboard and used color coded cables (they’re identical, just different colors) to connect the breadboard to my Arduino setup. Red went to 5v, black to GND (ground), white to 2, yellow to 3 (the two signals can be on any input you write into your program, I happened to program mine to be 2 and 3).
As for the receiver, I have the same arduino setup + a hobby servo with a gear attached (the gear pitch is matched to the pitch of my focus gear).
Conveniently enough the wires are already color coded and so once more i sent Red to 5v, Black to GND (ground), and yellow (the position signal) to 6 (the port I chose as input in my program).
Also, I connected the wires to jumpers so it was easier to keep the wires in place on the arduino board.
I hope this helps those of you out there who are looking to do your own DIY builds! If you ever have questions or need help, comment here or shoot me an email!