I purchased 3 of these units all with an RGB demo on them.
After flashing the demo Blink from the IDF examples, it stopped blinking. Why?
I measured pin 2 of the LED, data in, and it connected to pin 18 (left) which is GPIO 12, not GPIO 18.
Checking one of the other "virgin" boards, pin 2 also goes to pin 18 which is GPIO 12.
All this is derived from the documents from:
https://docs.espressif.com/projects/esp ... itc-1.html
No. Name Type 1 Function
18 12 I/O/T RTC_GPIO12, GPIO12, TOUCH12, ADC2_CH1, FSPICLK, FSPIIO6
Meanwhile in the schematic SCH_ESP32-S2-DEVKITC-1_V1_20220817.pdf and the list above:
11 18 I/O/T RTC_GPIO18, GPIO18, U1RXD, ADC2_CH7, DAC_2, CLK_OUT3, RGB LED
The RGB LED does not connect through R17 to pin 11....
What exactly is going on here with the schematic and document?
How do I correct the RGB LED in the software to point to pin 18 GPIO 12?
Have I lost my mind????
Or how to dump the code from the untouched boards to preserve the blink that cam with
them?
ESP-32S2 Dev/KitC-1 RGB LED
Re: ESP-32S2 Dev/KitC-1 RGB LED
Did you run menuconfig on the blink example and configure the demo for your board ?
-
- Posts: 3
- Joined: Mon Mar 06, 2023 8:16 am
Re: ESP-32S2 Dev/KitC-1 RGB LED
If you could explain where or how to do just that, I will try it,
Meanwhile, I found out about esptool and downloaded the firmware from a virgin board ( I bought 3 ) and reflashed the broken board and it ran again.
All of that, I'd still like to know how to do it the proper way.
Meanwhile, I found out about esptool and downloaded the firmware from a virgin board ( I bought 3 ) and reflashed the broken board and it ran again.
All of that, I'd still like to know how to do it the proper way.
Re: ESP-32S2 Dev/KitC-1 RGB LED
What IDE are your using ?
Re: ESP-32S2 Dev/KitC-1 RGB LED
Assuming you are running Arduino IDE, install the NeoPixel Library from Adafruit and then use something like this:
To dump the existing firmware, assuming you are on Linux (on other OS, replace the "COM Port")..
Code: Select all
//
// Sample code to control the single NeoPixel on the ESP32-S2 Saola (and other S2 boards)
// https://www.instructables.com/ESP32-S2-Saola-Making-the-RGB-Work/
// requires: https://github.com/adafruit/Adafruit_NeoPixel
#include <Adafruit_NeoPixel.h>
// On the ESP32S2 SAOLA, etc. pin 18 is the NeoPixel.
#define PIN 18
// Single NeoPixel
Adafruit_NeoPixel pixels(1, PIN, NEO_GRB + NEO_KHZ800);
uint16_t colourDelay = 10; // Time (in milliseconds) to pause between color change
void setup() {
//This pixel is just way to bright, lower it to 10 so it does not hurt to look at.
pixels.setBrightness(10); // set it to 1 to get traffic light effect
pixels.begin(); // INITIALIZE NeoPixel (REQUIRED)
}
// Simple function to return a color in the rainbow
// Input a value 0 to 255 to get a color value.
uint32_t Wheel(uint8_t WheelPos)
{
// Assume the wheel value is less than 85, if so Green value is 0
uint32_t returnColor = Adafruit_NeoPixel::Color((uint8_t)(255 - (WheelPos * 3)), 0, (uint8_t)(WheelPos * 3));
// If we are greater than 170 Red value is 0
if (WheelPos > 84 && WheelPos < 170)
{
WheelPos -= 85;
returnColor = Adafruit_NeoPixel::Color(0, (uint8_t)(WheelPos * 3), (uint8_t)(255 - WheelPos * 3));
}
// Finally above 170 and Blue value is 0
else if (WheelPos >= 170)
{
WheelPos -= 170;
returnColor = Adafruit_NeoPixel::Color((uint8_t)(WheelPos * 3), (uint8_t)(255 - WheelPos * 3), 0);
}
return returnColor;
}
// Counter to run from 0-255 to cycle the colors of the rainbow.
int colorCount = 0;
void loop() {
// Set the new color on the pixel.
pixels.setPixelColor(0, Wheel(colorCount++));
// Send the updated pixel colors to the hardware.
pixels.show();
// Cycle the colors at the end.
if (colorCount > 255)
colorCount = 0;
// Pause before next pass through loop
delay(colourDelay);
}
Code: Select all
esptool.py -b 460800 -p /dev/ttyUSB0 read_flash 0x0 0x200000 flash_image.bin
Re: ESP-32S2 Dev/KitC-1 RGB LED
Could you send boards figures? I check that it is GPIO18 not GPIO12, corresponding to schematic.
Who is online
Users browsing this forum: No registered users and 83 guests