In this project, you can build your own electronic dreidel game, complete with a servo motor and festive music, to celebrate Hanukkah. To play, drop chocolate coins into the slot at the top of the matrix. The RGB matrix will spin the dreidel while playing the classic dreidel song. If you roll gimel, you win! All of the chocolate coins will spill out for you.
An IR breakbeam sensor is located at the top of the matrix to detect when a chocolate coin is dropped. This triggers the dreidel to spin.
A servo motor is attached to the chocolate coin cup. The servo tilts the cup when the dreidel sprite sheet lands on gimel.
If you've ever played dreidel before, you'll note that this version is slightly modified since it doesn't account for rolling hei to get half of the pot. A servo dumping out the entire pot when you roll gimel should hopefully make up for that though.
Parts
This project has a couple of different way to wire up the audio depending on the microcontroller that you are using.
Audio Amplifier Version
This version of the project uses the STEMMA Speaker, making it easy to hook up and is suitable for use with the MatrixPortal M4.
I2S Audio Version
This version of the project uses the MAX98357 and a speaker and is suitable for use with the microcontrollers with only I2S audio such as the ESP32-based boards.
Text editor powered by tinymce.