WROVER and RGB LED

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

WROVER and RGB LED

Postby kolban » Mon May 29, 2017 7:29 pm

I bought a WROVER board. It has an RGB LED on it. Looking at the schematic found here:

https://dl.espressif.com/dl/schematics/ ... v1_sch.pdf

I find that the control for the RGB should be GPIO2 (red), GPIO0 (green), GPIO 4(blue).

When I set GPIO2, GPIO0, GPIO4 to output, I find that setting all to 0 extinguishes the LED.

Setting GPIO4 to 1 sets the LED to blue.

But setting either GPIO2 or GPIO0 to 1 causes the green and red LED to BOTH be on.

Again ...
if all are off ... setting GPIO2 to 1 ... the led lights red/green.
if all are off ... setting GPIO0 to 1 ... the led lights red/green.

Has anyone else played around with a WROVER and the RGB led?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

User avatar
martinayotte
Posts: 141
Joined: Fri Nov 13, 2015 4:27 pm

Re: WROVER and RGB LED

Postby martinayotte » Tue May 30, 2017 1:14 pm

Most probably there is a short between those two GPIOs...

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: WROVER and RGB LED

Postby kolban » Tue May 30, 2017 2:28 pm

I'll test ... but I'll be very sad if this brand new, out of the box, $50 board has a short.

Later ... I poured over the board with a good quality magnifying glass and couldn't eyeball anything. I then got out my multi meter and checked continuity (with power off) between GPIO 0 and GPIO 2 and also between the 3 input pins of the RGB LED ... but nothing obvious. Open circuit between GPIO 0 and GPIO 2 and open circuit between all the inputs of the RGB LED.

Does anyone else have a WROVER board? Have you tried setting GPIO 0 and GPIO 2 high (individually)? Does your LED respond "appropriately"?
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

ESP_Dazz
Posts: 308
Joined: Fri Jun 02, 2017 6:50 am

Re: WROVER and RGB LED

Postby ESP_Dazz » Fri Jun 02, 2017 7:44 am

I've been able to control each RGB LED individually with no issue. I've also tried every permutation of turning the RGB LEDs On/Off with no issue as well.

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: WROVER and RGB LED

Postby ESP_Sprite » Fri Jun 02, 2017 12:19 pm

Kolban: Could you share the code you used? I almost can't imagine it, but there may be something wrong with it. Just wanting to make sure before we blame the hardware.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: WROVER and RGB LED

Postby kolban » Sat Jun 03, 2017 1:19 pm

Howdy,
Here is a link to the pastebin of the code I am testing with:

https://pastebin.com/B0N8DQBk

I have reduced it to the bare minimum and still no change in symptoms.

When only GPIO 0 is on, red and green are shown.
When only GPIO 2 is on, red and green are shown,
When only GPIO 4 is on, blue is shown.

I am happy to perform any other diagnostics desired or otherwise show information (screen share etc etc).
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: WROVER and RGB LED

Postby ESP_krzychb » Sat Jun 03, 2017 4:08 pm

Hi @kolban,

This is indeed bare minimum code :)
I have tried it on two WROVER boards (V1 and V2) and the LED cycles colors in concert with output on the monitor.
It looks like your board has some h/w issue.

The only discrepancy is that the LED cycles color in different order on WROVER V1 and V2.
V1: Off - Red > Blue > Green
V2: Off - Red > Green > Blue

On schematics LEDs are connected in the same way.
Apparently V1 and V2 are using LEDs with different pin/color mapping.


Krzysztof

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: WROVER and RGB LED

Postby kolban » Sat Jun 03, 2017 7:16 pm

Thanks for taking the time to respond. Here is a link to a high def picture of my board.

https://cdn.pbrd.co/images/ecet7vRtV.jpg

I bought it about 2 weeks ago from Adafruit and done nothing more with it than plug it in. I did add three jumpers:

1. USB power jumper
2. RX-RX jumper
3. TX-TX jumper

these appear to be required as per the Espressif getting started guide.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

vardelean
Posts: 8
Joined: Sun Jun 04, 2017 8:07 pm

Re: WROVER and RGB LED

Postby vardelean » Sun Jun 04, 2017 8:30 pm

Hi Guys,

I bought two ESP-WROVER-32 boards from Adafruit, and I have exactly the same issues with the RGB Leds as described by Mr. Kolban earlier.

A quick look at the board revealed that the ESP-WROVER-KIT_SCH-2.pdf is NOT the proper schematic for the Adafruit WROVER kit.

In the case of the RGB LED, the schematic shows three resistors (R149, R150 and R151) connected to ground. That's not what's on the board! Instead, the three LED anodes are connected together to +3.3V and then each resistor in series with the LED is connected to the drain of a small mosfet (Q6, Q7 and Q8). The source of each mosfet is grounded and the gates are connected to IO0, IO2 and IO4. So basically each led is switched on/off by a transistor. Putting my hardware engineer hat on, I think' that's a smart decision, I personally applaud this implementation, I just wish I'd had the schematic before starting to fool around with the RGB, it would have saved me some time.

Tracing back through the board connections, it looks like this:
Q8 - R151 - RED controlled by IO4
Q7 - R150 - GREEN controlled by IO0
Q6 - R149 - BLUE - controlled by IO2

I still cannot get the LEDs to run properly though, I think that's more to it, (I so wished I had the proper schematic....), I will keep investigating.

One more problem with the schematic that I've found so far, related to the JTAG connector this time: J8, in the schematic pin 13 goes to VDD33 or +3.3V to simplify things. Don't trust that, it does not go to +3.3V, it goes to ground!

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: WROVER and RGB LED

Postby ESP_igrr » Mon Jun 05, 2017 12:04 am

Since IO0 and IO2 are also driven by RTS/DTR, maybe that's somehow part of the problem... Which OS and which terminal program do you use to connect to the board? Is there any difference in behaviour between connecting the board to a computer or to a USB charger?

Who is online

Users browsing this forum: No registered users and 58 guests