djsfantasi
- Joined Apr 11, 2010
- 9,237
One thing to consider is the pin maximums.Let us see if we can nail this down.
This is the sketch that you showed back in post #15.
View attachment 262272
Let us begin with the Arduino.
Make a list of all the pins on the Arduino Uno board and the function of each pin you plan to use. Please number each pin according to the Arduino board numbering.
Next step, select one pin as output (perhaps a spare pin that you are not planning on using) and write the code to make an LED (via 1kΩ series resistor) flash at 1-2Hz (frequency is not critical).
First, where are you using resistors? You shouldn’t use 10kΩ on D1-D4. But you need 330Ω resistors on each segment (pins D2-D9; a-g) to limit current to 10ma per segment.
But that causes up to a 80ma draw on D1-D4 (Arduino pins D10-D3). The Arduino can only supply 20ma (the specs say 40ma, but that’s a maximum). Twice the maximum will cause wonky behavior.
You need a transistor on D10-D3… Either a BJT or MOSFET. I used 2N7000s.
I’ve done a four digit fake scoreboard with an Arduino. I’ve done the power analysis, etc…. I apologize for missing the USB serial pin assignments. My bad.
