RGB LED circuit is not working/the sketch isn't uploading

I've built an RGB LED circuit with my 3rd party board: UNO+WiFi R3 ATmega328P+ESP8266. The LED isn't lighting up, I've tested the LEDs, and they work. So this tells me it's an issue with the code? But the code is definitely correct... so it seems like there might be an issue with exporting the sketch... What do I do? Does anyone know how to work this 3rd party board? I get no errors, and it says "Wrote 267856 bytes (197214 compressed) at 0x00000000 in 17.4 seconds (effective 123.0 kbit/s)...
Hash of data verified.

Leaving...
Soft resetting...", but it's not doing anything on my breadboard. - It scares me that the output says "Soft resetting..."

I don't have much documentation, I got my docs from the AliExpress store page description. DIP switches are 5, 6, and 7 ON, and the rest are OFF to upload.

Is there an English resource that you can direct me to? I've only found Arabic and Chinese sites on my journey to an answer. I have no idea what's wrong.

I've downloaded this driver: http://www.wch-ic.com/downloads/CH341SER_ZIP.html

Using:
Win10
1.8.20 IDE

int R = 9;
int G = 10;
int B = 11;

void setup() {
  pinMode(R, OUTPUT);
  pinMode(G, OUTPUT);
  pinMode(B, OUTPUT);
}

void loop() {

  analogWrite(R, 255);
  analogWrite(G, 0);
  analogWrite(B, 0);
  delay(500);
  analogWrite(R, 0);
  analogWrite(G, 255);
  analogWrite(B, 0);
  delay(500);
  analogWrite(R, 0);
  analogWrite(G, 0);
  analogWrite(B, 255);
  delay(500);
  analogWrite(R, random(255));
  analogWrite(G, random(255));
  analogWrite(B, random(255));
  delay(1000);
  analogWrite(R, 0);
  analogWrite(G, 0);
  analogWrite(B, 0);
}

I can tell you that you're uploading to the ESP, not the AVR processor. I have no idea whether that is what you want to do.

How did you decide what pins to connect the LEDs to? To make the sketch work, you need to upload to the AVR processor. That would mean finding the correct jumper settings.

I decided on the pins from following an RGB LED video online for a genuine Arduino Uno. How would I upload to the AVR processor? There's minimal documentation for this thing.

Are there no markings on the switches? Can you post an image? How are the switches set right now?

No sure what angle you'd like, so here you go:



I'd like to see a detail of the switches.

Oh, I thought you said "Are there no markings on the jumpers" Hold on.

Sorry I meant the switches... It's an 8 switch array in the middle of the board.

Yeah, I know. Here:

I suggest turn 5,6 off and 3,4 on.

Alright, I did it.

Oh, man no, your board is toast! Just kidding... try uploading your sketch. :slight_smile:

I tried to upload the sketch again, and it gives the same error as it always does if I don't have 56 and 7 turned on:

esptool.py v3.0
Serial port COM8
Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):
  File "C:\Users\Dvance\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2/tools/upload.py", line 66, in <module>
    esptool.main(cmdline)
  File "C:/Users/Dvance/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 3552, in main
    esp.connect(args.before, args.connect_attempts)
  File "C:/Users/Dvance/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 529, in connect
    raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

You chose the wrong processor in the tools menu. You have to upload to an Uno.

So, do I change the board option to an Uno?

Of course you do. It's a dual processor Uno+ESP.

Table DIP- switch:

Connection DIP
1 2 3 4 5 6 7
ATmega328<->ESP8266 ON ON OFF OFF OFF OFF OFF
USB <->ATmega328 OFF OFF ON ON OFF OFF OFF
USB<->ESP8266 (Update firmware or sketch) OFF OFF OFF OFF ON ON ON
USB<->ESP8266 (communication) OFF OFF OFF OFF ON ON OFF
All independent OFF OFF OFF OFF OFF OFF OFF

It seems to have worked, but LEDs aren't on. Should I plug in the DC cord?


avrdude: verifying ...
avrdude: 1898 bytes of flash verified

avrdude done.  Thank you.

You might have made a wiring error. Start with the blink sketch and troubleshoot the LEDs first.

I've given you some images of most if not all of the wiring. It looks right, but I'm new to this.

That is a great reason to spend some time verifying it. Get used to it, you'll be doing it 50 years from now also. Ask me how I know...

You can't develop any skill without doing it yourself.