I am currently doing a project for school where I use a PIR Motion Sensor and a FIT0381 Super Bright LED to send a flash to nearby pedestrians when motion in a driveway (a car) is sensed (reversing).
I was wondering how to make the FIT0381 (10W Super Bright LED - RGB Australia) compatible with my Arduino Uno board as it is not as straightforward as the standard LED I was using to get the Motion Sensor part of the code up and running.
Any help is greatly appreciated as a standard LED will not be bright enough for my project.
Hi Kooper
Simple way out is to use a Mosfet switch. Core have one mounted on a little Freetronics board SKU CEO 4538. You will still need a suitable current limiting resistor. Connect Gate directly to Arduino I/O pin.
Cheers Bob
This super bright LED can damage your eyesight if looked at directly for long enough.
I have a 3W one that IMHO is too bright for indoor use, other than a simply flash.
As you are using it outdoors and only to flash it should be ok.
Just don’t look directly at the LED when testing your circuit.
Also the 5V pin on the Arduino UNO can only supply about 100mA. As Robert has said you will need a Mosfet switch connecting a voltage source external to the UNO to the Super Bright LED.
Appreciate the feedback so quickly. I have purchased a 1K OHM Resistor and some TIP120 Transistors - which I believe is the MOSFET you are referring to (please correct me if I am wrong as I am fairly new to Arduino) as per some research I undertook for the project.
My main concern, which I should have outlined more clearly in the original post, is how to connect the Super Bright LED to my Arduino as it does not have pins like a normal LED. Will I need a PCB for this or is there another way I can test this?
Where you connect to depends on what colour you want. You have not stipulated that. This is a RGB device so has 3 separate colours, I assume each with its own limit resistor. I don’t think they are built in. The Data sheet can be accessed via Core page for this product but is delightfully vague. Tells one a bit including connections but as the voltage drops for the 3 colours are quoted separately I am assuming they are not internal.
You now have to determine 3 things.
Intended colour.
supply voltage.
Switching device.
Then out with the slide rule, oops I meant calculator.
Cheers Bob
Simple way to test is to use alligator clips. (see below)
BUT, you cannot power it from the UNO. You need a separate power supply. !!!
Suggest using the following, as Bob suggested.
The G (gate) can be connected to a UNO digital pin (2 for instance).
The S (source) connects to GND of your power supply. Should also connect to GND of the UNO.
The D (drain) connects to the Super Bright LED through a resistor.
Power supply could be a 4 x AA cell battery pack. (6V).
Initially I would limit the current through the Super Bright LED to less than 50mA.
So the resistor should be 6 / 0.05 = 120 ohms, power 6 * 0.05 = 300 mW (1W resistor would be ok).
Just remember you are dealing with a high power device, you must be sure before you connect anything and turn it on. You could experiment with the alligator clips, Super Bright LED and battery pack before connecting the UNO. Work out how large a resistor you need, ohms and wattage for the brightness you need. You could connect the Freetronics Mosfet and see how it works. Use a 1K resistor connected to G. The other end of the resistor connect a alligator clip and tap the battery +ve.
The LED should turn on and off. When happy that it all works nicely, connect the UNO.
Your method of testing in isolation is valid if you use the suggested board. If you use a Mosfet in isolation it will not turn off when you remove the switching voltage. This is due to the charge on the gate capacitance which has to be discharged to ground to turn the Mosfet off. The Mosfet will probably even stay on if you remove power and when power is reapplied this device will be still switched on. With some devices this cap can be quite large and represents a short to ground at switch on so a series resistor is used to limit current to a safe value. This can cause another problem as if this R is made too large the switching time will be extended far enough to cause heating of the Mosfet during this time. This switching input current can be Amps for a very short time (charge and discharge) so mostly I prefer to use a dedicated Mosfet driver or a PNP/NPN transistor combination to supply and sink this current and use a small series resistor.
The Mosfet used on that Freetronics board has a relative low value of Gate cap so uses a 1k series resistor which is on board. This cap is small enough to allow Arduino to drive directly with 1k series resistor. This is something to be aware of if attempting to switch large currents with Arduino directly as using a large value resistor to suit Arduino capability may slow down switching and cause overheating.
This may be a bit long winded but Kooper is obviously a student and if he used the simple method of testing he could be left scratching his head trying to figure out why the LED did not go out. Of course he may be aware of all of this but I/we have no way of knowing.
Cheers Bob
Agree with all you have said Bob.
With many of these posts you don’t know the level of skill or understanding a person has. So I try to pitch it at what I think is the right level. Sometimes I miss.
Using AA cells as a power supply is pretty simple and easy to achieve for a basic test. Along with the alligator clips you can confirm how components will behave. It is what I do now. Having a multi meter also helps. Final design would be much different and the values would be calculated more accurately.
I just hope that what I have said is of help to Kooper.
You are right with respect to 4 x AA cells, it should be 8 cells (12V).
And the resistor should be 45 ohms as you have said.
The 1W Super Bright LED I have, has a forward voltage of 3.3V but will light when directly connected to 2.5V, although very dim.
The 10W Super Bright has a forward voltage of 6.5V (Red), and 10V (Blue, Green). The Red may light with 4 cells the Blue and Green probably not.
I had not applied enough engineering in my previous post. Opps.
I could change my post but the thread would then be wrong.
Hi Kooper,
Apologies, please change the number of cells to 8 and resistor to 47 ohms, if you want to go that way.
Access to a bench top variable power supply would be good.
But a 12VDC plug pack as suggested by Bob would work.
Sorry I disappeared for a little while. The project was abandoned due to COVID-19 and I have recently decided to pick it up again. I have purchased all the supplies recommended. I also have a 12V power supply which plugs into the wall. I found the positive and negative points through testing.
I am at a bit of a stalemate and am not sure where to go from here as I am just a beginner.
Attached are some photos of my situation. I have a PIR blink setup on the Arduino and separately I have the Superbright LED connected to my power source through alligator clips.
From what I can gather, all I need to do is substitute the LED in the blink code for the superbright, however it does not seem as straightforward as that. Both work separately, just need them to work together to light up the LED after the motion is sensed.
Thank you so much for the quick response. I’ll be sure to do my homework on the previous posts of this thread.
Ideally would like Red, and from memory I don’t believe that it would be safely possible, however the colour does not matter. When testing the colour came out as blue, I am fine with this.
The back of the power supply reads:
INPUT: 100-240V (approx) 55Hz 0.5A
OUTPUT: 12V 1.5A
Definitely take a look at his other videos for future projects, and if you can spare a couple $$$ even breaking some parts to learn is worth it in the long run.
As for the code, I find drawing up a flowchart helps immensely with figuring out how each decision will have to be written.
There are countless other educational Youtubers around especially EEV blog, if you want some recommendations for what anyone is looking for feel free to send me a personal message through the forum!
Well said Liam
But without some basics quite a few of the videos can be very confusing for the experienced never mind about the novice. On the other hand some videos should be compulsory viewing. The one by Michael for instance. That ohms law and power triangle have been around since Tesla days I think and are still used. The 555 timer cropped up a couple of weeks ago. There have been volumes written about this little chip, and still going. All good stuff.
Cheers Bob
If you want the Super bright LED to light when the PIR is triggered, you don’t need to use the Arduino. The output pin of the PIR can be used to trigger a transistor of mosfet. But if you want better control over the LED on and off time the Arduino would be ideal.
Note: Recently I tried to use a mosfet in a 5V circuit, it did not work. The reason was the Mosfet had a Vgs (voltage gate source) of 10V. At 5V it did not enter its saturation region and did not act like a switch. I solved the issue by using a 5V relay.
In selecting a mosfet to work with the 5V from the Arduino GPIO pin you would need one that has a Vgs of around 5v.
The following device might be worth considering. It is LOW active; GND from the GPIO pin will trigger it, HIGH will deactivate it. It completely isolates the Arduino from the LED. Wiring would be easier than using a mosfet, you would not need a separate circuit board to mount the mosfet and resistors. You could also use it to switch some hefty devices, 250VAC 10A, 30VDC 10A.
Anyway, all the best in your adventure.
Cheers
Jim
Hi James
The Mosfet on that Freetronics breakout board is a “logic level” device. It switches fully on at less than 5V.
The reason I suggest that unit is the other required bits like Gate series and Gate discharging resistors are all there and the connections are clearly marked. Could not be easier for a novice to use. Probably easier than a relay which will require a driver transistor (and a diode across the coil if not already fitted. That relay board you linked probably also has all the required extra bits.
Cheers Bob
Agree Robert.
Thought about how I would do this given the parts Kooper has and the Freetronics board would be the best solution. My main concern with the relay is how to power it. The 5V from the Arduino should NOT be used, it is only good up to a 50mA or less. Try to get too much out of it and the regulator on the Arduino would die. It is already dropping 12V to 5V.
The Mosfet solution is the better one.
Kooper,
If you like I can throw together a simple diagram of how to connect it all up. Let me know.
I appreciate all the help from everyone. As I am just a novice, I have done some homework and read through this thread. All the help has been fantastic for this project and I have been able to familiarise myself with the equipment and terminology.