SilentScreamer
Senior Member
I'm not sure if this is at all possible but could a PICAXE (08M in this instance) be programmed to give multiple PWM routines off any output through programming. If it was changed to run at 8Mhz then pulse the outputs from the code at different speeds to get a number of fading outputs. This rough code idea might help explain what I mean.
I think I saw this briefly mentioned in another thread but I can't find it through searching.
Code:
#PICAXE 08M
setfreq m8
symbol LED = 1
let b0 = 100
let b1 = 20
let b2 = 0
main:
do
for b3 = 1 to 5
high LED
pause b0
low LED
pause b1
next
if b2=0 then
let b0 = b0 - 5
let b1 = b1 - 1
if b0=0 then
let b2 = 1
endif
else
let b0 = b0 + 5
let b1 = b1 + 1
if b0=1 then
let b2 = 0
endif
endif
loop