WROVER and RGB LED
WROVER and RGB LED
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?
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
- martinayotte
- Posts: 141
- Joined: Fri Nov 13, 2015 4:27 pm
Re: WROVER and RGB LED
Most probably there is a short between those two GPIOs...
Re: WROVER and RGB LED
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"?
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
Re: WROVER and RGB LED
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.
-
- Posts: 9757
- Joined: Thu Nov 26, 2015 4:08 am
Re: WROVER and RGB LED
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.
Re: WROVER and RGB LED
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).
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
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
Re: WROVER and RGB LED
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
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
Re: WROVER and RGB LED
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.
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
Re: WROVER and RGB LED
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!
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!
Re: WROVER and RGB LED
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 172 guests