Cannot control NeoPixel(WS2812B) by ATtiny412
I could control LEDs on NeoPixel(WS2812B) by ATtiny3216 using tinyNeoPixel library. However, switching micro controller to ATtiny412 for my final project, LEDs on NeoPixel blink in unintentional behavior - unstable status in terms of number of LED in brightness. I tried some cases as follows but could not find out the cause. Could anyone advise about this, or does anyone have the same kind issues on ATtiny412?
-
Embed the program (that I programmed to blink 144 of LEDs in white color(255, 255, 255)) to ATtiny412
- -> blinked only 24 LEDs or less in unstable brightness
-
Embed the program (the same program as above ) to ATtiny3216
- -> blinked 144 LEDs in white color successfully
The connection in both cases are the same - ATtiny412/ATtiny3216 is powered by FTDI-USB convert board from USB Type A connector on USB battery charger.
I suspected the voltage to NeoPixel is too small(though both circuits in above cases have the same connection from FTDI VCC 5V pin), so tried following case. NeoPixel seems to be effected by voltage and current.
-
Get voltage of AC Adapter (5V, 1.2A) to NeoPixel (separated from voltage of FTDI to ATtiny412)
- -> blinked randomly (blinked all of the LED but the color is randomly changed unintentionally)
This also might be any electronics problems in my output board by ATtiny412. Checking it by multimeter just in case, continuity for each pin of Vcc, GND or data pin to control NeoPixel looks to be no problem. Also, voltage between VCC and GND for NeoPixel connector (pin header) on output board is around 5.1V (that is the same as ATtiny3216 board).