Things used in this project

Hardware components:
Photon new
Particle Photon
×1
5" Clear Plastic Ornament Ball (4" linked)
×1
Micro Servo
×1
Smalls yqynd0ecbg
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
8186014 rd
Pebble Time
×1
Software apps and online services:
Particle IDE
Simply.js
Hand tools and fabrication machines:
3drag
3D Printer (generic)
09507 01
Soldering iron (generic)
Hy gluegun
Hot glue gun (generic)

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.
Tb6612

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

Thanks to MasterFX.

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Exploreians
Advanced
  • 2,016
  • 22

Work in progress

Make life an adventure with new places and companions!

Exploreians

Team Transplants

Morning Meds and Smart Alarm system
Advanced
  • 1,462
  • 9

Work in progress

A smart medication and wake up alarm showcasing wearable technology, home automation and quantified self concepts working together.

Pebble Christmas Light (ESP8266)
Advanced
  • 987
  • 3

Use Pebble with ESP8266 to control my house's Christmas Light! Merry Christmas!

Add projectSign up / Login