I am building ‘fire lamp’ I saw on you tube by cine lights that has jason coon’s code with some modifications. It has a teensy 3.2 for a microcontroller and 5V ws2812b leds. I have a 5V 10A power supply. To confirm leds are functional, I can illuminate the leds fine with an arduino uno running ‘strandtest’ with the expected patterns. When I try to run strandtest off the teensy I don’t get any leds working. I can make the teensy run ‘blink’ ok to confirm at least it appears to be working. I think the problem is I need a 3.3V to 5V level shifter for the signal from the teensy to ws2812B leds for it to work correctly, but I just wanted to see if others agree that is likely the problem. I ordered a 74AHCT125 from adafruit that is not here yet. Also, if anyone knows does strandtest code work on teensy 3.2? Thanks for your help
Any example that runs on an Uno should run fine on a Teensy too. Your guess of needing a level shifter is a good one. Let us know how it goes.
I agree, your problem is likely to be fixed with level shifting from 3.3V to 5V.
If your PSU is adjustable, (not a plastic encapsulated type), try powering up the Teensy via the USB and adjusting your PSU lower than 5V, like 4.5V or even lower just for test purpose.
Just make sure the Teensy GND is connected to the PSU GND.
You can run (some) WS2812Bs on 3.3 volt and also give them a 3.3 data signal, but if you run them on 5 volt, then you need to give them 5v data. Don’t forget the power cap and data input resistor, either. Those LEDs are fragile, especially cheap strands which commonly have clones and/or are overcooked in production.
Most WS2812B recent strips sold today do work (just barely) with 3.3V signal input. So did the oldest ones, from 2011-2013. Many of the products sold between 2014-2015 did not work with 3.3V input.
Still, that '125 buffer is the best way.
Hi Kevin… I am the one that built the light using Jasons great piece of code… (cine-lights)… I have built 2 lamps and also a frame all with ws2812b leds from different suppliers and not had any issues.
I received the level shifter in the mail so I will try that tomorrow
I have strandtest working now via teensy 3.2 with the 74AHCT125 level converter!
Next step is the fire lamp code!
I was able to get the lamp to work and see the patterns! beautiful. I had to comment out the delay in the code to get it to work. If you advance to the end of the patterns then it starts flashing like a strobe light, so I think it needs code tweaked to cycle back to first pattern. It does this strobe light effect also if there is no signal input to the leds just power. The button on pin 17 freezes the pattern
The 2 pins… one is shut down, other is next pattern. How many leds are you using? Are you adding more than one power connection to the leds? I add one at the start, one at the end and one in the middle to make sure. The code I posted is an exact copy of the original, but have added 2 more patterns which are direct copies with a colour change.
It would only compile using an older version of teensyduino, but was posted on here a few weeks back and got updated to work on the later version.
I have 432 leds (27 strips of 16 leds) there is more power input after 160 leds and 320 leds
And you have put led dimensions… 27x16 into the code along with 432 number leds?.. I’m sorry if that sounds stupid… it’s just I have just finished off another frame 16x20 and it works fine… along with my previous frame of 14x27
yes I have done that, I can see all the patterns, and they display correctly, the problem is that after you advance through a certain number of patterns at a fixed point it powers off the teensy and you can see the led goes off on the teensy board.
it was breaking on showSolidColor, so I commented it out and no more strobe light problem
And your power supply is big enough ? im using 10 amps… The last pattern in the list is full white with a fade., and your powering the leds separate ? … just see your last comment, to me that means not enough power…
That makes sense
It is 10amp supply but with 432 leds might be insufficient
You will have post final images… :)… my personal favourites are torch and fire…
I am finishing the base
It is curly maple
Has tung oil on it now that is drying
I need to put shellac next that should be done in 2 weeks
I also need to test out msgeq7 I got a different board than what you used
I am putting a brightness knob on it so it can be dimmed if desired
A gift for my daughter
Thank you for all your help
Thank you all for your help it’s finished
Thank you @manny_miller for posting build instructions
and thank you @Jason_Coon for publishing code for torch lamp
My daughter really likes itmissing/deleted image from Google+