LED Controller (PICAXE)

Kit Price will be approximately $20. Pre order price is $15 (only 5 available). The board in the video is a chemical etched prototype. Modification have been made and professional PCB’s have been manufactured.

I am waiting on some stock of the PICAXE 20M2 so that I can complete the kits. I will update prices and availability when they arrive.

3D Printed part files available on Thingiverse:
http://www.thingiverse.com/thing:67010

Lights Demo:

Flying Video:

Features:

  • SMD MOSFET rated up to 60V @ 12A (well over spec and voltage reg is not rated this high)
  • SMD 5V DC Regulator to drive PICAXE chip
  • 4 x output terminals designed for LED Strip
  • All 4 output terminals are individually controlled by PICAXE but can also be PWM at the same time by a 5th MOSFET.
  • 3 x Input terminals (one of these is used by the Radio Receiver connected to the 6th channel)
  • 1 x Push button switch

Code Example:

SYMBOL SMD	= B.0
SYMBOL PWMFET = B.1
SYMBOL GLED = B.2
SYMBOL RLED = B.3
SYMBOL BLED = B.4
SYMBOL TOG = C.7
 
SYMBOL togpulse = w0
SYMBOL prog =b2
SYMBOL Repeat = b3
SYMBOL Fade = b4
SYMBOL Level = b5
 
SYMBOL Period = 62 'PWM period at 62 allow duty cycle between 0 and 255 (good for byte variable)
 
init:
	SETFREQ m16
 
	pwmout PWMFET, Period, 245
'	high PWMFET
main:
	gosub CheckTog
	if Prog = 4 then Program
 
	'let Level = TogPulse - 111 * 7	'Rx Range is 112 --> 147 = 35. x6 = 245 (max brigtness would be 255 so 245 is close)
	let TogPulse = Togpulse - 445
	let Level = TogPulse *17 / 10	'Rx Range is 450 --> 588 = 138. x 1.8 = 248 (max brigtness would be 255 so 245 is close)
 
'	debug
 
	pwmduty PWMFET, Level
 
'goto main
 
Program:
	if Prog = 0 then gosub AllOff
	if Prog = 1 then gosub NavLight
	if Prog = 2 then gosub Clockwise
	if Prog = 3 then gosub Fash
	if Prog = 4 then gosub Flow
	if Prog = 5 then gosub AllOn
 
	goto main
 
CheckTog:
	pulsin TOG, 1, TogPulse
	if TogPulse > 600 then
			pulsout SMD, 1000
			inc Prog
			gosub ChangeProg
			'gosub lowlights
		else
			low SMD
	endif
 
	if TogPulse = 0 then 
			let prog = 0 'AllOff
			high SMD
		else
	endif
 
	if prog > 5 then
			let prog = 0
		else
	end if
 
	Return	
 
AllOn:
	high RLED, GLED, BLED
	pause 2000
 
	Return
 
NavLight:
	high BLED
	high RLED
	pause 1000
	low RLED
	high GLED
	pause 1000
	low GLED
 
	Return
 
Clockwise:
 
	Pulsout BLED, 60000
	pulsout RLED, 60000
	pulsout GLED, 60000
 
	Return
 
Fash:
	For Repeat = 0 to 1
	pause 500	
	high BLED,GLED,RLED
	pause 500
	low BLED,GLED,RLED
 
	next Repeat
	let repeat = 0
 
	Return
 
Flow:
	high RLED, GLED, BLED
				'ramp up
	for Fade = 50 to 250
	let Level = Fade
	pwmduty PWMFET,Level ; set pwm duty
	pauseus 200
	next Fade
 
	gosub CheckTog
 
				'ramp down
	for Fade = 50 to 250
	let Level = 300 - Fade
	pwmduty PWMFET,Level ; set pwm duty
	pauseus 200
	next Fade
 
	Return	
 
AllOff:
	low RLED, GLED, BLED
	pwmduty PWMFET, 0
	pulsout SMD, 10000
	pause 2000
 
	Return	
 
ChangeProg:
	low RLED, GLED, BLED
 
	pwmduty PWMFET, 255
 
	pause 1000
	high RLED, GLED, BLED
	pause 50
	low RLED, GLED, BLED
	pause 1000
	high RLED, GLED, BLED
	pause 50
	low RLED, GLED, BLED
 
	pulsin TOG, 1, TogPulse
 
	Return
 
lowlights:
	low RLED, GLED, BLED
	Return
Order LED Strip Controller