-
1Step 1
Gather Materials
Before we begin, purchase all the stuff we are going to need.
I also have a wishlist on Sparkfun which includes most of the things you will need.
-
2Step 2
Assemble Electronics
The electronics for the emulator are pretty straight forward. The Pi pins are in the BCM layout.
- Pi GPIO4 to button (Make sure its the button, not the LED. Multimeter will do the trick)
- Pi GPIO17 to button
- Pi GPIO22 to button
- GND to all three buttons
Make sure you connect the Pi to the Normally Open terminals. The big push buttons from Adafruit and Sparkfun can be normally closed depending on what you connect. Use the picture below for reference:
Depending on what kind of casing you are using, you may want to connect the buttons to the Pi with IDC ribbon cables like I did.
-
3Step 3
Test Buttons
Now, before we start a game show, we should test the buttons out. Start by cloning a test script.
git clone https://gist.github.com/fc61215e14f2b4712002.git
Change to the scripts directory with the command:
cd fc61215e14f2b4712002
Now, run the script with the command:sudo python button.py
When you press each button, a line should be printed out displaying which button was pressed. If lines are constantly being printed out, you may have the pi connected to a normally closed terminal instead of a normally open terminal. -
4Step 4
Build an Enclosure
The enclosure is up to you. Here are some ideas:
- Three plywood cases with removable bottoms.
- Three 3D printed cases with snap together bottoms
- Three laser cut cases (plastic or wood)
-
5Step 5
Setup Game Shows
- Jeopardy
- More to come!
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
I't's me, the teacher from Michigan again. We have built our game and have run into the problem you discuss here: When you press each button, a line should be printed out displaying which button was pressed. If lines are constantly being printed out, you may have the pi connected to a normally closed terminal instead of a normally open terminal. Do you know how we can correct this? Thanks so much!
Are you sure? yes | no