You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connect 4 push-buttons, one button between each of pins GPIO-13, GPIO-26, GPIO-16, GPIO-21 and the ground
Connect 4 colored LEDs, one LED between each of pins GPIO-6, GPIO-19, GPIO-12, GPIO-20 and the ground. It is also recommended to add a 100ohm current limiting resistor in series with each LED.
Connect a speaker to the Raspberry PI audio jack
Optionally, connect a Serial 7-Segment Display to the I2C pins of the Raspberry Pi: connect GPIO-2 to SDL and GPIO-3 to SCL
Running the game
Run the following command on the Raspberry pi terminal / console:
Make sure you have the sox and mpg123 packages installed: sudo apt-get install sox mpg123
Build the project using npm run build:iot
Run it using sudo npm run iot
Running on Arduino
Hardware Assembly
Connect 4 push-buttons, one button between each of Arduino pins 2, 3, 4, 5 and the ground
Connect 4 colored LEDs, one LED between each of Arduino pins 9, 10, 11, 12 and a current limiting resistor connected to the ground. 220ohm is a good value for the resistor.
Optionally, connect a small speaker between pin 8 and the ground