NeoPixel-038 not working on ESP32s3 zero or mini boards

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Oldboy
New user
Posts: 5
Joined: 13 Jan 2024, 10:25

NeoPixel-038 not working on ESP32s3 zero or mini boards

#1 Post by Oldboy » 28 Apr 2024, 14:54

Hello all,

I am not sure if this is the right area for this issue.

After a day of building and testing a project, I discovered ESP-Easy Plugin 038 NeoPixel (Basic) is not going to GPIO on my two different ESP32s3 boards.
it works find on two ESP32-C3 boards and a test ESP32-S2 dev board

I started to discover this while adding plugin-038 to my custom.h on a copy of ESP-Easy 20240414 code in VS Platform to build my own plugin which is another story for another day.

after wasting a bit of time, I then tested with a few different normal / climate release versions to get the same issue.

I did compile a small Arduino IDE test code called "ESP32-S3_BlinkRGB " which worked on all S3 broads, so appears not to be a hardware issue.
I didn't compile on VS to test.

I do understand the C3 and S3 are very different CPUs and code.
here are some links to the S3 and C3 boards i tested, with comments of what I found.

--------
ESP32-S3 boards ,
both these ESP32-S3 didn't work with ESP-Easy NeoPixel , :(
both have onboards WS2812 work with "ESP32-S3_BlinkRGB"code .

ESP32-S3 Zero: ( there are two version of these ,
each has WS2812 on different GPIO
- https://www.waveshare.com/esp32-s3-zero.htm
- https://www.aliexpress.com/item/1005006485999236.html?

ESP32-s3 Super Mini
- https://www.aliexpress.com/item/1005006701955079.html?

----------
These C3 work fine, :)
ESP32-C3 Zero:
- https://www.waveshare.com/esp32-c3-zero.htm
- has single onboard WS2812 RGB LED , works find on this PCB
ESP32-C3 super mini:
- https://forum.arduino.cc/t/esp32-c3-sup ... ut/1189850
- https://www.aliexpress.us/item/3256805898923942.html?



Thank you

User avatar
Ath
Normal user
Posts: 3552
Joined: 10 Jun 2018, 12:06
Location: NL

Re: NeoPixel-038 not working on ESP32s3 zero or mini boards

#2 Post by Ath » 28 Apr 2024, 15:16

A few check questions:
- Is your NeoPixel powered at 5V?
- Do you have a 3.3V/5V level converter installed between the ESP and NeoPixel?
/Ton (PayPal.me)

Oldboy
New user
Posts: 5
Joined: 13 Jan 2024, 10:25

Re: NeoPixel-038 not working on ESP32s3 zero or mini boards

#3 Post by Oldboy » 28 Apr 2024, 15:29

The onboard LED on the board appears to be directly connected with out buffer chip.

My project circuit has three 5v LEDs with one low value resistor between GPIO and first LED, very short cable.

I was looking to add buffer, yet every other board drives the LEDs fine.

Tomorrow I will get out my scope to check each board waveform.

User avatar
Ath
Normal user
Posts: 3552
Joined: 10 Jun 2018, 12:06
Location: NL

Re: NeoPixel-038 not working on ESP32s3 zero or mini boards

#4 Post by Ath » 28 Apr 2024, 16:59

What GPIO pin are you using, and does your board have PSRAM on-board? (H4R2 indicates it has 2MB PSRAM, so pins 26..32 should not be used, and also, there is a warning about using ADC2 pins)
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8772
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: NeoPixel-038 not working on ESP32s3 zero or mini boards

#5 Post by TD-er » 28 Apr 2024, 21:13

Also which IDF are you using?
I do have a board here with about 150 neopixel LEDs and an ESP32-S3.
It is running on IDF5.1 code (Thus LittleFS build)

Oldboy
New user
Posts: 5
Joined: 13 Jan 2024, 10:25

Re: NeoPixel-038 not working on ESP32s3 zero or mini boards

#6 Post by Oldboy » 29 Apr 2024, 08:25

I tested with GPIO 7 and GPIO 13 on edge of the board.
I also tested with GPIO 21 to the single on board LED.

