Can anyone help with this problem I have operating a 5461AS 4 digit 7 segment display?
The problem is basically that all the A segments (i.e. the top horizontal) and, to a lessor extent, the first digit B segment (top right vertical) are extremely dim compared to all the other segments in the display when driven direct from my Arduino UNO using this sketch
#include "SevSeg.h"
SevSeg sevseg;
void setup(){
byte numDigits = 4;
byte digitPins[] = {10, 11, 12, 13};
byte segmentPins[] = {9, 2, 3, 5, 6, 8, 7, 4};
bool resistorsOnSegments = true;
bool updateWithDelaysIn = true;
byte hardwareConfig = COMMON_CATHODE;
sevseg.begin(hardwareConfig, numDigits, digitPins, segmentPins, resistorsOnSegments);
sevseg.setBrightness(90);
}
void loop(){
sevseg.setNumber(8888, 3);
sevseg.refreshDisplay();
}
and wired the attached (bad) drawing (each resistor is 680R)
I have tested each segment individually, both with a separate 5v power source and resistor and by modifying the sketch to just light the A segments. With the separate power supply, every segment checked out fine. Modifying the sketch by just driving the A segments improved things, but not by much. As soon as another segment is driven in addition to the A segment, it dims.
If I reassign segment A to a different Arduino pin, it makes no difference.
Am I drawing too much current from the Arduino? If so, why is it only segment A that is affected?
Any suggestions gratefully recieved!