0
\$\begingroup\$

So i saw a post on the web (https://www.instructables.com/Charliexplexed-LED-Clock-Arduino/) and wanted to make a clock like this but with an Arduino UNO. I even created a schematic and PCB according to this picture (https://content.instructables.com/ORIG/F96/HKK8/HU8P0HMP/F96HKK8HU8P0HMP.png). The picture of the schematic is here: https://i.imgur.com/fjwLi8C.png and the picture of the PCB is here: https://i.imgur.com/cfg8aW6.png Some of the wires aren't connected, I know, it's because I wanted to make the hours glow blue and minutes red and when the hours and minutes would be the same it would glow purple (I gave up on this because all of the LEDs connected one to another in the Autodesk Eagle autorouter, but that's not important now).

I tried to upload some basic code for just one LED but it wasn't working. Here's the code:

int A = 3;
int B = 4;

void setup()
{
  pinMode(A, OUTPUT);
  pinMode(B, OUTPUT); 
}

void setLED(int ledNum)
{
    if(ledNum == 1)
    {
                pinMode(A, OUTPUT);
                pinMode(B, OUTPUT);
  
                digitalWrite(A, HIGH);             
                digitalWrite(B, LOW);
    }
}

void loop()
{        
    for(;;)
    {
        setLED(1);
        delay(500);
    }
}

The LED simply doesn't light up. I can't figure out why.

I got the code from here: https://create.arduino.cc/projecthub/LiLShReDdeR/charlieplexing-with-arduino-5b4ade

The parts I used:

  • Arduino UNO
  • RGB LEDs (common cathode)
  • pcb

If anybody has any help at all, I would really appreciate it, but please don't tell me I wasted 3 hours on creating the schematic and pcb and wasted 30€ on 5 pcbs.

Also if I can still somehow use the boards without the arduino, please let me know.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ I don't see a schematic when I click your link, and I don't care to learn about "Why Rednecks support Workers". Add the schematic to your question. \$\endgroup\$ – Elliot Alderson May 4 at 19:51
  • \$\begingroup\$ @ElliotAlderson I updated the link now. The schematic was under the PCB, but now I just put the links of the pics. \$\endgroup\$ – Tkalcec87 May 5 at 6:22