erco
Senior Member
Here's a small part of a project I've been working on, trying to evenly illuminate multiple tubes for a "turbine" effect. A bit like a lightsaber, the goal is to avoid lighting hot spots in the tube. Tried many different things, this setup worked best. Big blue soda straws with a strong 10mm white LED in one end. 20M2 bit-bangs PWM from tube to tube. The unlit ends have waxed paper diffusers inside to spread the light around. 6 tubes make a full cylinder, but I only used 4 since 2 aren't visible. Maybe this will help somebody someday.
https://www.youtube.com/watch?v=QORTkjfEliI
https://www.youtube.com/watch?v=QORTkjfEliI
Code:
#picaxe 20m2
#no_data
pause 100
b2=12
low 4:low 5:low 6:low 7' all LED tubes off
do
for b0=0 to b2
b1=b2-b0
high 5:low 4
pause b0
low 5:high 4
pause b1
next
low 4
for b0=0 to b2
b1=b2-b0
high 6:low 5
pause b0
low 6:high 5
pause b1
next
low 5
for b0=0 to b2
b1=b2-b0
high 7:low 6
pause b0
low 7:high 6
pause b1
next
low 6
for b0=0 to b2
b1=b2-b0
high 4:low 7
pause b0
low 4:high 7
pause b1
next
Last edited: