Pensive
Well-known member
Neopixels causing Teensy-LC to perpetually reboot (SOLVED)
Hi All
It doesn't matter if i use fastled or neopixel library, i've got the same problem with fastled palette, neopixel strandtest, no matter which one i choose; I previously had the last 15 of these neopixels wired up with a fairly heavy guage wire and they were rock solid. No resistors or capacitors - but it ran for an hour or so no problem. It wouldn't go above 128 brightness though, if i recall it hung and i assumed 128 was the max anyway. I guess not.
So my layout is - Neopixel data off pin 17, neopixel strand of 16 pixels with 5v power and ground coming form the USB cable, which in turn goes into a usb socket-tail and into the teensy.
Changes since it worked perfectly:
1) Added one more pixel (all of them are WS2812B),
2) joined the ground up with the ground pins of 16 buttons.
3) wired the run back through a 30cm ribbon cable (MUCH thinner gauge wire than the wire I was using before.)
4) Hot glued the neopixels in place
5) Soldered ribbon cable socket and ancillary bits back to the teensy on protoboard
6) soldered the reset pin from the teensy to the ribbon cable socket. This is currently unconnected to a switch.
I've checked continuity between all the pins, there are no unintentional joins.
Now they all light, and work briefly, before reboot takes place after 1 or 2 seconds at most. 4 second delay on init works.
While they do work - you get different colours on each LED so it can talk to them all briefly.
Measuring the 5v it goes up and down like a yo yo at the teensy-lc pins, as low as 3.8v and when it settles around 4.65volts it will run a little longer, and this usually occurs when i place the meter on the 5v and Ground on the Teensy.
So i tried power supply 2 with a new cable going straight into the teensy, to isolate the cable, power source, PC power supply etc. from being the cause.
ON power supply 2 - 1a 5v DC, with a different, 15cm usb cable straight into the teensy-lc, the voltage is more stable around 4.65 to 5.01. But it still reboots just the same, within a second or so.
The voltage is still fluctuating a bit, it stabilises once it's crashed.
I tried reducing the brightness to 32, it didn't make any difference, it doesn't appear to be current related in that respect.
I think the fluctating voltage is causing the Teensy to reboot. Is there anything i can do to fix this?
Anyone got any better ideas? I'll try an inline resistor?
The actual load is fairly low but perhaps there is some inrush issue or something.
Thanks in advance.
Please don't laugh at my prototype board
pics here:
Hi All
It doesn't matter if i use fastled or neopixel library, i've got the same problem with fastled palette, neopixel strandtest, no matter which one i choose; I previously had the last 15 of these neopixels wired up with a fairly heavy guage wire and they were rock solid. No resistors or capacitors - but it ran for an hour or so no problem. It wouldn't go above 128 brightness though, if i recall it hung and i assumed 128 was the max anyway. I guess not.
So my layout is - Neopixel data off pin 17, neopixel strand of 16 pixels with 5v power and ground coming form the USB cable, which in turn goes into a usb socket-tail and into the teensy.
Changes since it worked perfectly:
1) Added one more pixel (all of them are WS2812B),
2) joined the ground up with the ground pins of 16 buttons.
3) wired the run back through a 30cm ribbon cable (MUCH thinner gauge wire than the wire I was using before.)
4) Hot glued the neopixels in place
5) Soldered ribbon cable socket and ancillary bits back to the teensy on protoboard
6) soldered the reset pin from the teensy to the ribbon cable socket. This is currently unconnected to a switch.
I've checked continuity between all the pins, there are no unintentional joins.
Now they all light, and work briefly, before reboot takes place after 1 or 2 seconds at most. 4 second delay on init works.
While they do work - you get different colours on each LED so it can talk to them all briefly.
Measuring the 5v it goes up and down like a yo yo at the teensy-lc pins, as low as 3.8v and when it settles around 4.65volts it will run a little longer, and this usually occurs when i place the meter on the 5v and Ground on the Teensy.
So i tried power supply 2 with a new cable going straight into the teensy, to isolate the cable, power source, PC power supply etc. from being the cause.
ON power supply 2 - 1a 5v DC, with a different, 15cm usb cable straight into the teensy-lc, the voltage is more stable around 4.65 to 5.01. But it still reboots just the same, within a second or so.
The voltage is still fluctuating a bit, it stabilises once it's crashed.
I tried reducing the brightness to 32, it didn't make any difference, it doesn't appear to be current related in that respect.
I think the fluctating voltage is causing the Teensy to reboot. Is there anything i can do to fix this?
Anyone got any better ideas? I'll try an inline resistor?
The actual load is fairly low but perhaps there is some inrush issue or something.
Thanks in advance.
Please don't laugh at my prototype board
pics here:
Last edited: