Fun little project that you can make to fool around with friends and family! I used 2 servos attached together to give me x and y motion capabilities and then controlled them both through a joystick so that the user can aim the laser like a video game. Let's Begin!
Step 1: What You Need
Step 2: Programming the LinkIt ONE
The program you need is below for you to download. If you are using the LinkIt ONE make sure you don't change the servo pins used in the code.
Step 3: Wiring!
Pretty simple to do as well just make sure you pay attention to which wires you are putting where, and that you match your code. The following is all the wiring you need to do according to the file I provided using the LinkIt ONE.
- +5V pin to 5V on LinkIt ONE
- GND Pin to GND on LinkIt ONE
- VRX pin to Analog pin 1 on LinkIt ONE
- VRY pin to analog pin 2 on LinkIt ONE
- Both of their "+" wires (Usually red) to +5V on LinkIt ONE
Both of their "-" wires (Usually black or brown) to GND on LinkIt ONE
Signal Wires (Only wire left) go to D9 and D3
- Laser's "+" to +5V on LinkIt ONE
- Laser's "-" to GND on LinkIt ONE
Step 4: Attaching Motors and Laser Together
This should be pretty self explanatory. Look at the pictures to figure out how to attach the servos and the laser together. Only thing you need to make sure is that the servo with it's signal attached to D9 on the LinkIt ONE should be the servo on the bottom. I just used sticky tack to temporarily attach them.
Step 5: Have Fun!
Enjoy playing with you fun little toy! I encourage you to enhance the project and make it even cooler! If you do use this basic concept and make a more complex project with it feel free to post you project in the comments I would love to see it!