Motion Controlled Desktop Mini Golf Course
by jkimdaniel in Circuits > Wireless
35 Views, 1 Favorites, 0 Comments
Motion Controlled Desktop Mini Golf Course
Using two Adafruit CircuitPlayground Bluefruit's, I created a desktop mini golf course that you can control wirelessly via motion control! The course fits four holes in an innovative design, each with their own obstacles and challenges, which rotate into place using the two buttons on the controller. Your club swing is controlled via left/right motion on the remote!
Supplies
For this project you need:
- Continuous servo motor
- 180 degree micro servo
- 2x Adafruit CircuitPlayground Bluefruit boards
- A battery pack and wired cable
- Glue
- 6x Breadboard to alligator clip wires
- 1/8" wood for laser cutting
- Adhesive velcro patch
- 1x robot car tire
Design Your Golf Course
Using Adobe Illustrator, design your own golf course! Add your own fun obstacles! Or download my design.
Downloads
Create a Box on Makercase
Using makercase, create a small box to house the continuous servo and other components. Make sure to add a hole at the top of the box so the continuous servo can poke out from underneath inside the box.
Laser Cut the Design
Print Your Golf Essentials
Using a 3D printer, print the following files:
- flagstick
- club
- ball
Assemble
After everything has been prepared assemble and glue the box except the top lid, glue the robot car tire to the back of the golf course design as centered as possible. Then, screw the continuous servo into the tire through the top lid of the box we made.
Wire Up Components
Attach all wires and servos to one of the CPBs.
- Micro-servo -> board.A1
- Continuous servo -> board.A2
Code Up the Sender and Receiver for Wireless
To get wireless communication, we have to setup code on both of our CPBs. On the CPB being housed in the box, load receiver.py into code.py, and sender.py to the other.
Finishing Touches
Attach the club to the micro-servo, the flag stick into the center of the hole, and the wireless remote to the battery pack for portability.