Skip to content

rtertiaer/candlejoust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Candlejoust

I played this game for the first time at the CCC, using playstation move controllers, and absolutely adored it (even though I lose more often than win.)

Those controllers are somewhat expensive though, and using them requires a computer around to interpret input and determine a winner. I decided to make my own using Arduinos, MPU-6050 accelerometers, and WS2811 LEDs.

The code is super rough right now, but since it's functional it makes sense to stash it in git, and I'd also like to share it with the world!

how to play

Pretend your device is a candle. Your opponent(s) also have a candle. Your goal is to extinguish their candle without yours extinguishing as well.

parts & cost

The cost for a single controller is at most $20 USD, but if you're scrappy about sourcing parts you can definitely bring the cost to <$10 USD. If that's still somewhat expensive, consider using cheaper LEDs and vibration sensor switches instead of the MPU-6050 (you will also need to modify the code.) You can scrap rechargable lithium ion batteries from disposable vapes and other small electronics, though take care to examine the part's data sheet for proper charging procedures. Little USB batteries from dollar stores work great - they usually have a 18650 LiIon battery and charging circuits built in.

Some tips

  • The MPU-6050 seems to require its startup calibration to be done parallel to a relatively level & stable surface
  • MPU-6050s normally require individual chip calibration during programming; I've opted not to bother changing defaults per-chip but if yours seems buggy adjust the calibration values in code.

todo

  • clean up code
  • provide circuit diagrams
  • send the MPU-6050 to sleep when the user has lost (are there other power improvements?)
  • implement a piezo buzzer and/or vibrating motor for further haptic/sound feedback on warning & losing conditions
  • create a 3d printed housing for the electronics & battery

About

Simple Arduino implementation of Candlejoust.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages