Brett Walach
Published © GPL3+

Particle Pokéball

When the world is full of Pokémon, you need a Particle connected Pokéball to Catch 'em all!

AdvancedFull instructions provided10 hours2,718
Particle Pokéball

Things used in this project

Hardware components

Photon
Particle Photon
×1
5" Clear Plastic Ornament Ball (4" linked)
×1
Micro Servo
×1
Altoids Smalls tin
Altoids Smalls tin
×1
Raw Lead
×1
2000mAh LiPo Battery
×1
3V DC motor and gearbox
×1
Pololu - TB6612FNG Dual Motor Driver Carrier
×1
mini breadboard
×2
Lipstick Red Acrylic Paint
×1
White Acrylic Paint
×1
Black Electrical Tape
×1
Hotglue
×1
Right Angle Servo Mount
×1
Pebble Time
Pebble Time
×1

Software apps and online services

Particle IDE
Simply.js

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)
Soldering iron (generic)
Soldering iron (generic)
Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Custom parts and enclosures

Right Angle Servo Mount for Lead Weight

This allows the lead weight to be attached to the micro servo easily. The weight is what causes the ball to turn as it's rolling forward.

Schematics

TB6612 Motor Driver Pinout

- Solder in a male header to both sides of the driver. There is no need to use multiple GNDs, just the bottom right GND is fine.
- VCC goes to 3V3 output on the Photon.
- VMOT goes to VIN which is also connected to your 3.7V LiPo Battery Pack.
- Photon GND is connected to LiPo GND and GND of the Motor Driver.
- AO0/AO1 goes to the motor.
- PWMA on the Motor Driver will connect with A4 on the Photon.
- AIN2 (direction bits) on the Motor Driver goes to A1 on the Photon.
- AIN1 on the Motor Driver goes to A2 on the Photon.
- /STBY (motor enable) on the Motor Driver goes to A3 on the Photon.

Code

Particle Pokéball Code

This is the firmware that gets flashed to the Particle Photon. Copy/Paste this into a new application at https://build.particle.io and flash to your Photon. Also included here is a simple app to control the Particle Pokéball from your Pebble Watch via Accelerometer input. Install Simply.js on your Pebble, host this script somewhere that will give you a URL (a Public/Shared Dropbox link works well), and paste that link into the Simple.js app settings via your phone's Pebble app. UP starts the accelerometer streaming commands to the Pokéball. DOWN stops the streaming and sends a command for the Pokéball to stop. If you are not streaming already, SELECT will grab a snapshot of the current accelerometer data and send just that one command to the Pokéball. This is good for troubleshooting, or camera poses :)

Credits

Brett Walach

Brett Walach

4 projects • 19 followers
Sr. Embedded Hardware/Software Engineer at Particle, Hacker, Maker, Musician
Thanks to MasterFX.

Comments