Using Luxeon LED Driver with Picaxe 08m

sghioto

Senior Member
Are you using the 5 volt reference voltage to power the picaxe ? Would need to see your code and schematic as YOU wired it, otherwise would just be speculating.

Steve Ghioto
 

lbenson

Senior Member
Figure 15 in the Buckpuck pdf, "Interface to PIC or other microcontroller", is confusing to me, but has the cathode of the LED connected to "GND" (on the PIC) as well as to LED-, and Figure 13 also has LED- connected to COM (common, I suppose). Do you have it this way? As sghioto says, post code and schematic (and maybe photo).

Good find on the part to have micro control of on/off, strobe (and dimming?). I wired up several of the besthongkong 1W/350mw constant current drivers with Cree LEDs, but there's no one-connection method of controlling the LEDs.
 

Peter M

Senior Member
3021 working ?

Hi, can you verify that the 3021 works properly by conecting a swtich (or a piece of wire) across the REF and CTRL pins as per fig 11 (dont worry about the pot), dont forget to disconnect the PicAxe output pin first though. <|;-)
It should be OFF when they are connected, ON when open
 

djmikeys

New Member
I bought the driver that newboy suggested and works fine, what I am now tryinh to do is have the LED have a range of brightness, I am using the pwmout function, I can control the brightness to a certain level but then the led will just turn off when the 'cycles' drops below 30. I am using the led and driven with the pic 08m and an IRF630 transistor.
Here is an example of the code I am using just to test brightness':


main:

pwmout 2,255,20

goto main


Any ideas on how to control the leds brightness from on to off in slow gradual stages?
 

yamato96

New Member
This code refers to a mod i made in a IKEA wall moon lamp .
It uses 1 picaxe 08m + 1 Luxeon Rebel Star white - 130 Lumens + 3 LED UV 5mm 40mW + 1 IFR540N + 3 x 1.2v AA Recharg. batts (3.6v 1000 mA)(no resistors :) !).
 

Attachments

Last edited:

djmikeys

New Member
Thanks for the reply,
I have tried your code with the IRF630 and it only dims to about half brightness, If I use the IRF540N like you suggest will this bring the Luxeon down until it turns off?
 

Dippy

Moderator
mshorter: I haven't checked the code suggested, but sometimes it depends on your circuit as much as the code.

I am using the IRF630 in a project right now and have had to play around with components to drive this MOSFET with a fast pwm. Its nothing to do with LEDs though, so my circuit will not be useful to you.

As I said, I haven't looked at code so maybe the answer is within....

Post your circuit though; just in case.

(Query: That BuckPuk is an expensive way to drive an LED or two innit?)
 

djmikeys

New Member
I hopefully have attached a circuit diagram........

I am using this expensive driver because I assumed it gave the best results for the luxeon star LEDs
 

Attachments

eclectic

Moderator
Mark.
Following on from Dippy's last comment.

Do you simply wish to control the current through a few
350 mA LED's?

Manual 3, page 6 second diagram could be used as a basis for LED control.
(With resistors of the correct value and power-rating.)

Cost of a ULN2003 = 41 pence.
Cheaper than a FET and much cheaper than a controller.

And very simple to control with PWMOUT.

Or have I misunderstood?

e.
 

Dippy

Moderator
mshorter: how are you powering PICAXE?
Please label legs/connections and redo your schematic I can't follow it.
I don't even know, from that, whether you've connected anything up properly.
Put in ALL the legs, pins, whatever and mark them precisely.

Please, please make it easy for others to help as they are giving their time FREE of charge.
 

djmikeys

New Member
Sorry, I was in a bit of a rush this morning, attached is a diagram of more details.

Eclectic: I have had a look at the data sheet for the ULN2003, and am alittle cofused, what exactly does it do? and how would i use it in the context of my work?
 

Attachments

That circuitry diagram seems wrong. Dont connect 'Led -' to the transistor, only' IN -'.

For code,
Code:
start:

symbol pin = 1
w0 = 0;

fadeup:

PWMOUT pin, 249, w0

pause 3

let w0 = w0 + 1

IF w0 = 1000 THEN
goto fadedown
ENDIF

goto fadeup

fadedown:

PWMOUT pin, 249, w0

pause 3

let w0 = w0 - 1

IF w0 = 0 THEN
goto fadeup
ENDIF


goto fadedown
 

eclectic

Moderator
MShorter.

First, apologies for my mistake in post #11; you're Mike not Mark.

Last year, I played with making bike-lights,
using 2803's to control both

a. Eight 5mm LED's and

b. Two 1 watt LED's (for serious rear-lights).

If you're interested, I can dig out the circuits.

e.
 
Top