is there a LittleFS release version for S3 with Neopixel that I should test with?
Attachments
ESP32-S3_Zero.jpg
ESP32-S3_Zero.jpg (121.81 KiB) Viewed 216 times

TD-er
Core team member
Posts: 8772
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: NeoPixel-038 not working on ESP32s3 zero or mini boards

#7 Post by TD-er » 29 Apr 2024, 10:28

Is this a 4M flash unit or 16M?

User avatar
Ath
Normal user
Posts: 3552
Joined: 10 Jun 2018, 12:06
Location: NL

Re: NeoPixel-038 not working on ESP32s3 zero or mini boards

#8 Post by Ath » 29 Apr 2024, 10:50

The neopixel_ESP32s3_4M316k_LittleFS_CDC build should do the trick here.
Be aware that the storage is not migrated from the default SPIFFS to LittleFS, so while you can do an in-place upgrade, then all configuration (except WiFi) will be gone! Or just grab an unused board, then you'll loose nothing ;)
/Ton (PayPal.me)

Oldboy
New user
Posts: 5
Joined: 13 Jan 2024, 10:25

Re: NeoPixel-038 not working on ESP32s3 zero or mini boards

#9 Post by Oldboy » 29 Apr 2024, 11:07

only 4M flash :(



** NOTE:
using source code base 20240414 ,
ESP32-s3 I compiled " custom_ESP32s3_4M316k_CDC " NeoPixel (basic) doesn't work
ESP32-c3 I compiled "custom_ESP32c3_4M316k_CDC " NeoPixel (basic) worked perfectly

User avatar
Ath
Normal user
Posts: 3552
Joined: 10 Jun 2018, 12:06
Location: NL

Re: NeoPixel-038 not working on ESP32s3 zero or mini boards

#10 Post by Ath » 29 Apr 2024, 11:41

Can you test using the neopixel, with LittleFS enabled, build I mentioned before? That uses the latest IDF 5.1 framework, that solves many issues still present in the IDF 4.4 used by non-LittleFS ESP32* builds.
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8772
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: NeoPixel-038 not working on ESP32s3 zero or mini boards

#11 Post by TD-er » 29 Apr 2024, 11:44

Oldboy wrote: 29 Apr 2024, 11:07 only 4M flash :(



** NOTE:
using source code base 20240414 ,
ESP32-s3 I compiled " custom_ESP32s3_4M316k_CDC " NeoPixel (basic) doesn't work
ESP32-c3 I compiled "custom_ESP32c3_4M316k_CDC " NeoPixel (basic) worked perfectly
That's extremely odd as the C-series is using a completely different CPU architecture.
So S-series build on a C-series chip should not boot and vice verse.

Oldboy
New user
Posts: 5
Joined: 13 Jan 2024, 10:25

Re: NeoPixel-038 not working on ESP32s3 zero or mini boards

#12 Post by Oldboy » 29 Apr 2024, 13:38

with above code, I put a scope on the LED input, I have a 100e resistor from the GPIO.

on ESP32-c3 zero ,
NeoPixelAll,032,0,0 will drive 3 LEDs perfectly, see attached okay waveform.

on ESP32-s3 zero ,
no NeoPixel output , yet log = P038 : write - NeoPixelAll,032,0,0
if I set the GPIO as I2C SCL , i see clock when action scan
if I set different PWM on GPIO , I get what I expect.

I am not that good in code to follow this, so will use the ESP32-c3 Zero in my project.

Thank You 8-)
Attachments
e32c3_NeoPixelAll.jpg
e32c3_NeoPixelAll.jpg (202.87 KiB) Viewed 165 times

TD-er
Core team member
Posts: 8772
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: NeoPixel-038 not working on ESP32s3 zero or mini boards

#13 Post by TD-er » 29 Apr 2024, 17:27

I also saw this specific bugreport with a "supermini" board: https://github.com/espressif/arduino-esp32/issues/9545

It seems to be related to how the serial console is used on the board with native USB.
You could disable the console on tools->Advanced page and/or set the serial port to Serial0 and uncheck the "enable fallback on Serial0".
This will then disable the HWCDC USB serial port.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests