adafruit / Adafruit_NeoPixel

Arduino library for controlling single-wire LED pixels (NeoPixel, WS2812, etc.)
GNU Lesser General Public License v3.0
3.02k stars 1.25k forks source link

not working with AMB82-MINI #383

Open rkuo2000 opened 4 months ago

rkuo2000 commented 4 months ago

I have bought Neopixel ring and matrix, both are not working with AMB82-MINI (RTL8735B), https://www.amebaiot.com/en/amebapro2/ it would be good to see Neopixel working with this EdgeAI MCU (WiFi, BLE4.2, 0.4TOPs NN engine) work as portable ChatGPT device.

caternuson commented 4 months ago

What does "not working" mean? Please provide more details.

rkuo2000 commented 4 months ago

What does "not working" mean? Please provide more details.

No dots(led)will light up, I tried 1,4,8,16 LEDs , but 1st led will be on if use use resistor to touch it for pullup. I saw esp8266.cpp & esp.cpp are in the Adafruit Neopixel library, but I can't get it running either, saw some post about Neopixel need <1.5us pulse when use GPIO to drive Neopixel

caternuson commented 4 months ago

Are you using this BSP for Arduino support of the AMB82-MINI? https://github.com/ambiot/ambpro2_arduino/

What sketch code are you running?

rkuo2000 commented 4 months ago

Adafruit Neopixel Library/examples/strandtest/strandrest.ino

caternuson commented 4 months ago

The pinout and datasheet information for that board does not appear to be publicly available. Do you have its pinout information?

rkuo2000 commented 4 months ago

pin is Vcc (5V), Din, Gnd at the Neopixel device, sample code assign a GPIO to send 0/1 to Din please refer to the code in https://github.com/adafruit/Adafruit_NeoPixel

caternuson commented 3 months ago

Which pin on the AMB82-MINI is the NeoPixel's DIN connected to?

Are you changing the code in the strandtest.ino to match the pin being used?

Without the actual pinout information for the AMB82-MINI, how are you determining what pin should be used?

rkuo2000 commented 3 months ago

AMB82-mini pinout is here I just assign one GPIO pin to drive WS2812B LED's DIN

caternuson commented 3 months ago

I just assign one GPIO pin to drive WS2812B LED's DIN

Which pin?

What does this line of code look like in your sketch?

#define LED_PIN    6
rkuo2000 commented 3 months ago

https://github.com/rkuo2000/Arduino/blob/master/examples/AMB82-MINI/LED5050_WS2812B/LED5050_WS2812B.ino

rkuo2000 commented 3 months ago

I think this Adafruit library wont work, not even using ESP32, ESP8266, I am trying other WS2812B libraries. Here's WS2812B timing spec

caternuson commented 3 months ago

This library is known to work fine on ESP32, ESP8266, and others.

If it is not working for your specific setup, then more information is needed. At this point, it is still not clear if the correct pin is even being used and referenced correctly in code.

The code linked has this:

#define PIN        1 // On Trinket or Gemma, suggest changing this to 1

Is this the specific pin the NeoPixel DIN is being connected? pin

rkuo2000 commented 3 months ago

https://www.amebaiot.com/en/amebad-arduino-ws2812b-basics/ I will try this one first. Thanks !

rkuo2000 commented 3 months ago

This library is known to work fine on ESP32, ESP8266, and others.

If it is not working for your specific setup, then more information is needed. At this point, it is still not clear if the correct pin is even being used and referenced correctly in code.

The code linked has this:

#define PIN        1 // On Trinket or Gemma, suggest changing this to 1

Is this the specific pin the NeoPixel DIN is being connected? pin

Yes

caternuson commented 3 months ago

That nominally seems OK in terms of pin set in code. It could be other things like power and logic level.

Try that other library and report back here if it was successful or not. If that library works, it would eliminate a lot of possible hardware related causes.

rkuo2000 commented 3 months ago

For BW16. WS2812B_Basics.ino works, I can set LED one by one using led.setPixelColor, but led.fill failed to drive multiple leds. WS2812B_Patterns.ino failed to drive leds.

caternuson commented 3 months ago

So the issue is not specific to this library. You are also seeing issues using the amebaiot examples and library. Please open this issue in their forums: https://forum.amebaiot.com/

nsmith1024 commented 1 week ago

Hello,

Are the pins reversed on the diagram, or just the labels?

https://www.amebaiot.com/en/amebapro2-amb82-mini-arduino-getting-started/

Why would anybody show the pins and names on the BACK of the board? Who can see it if the board is showing the BACK?

If its indeed reversed, the is pin 0 really on the right/top of the board?

Something is wrong because i cant seem to get the correct GPIOS to turn on/off.

Also im pretty sure i burnt the thing out because i dont really know where the ground is because everything is reverse, and how can pin 0 be at the top/right.

Maybe some things are flipped and some not?

Thanks for the clarification.

Maybe someone can update the pinouts with the board FACING UP like a normal person would do it?

rkuo2000 commented 1 week ago

The pin out diagram on the left (BACK) is the printed on AMB82-mini board, you can turn it to see it on PCB.