WesleyyC / Tic-Tac-Toe

A perfect Tic Tac Toe player using the strategy in Newell and Simon's 1972 tic-tac-toe program

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Green light on the LED faints away...

SerinaTan opened this issue · comments

The first user input lights up the corresponding green light accordingly. The second user input triggers a second green light. However, from this point onward, no green light can be lit up and the first two turn off as well. The green light seems a lot dimmer than normal. The LEDs can light up red with no issues throughout the game.

I am suspecting there is a limit on how much power the GPIO ports can output overall. Also, the green light somehow consumes more more than the red light. My next step is to dig into the power limit of the pi and see if I wire up the green light node with different resistors.

http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/raspberry-pi/gpio-pin-electrical-specifications#rpi-gpio-input-voltage-and-output-current-limitations
All the GPIO ports can only source 50 mA of current simultaneously. However, each LED will need ~10 mA to operate.

Thus... We will need a new design....