Тёмный

Control 12v LED strip from Arduino using a Mosfet 

Gadget Addict
Подписаться 419 тыс.
Просмотров 230 тыс.
50% 1

A simple guide to controlling 12 volt LED strips from your Arduino using an N Channel Mosfet.
In my example I'm using PWM to fade the 12v LED strip, but you could just as easily turn the LED strip on and off instead of fading it. Also it doesn't have to be an LED strip and it doesn't have to be 12v!
If you're going to drive a motor or a relay (or any inductive load) using this setup, you should add a diode across the positive and negative input of the motor/relay to avoid any back voltage.
I've over simplified things in terms of my description and the circuit, but it should be enough to get you up and running and to give you a basic understanding of how an N-Channel Mosfet works.
Pretty much any N Channel Mosfet will be fine, but ideally you want to go for an L series, because the gate can be reliably driven at lower voltages, such as the 5 volt from the Arduino.
If you're curious, a MOSFET is a metal-oxide-semiconductor field-effect transistor. The benefit of a MOSFET over the traditional relay is that it can turn on and off extremely quickly, meaning it's suitable for PWM, compared to the old coil relay which can't turn on and off so quickly. Of course a modern solid state relay can compare against a mosfet or transistor.
SUPPORT ME: If you enjoyed this video, please remember to give a LIKE and click here to subscribe to my channel - www.youtube.com...

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 434   
@GadgetAddict
@GadgetAddict 7 лет назад
You might prefer the simplicity of an Arduino relay board.. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-pAxveXF1W6U.html
@lot10games
@lot10games 7 лет назад
Not when need low consumption in Arduino. Take my case, I am powering nano from sun(as a battery controller and house automatization), relay module uses 30mAh each, and my project without relay on consumes
@AlejandroCastiblanco171
@AlejandroCastiblanco171 6 лет назад
which mosfet did you use? what resistance ?? can you share a diagram? is a IRF540N
@gg-gn3re
@gg-gn3re 6 лет назад
@Alejandro did you eve read the IRF540N? What are you trying to power, an entire building? Holy shit that is a big mosfet. That can barely even be driven by the low voltage of arduino LOL
@eyezonmy6
@eyezonmy6 5 лет назад
relays ew
@mangalaabewardana197
@mangalaabewardana197 2 года назад
@@gg-gn3re pls help me give me example for n channel L series mosfet
@SmartLifeEnthusiast
@SmartLifeEnthusiast 9 лет назад
The amount of RedBull in this video is too damn high!
@GadgetAddict
@GadgetAddict 9 лет назад
+ThatCoder I
@chillzwinter
@chillzwinter 8 лет назад
+ThatCoder He'll be an insulin dependant diabetic by the time he is 30, if he's not already.
@aidanmeyer7825
@aidanmeyer7825 8 лет назад
If he's not already 30, or if he's not already a diabetic?
@loukask.9111
@loukask.9111 8 лет назад
holy moly just saw it :D
@vitpodstavka7103
@vitpodstavka7103 5 лет назад
Depends on the time in which he drank them. If it took him 3 months he is probably fine, if it took him 3 days it is a diffrent story
@JSROOKS
@JSROOKS 7 лет назад
GREAT video! So well thought-out, and wonderfully presented. Top marks. I am building a 4-bank led controller right now, and I think that the Mosfets and pots(inputs) will do the trick nicely.
@RallyGeek12
@RallyGeek12 8 лет назад
Really easy to understand. Perfect inspiration for beginners to get a handle on how to do this. I like how you keep the detail for later follow up. My electronics knowledge is quite lapsed and I needed a quick guide how to drive an Ikea Ledberg strip. Thank you for the excellent posts! :)
@nasirillasarie3664
@nasirillasarie3664 9 лет назад
Do you have a link for the exact MOSFET that you used?
@KraKaKrwa
@KraKaKrwa 6 лет назад
Thank you. A simple example of mosfet
@outcry27
@outcry27 9 лет назад
Thank you very much for making this video. I'm currently working on designing a prop FX package around an Adafruit "Pro Trinket" mini Arduino board, and needed a way for the 3v Trinket to control a muzzle flash LED running on a much higher voltage. I was wondering if I could use a MOSFET to do it, and not only did your video confirm my theory, it showed me exactly how to set it up. Again, thanks.
@mohammadibrahimkhan5754
@mohammadibrahimkhan5754 9 лет назад
video was really helpful thanks
@nickyamrick6554
@nickyamrick6554 4 года назад
Can you tell me which mosfet you are using in the video. (Part number)
@adriankomaromi5643
@adriankomaromi5643 2 года назад
You seem to have drinken a tid too much Red Bull, Sheldon.
7 лет назад
As I'm an newbie to Arduino, can you please show the code for controlling MOSFET? This is exceptionally good demonstration of MOSFET use, easy to understand, easy to wire. It just needs a sample code :-)
@GadgetAddict
@GadgetAddict 7 лет назад
I just used one of the sketches included with the arduino software, the blink or fade sketch will work :)
7 лет назад
Thank you!
@arichitkumarpatha8514
@arichitkumarpatha8514 5 лет назад
Thank you bro.. its very helpful tutorial...
@kristinwalsh9243
@kristinwalsh9243 3 года назад
Hi, where can I find the code associated with this project?
@alenninan5524
@alenninan5524 Год назад
can u tell me the name of n mosfet used in this expt ?
@lohwenkong8347
@lohwenkong8347 4 года назад
He drank that lot of RedBull to get this video done
@bosmutus01
@bosmutus01 3 года назад
Can you share sketch for this scheme?
@tonypachino4535
@tonypachino4535 9 лет назад
i want to make same thing with 5M SMD 5630 LED Strip, in buying description is said that working current is 2A, which mosfet will be suitable and that will run fairly cold?
@GadgetAddict
@GadgetAddict 9 лет назад
Tony Pachino There are so many mosfets available that it wouldn't be practical for me to give a specific model number. Most "power" mosfets are rated for 10-50 A. So I'd imagine any of them would handle your 2A load pretty easily without getting too hot. It shouldn't cost you more than $1 / 50PHP so just give it a try and add a small heatsink if needed.
@SCARREDMTBER
@SCARREDMTBER 8 лет назад
+Gadget Addict where can i buy an N channel Mosfet suitable for controllings something 3V? It draws 250mA so i need to power it separately.
@CoreusSymphonia
@CoreusSymphonia 7 лет назад
Could you suggest a MOSFET with a Drain to Gate threshold VGS(th) in the 3v range?
@randytravis5893
@randytravis5893 9 лет назад
How hard is it to use the arduino? I don't know much about micro controllers or computers. How would I go about getting one and learning how to use it, + I would like to get an osiliscope and I haven't got a clue where to find one here in the Philippines.
@GadgetAddict
@GadgetAddict 9 лет назад
It's pretty easy to get started with the Arduino. Over the years I'd tried some alternatives but Arduino really seemed the best. It comes with lots of sample sketches (programs) and there's great 'getting started' tutorials on the official website. You can buy an arduino from OLX or from E-gizmo in Manila. The clones are generally just as good or identical to the "official" arduino but much cheaper. Just buy a breadboard, some switches, buttons, LEDs and such like to go with the arduino for you to play with. I don't have an oscilloscope but I've seen some for sale on Sulit/OLX but they're kind of expensive. You can buy from china/HK through ebay but you'll likely be charged by customs when it arrives in the country.
@sohambhattacharya5630
@sohambhattacharya5630 7 лет назад
excellent video and very simple. Now how can i make that flash to music? plz help!
@GadgetAddict
@GadgetAddict 7 лет назад
You'd need a microphone module for the arduino and then monitor for levels over X.
@devikabsree8087
@devikabsree8087 7 лет назад
Can you please tell the exact model number of the MOSFET you are using
@GadgetAddict
@GadgetAddict 7 лет назад
I don't have the exact model, sorry. Any N channel mosfet will work.
@jacklamuraglia5163
@jacklamuraglia5163 9 лет назад
Thanks for the help could you use this set up to control the color of the LEDs (if they are able to change colors)
@GadgetAddict
@GadgetAddict 9 лет назад
Jack Lamuraglia This can only turn on/off and PWM the strip. For color control you need a digital signal rather than just on/off.
@DaniBarza
@DaniBarza 8 лет назад
Good video but anyone know if I can "control/interrupt " the + wire? In this video he control the negative, can I control the + like a relay?
@GadgetAddict
@GadgetAddict 8 лет назад
You can. It doesn't matter if you do it on the ground or positive.
@Torcika
@Torcika 9 лет назад
if I wanted to power the arduino from the same 12 v battery,how could I do it?
@GadgetAddict
@GadgetAddict 9 лет назад
Tore Chikano You can just connect the battery to the Vin and GND of the arudino. The arduino already has a voltage regulator built in that can handle 12v :)
@Torcika
@Torcika 9 лет назад
Gadget Addict Thank you!
@earljackson4698
@earljackson4698 6 лет назад
Does it work with arduino uno?
@pjfajardo8687
@pjfajardo8687 6 лет назад
It does
@vegard7syv734
@vegard7syv734 10 лет назад
Really Good video :) can you make a video with a 12v motor?
@GadgetAddict
@GadgetAddict 10 лет назад
Mmm I could but it would be exactly the same, except with a diode across the motor :)
@vegard7syv734
@vegard7syv734 10 лет назад
Ok :) I am new to this, so I have problems understanding how to do that :P but thanks :) you have a lot of Good videos
@tomislavstarcevic814
@tomislavstarcevic814 7 лет назад
Thank you very much, this was very helpful!
@SrgjanLDTeam
@SrgjanLDTeam 8 лет назад
ive been asking how to use external power source with arduino for a year, finnaly i got simple answer in 5 minutes, the mosfet shit..... just ordered online.. thanks.
@GadgetAddict
@GadgetAddict 8 лет назад
+Srgjan XXI No problem :)
@jonathanm9436
@jonathanm9436 8 лет назад
Really impressively paced, clear, logical, explanatory and complete. I'm relieved to have found your video so early in my search - to dim about 9m / 7.5A of LED ribbon using an Arduino instructed by the circuit dimming function provided by my house's Dynalite automation system. That second bit is the next challenge - I suspect by analogue sampling. I look forward to exploring the rest of your videos.
@CraigMansfield
@CraigMansfield 3 года назад
Clear. Intelligent. Nothing superfluous. No annoying music. What a joy And how wonderful that is the missing part of my project.
@WhoWantsToKnow81
@WhoWantsToKnow81 9 лет назад
It's Sheldon!!!
@ghlawrence2000
@ghlawrence2000 9 лет назад
Be aware this guy must be wearing an ankle strap since there is no wrist strap apparent.... MOSFETS are susceptible to static discharge damage..... It is also bad practice to power up the circuit before everything is connected. The last connection should be to the battery +ve terminal.
@mangalaabewardana197
@mangalaabewardana197 2 года назад
So please tell me for example to N type MOSFET. I can buy. I m beginner to electronics so i need help me.
@ernestosastre7555
@ernestosastre7555 8 лет назад
00:00 sheldon cooper Btw, great video
@moteados
@moteados 9 лет назад
nice video and stop drinking red bull lol
@vasanthvasee9206
@vasanthvasee9206 4 года назад
Hello, can I know the exact number of MOSFET you used for tutorial???
@alcidesmarcano
@alcidesmarcano 4 года назад
Thank you so much for your great video, I was stucked in my project with N Channel Mosfet and you light me about the need to bridge my ground to esp8266 and 12v source, thank you so much, I appreciate that... You have one more subscriber!!!
@meowman8958
@meowman8958 9 лет назад
Hello Sheldon Cooper.
@BrutalGames2013
@BrutalGames2013 5 лет назад
The same thing I was thinking :D
@sdp_studios
@sdp_studios 11 месяцев назад
Hi, really impressive video 😁, im working on a an Arduino project that controls an LED strip with a TIP121 mosfet transistor, im trying to dim the separate channales so that i could make any color but it seems like the red channel is not dimming at all but the other 2 does, the red channel just turns of when it hits analogWrite(red, 150); can someone help me figure this out....
@LedControllers
@LedControllers 6 месяцев назад
Is it possible to provide signals to both the anode and cathode from a microcontroller, and then obtain a 15 amp output from the MOSFET? Can the MOSFET accommodate giving an anode signal to the drain pin?
@alltypevideos7016
@alltypevideos7016 3 года назад
Red Bull Gives You Wiiing 😀😀😂😂
@mcbbcn
@mcbbcn 2 года назад
I love this video. It's one of the simplest and most effective explanations I have ever seen. That was amazing. Thank you for what you do!!!
@actyon20
@actyon20 4 года назад
If you don't connect Arduino's ground to the battery's Ground ...basically you do not have a closed circuit for the 5V PWM command, right?
@Dharmendrasavaliya012
@Dharmendrasavaliya012 7 лет назад
Hello sir, Can you help me for Dimming COB DC lamp with 28V 670mA? 1. TIP41C BJT [100V 6A 65W] it is getting to much hot. 2. IRF540 MOSFET[100V 30A 150W] it is not giving effective dimming Other Option is to use TIP120C BJT[60V 5A], IRF520 MOSFET[100V 10A] Which is best IC to use with 4N35 Optoisolator to dim DC with ARDUINO ?
@hodpath1632
@hodpath1632 4 года назад
I did exactly as you said. II'm using an IRF 540 MOSFET. The LED strip lights up but does not blink while the onboard arduino blinks. Any guesses what is wrong
@2gigahijau
@2gigahijau 3 года назад
Hallo, your video' helped me a lot, so thanks man! I have a quick question though, What if im gonna use 2 Led tape? can i just add the LED To a PWM arduino pin, or should i add another power supply first?
@mattblackburn1450
@mattblackburn1450 4 года назад
So I am fading an led light in very slowly with pwm and arduino nano and a mosfet. My led comes on much brighter than if I manually regulate the voltage down which is not desired. I would like to dim the led all the way down to barely noticable. Does anyone have any ideas how? I can put a resistor on the power going to the led and achieve the dim level i want but the top end brightness is compromised.
@S0K0N0MI
@S0K0N0MI 4 года назад
People keep saying I should use BS170 transistors to power my 2 meters of RGBW LED (35w in total). What do you think?
@allenvtvificandoityoucando5548
@allenvtvificandoityoucando5548 4 года назад
I search and subscribed every motorcycle vlog not even single 1 show if i can use adruino in Motorcycle. I hope you can help me.
@DJDevon3
@DJDevon3 10 лет назад
I've read that if you use a mosfet when dealing with 12v that you should also use a diode. Is that only for automotive applications since an alternator might not always put out a steady 12v? Thank you for the video.
@GadgetAddict
@GadgetAddict 10 лет назад
If your mosfet is going to be switching an inductive load like a motor or a relay then you should use a diode because of the large voltage spike it will push back into your circuit when it turns off. But for loads like LED strips, you don't need to worry about it. I mention the requirement of a diode in another video titled 'Control AC Appliances with an Arduino + Relay'
@DJDevon3
@DJDevon3 10 лет назад
Thank you for the response. Has anyone told you look like Sheldon from the Big Bang Theory? :)
@jdbjaydeebee7737
@jdbjaydeebee7737 3 года назад
hi. i just saw this video about led strips. and i am quite confused as there should be 3 or 4 connections on the led strips depending on the kind of strip you have. but mostly, it's just vcc, ground and either 1 or 2 data pins. but on this video, you only got 2 connections. what happened to one connection? i am trying to figure out or find your schematics but i just can't find it. and by the way, i just subscribed to your channel and just found out you live in Philippines too. hehe
@scyther149
@scyther149 3 года назад
hi, i know its an old video, but hopefully you can answer me, where can i find the arduino code for these leds? The only thing I find on the internet are for 5v neopixel led strips, I can't find these 12v monochromatic leds, I want to make the same effect you do in this video but slower
@GabrielCage92
@GabrielCage92 3 года назад
i think i tried to use every mosfet there is on the market but it always stays ON. My ciruct is as simple as it on the video, i tired to used IRF530 mosfet but it also not working for me, any ideas?
@bobjr9503
@bobjr9503 4 года назад
How did you get pin 13 to fade? my Arduino Uno LED connected to pin 13 is not PWM capable.
@damichl9684
@damichl9684 2 года назад
I want to fix my led Controller. There is one mosfet defect. I would like to build not the same one but a larger one. How do I find out which mosfet I need.
@johnberry5339
@johnberry5339 4 года назад
Another Great tutorial, I cant believe its taken me 6 years to find it lol. Thanks John 👍😁
@JustinPaul1st
@JustinPaul1st 3 года назад
Let me understand you correctly the mosfet will allow you to run true 12v+ with no need to step it down to 5 v via the arduino 🤔🤔🤔
@tageandersson3043
@tageandersson3043 9 лет назад
Good touritals, with basic information about how to sample the MOS-fet transistor. First, however, I'm missing some tip about the gate, by looking at many project as like this, when using a MOSfet to power up high power load, it's a resistors above 100-470 ohm's between gate and output pin at Arduino. You mention nothing about this issue. Second, do you have some project's/URL to pilot lights (1-3W led's diode) with different blinking cycles, using Arduino Nano? I was thinking a simple UVA light to my DJI Phantom shod contains two red lights i face direction, and two green led's at the back of UVA. At power ON, green blink/flash 3 times during a sec., pause 2 sec. The red led blink 50mS each 3 sec. periode. The cycle period switch off after 3 min., then running for 2 min., off 3 minutes and continuous (safe battery with 3 minutes off). Power source think a Li-Po 11.1V 1200mAh do the jobs. Power mosfet have spec. 30V 5.8A (N-ch), and green mini diode 650mA @ 3,2-3,6V-3W each, green mini led 700mA @ 2,0-2,5V 3W each. Any tip?
@GadgetAddict
@GadgetAddict 9 лет назад
Tage Andersson Mmm well when it comes to code, it would be extremely simple because the arduino is easy to program and the samples give you everything you need. For the example application you mentioned, you could simple open the 'blink' demo program and modify it to do what you want in a matter of 60 seconds. Those power mosfets should work fine although might be an overkill for those small LEDs :P Especially since they're only blinking and not a constant load.
@johnploense2944
@johnploense2944 3 года назад
please put 3528 in your video description. It's hard to find tutorials on them
@robertgrain7368
@robertgrain7368 9 лет назад
Thank you very much just learning about these things and gave me a great grounding tutorial.
@alexx7447
@alexx7447 4 года назад
Can a similar thing be done with rgb leds if you have that setup for each of the colors?
@dogsborodave
@dogsborodave 7 лет назад
Simplicity rules the day! This is a fantastic tutorial and exactly what I needed. Thank you.
@TimothyCareyDV
@TimothyCareyDV 9 лет назад
How would I use this technique to control the speed of a motor and control the direction?
@IanJamesFowler
@IanJamesFowler 9 лет назад
I notice some of these mosfets are capable of high currents...say if I wanted to drive a couple of motors this way but required 8v from a 12v battery...could I use this arduino pwm to step down the voltage while keeping the current constant? if so how efficient would it be at maintaining say 20A of current as I lower the voltage...I suspect the mosfet would get really hot
@GadgetAddict
@GadgetAddict 9 лет назад
Ian Fowler Yep you could do that and yes it would get really hot lol. So you'd need some chunky heat-sinks and probably a cooling fan.
@sized4spills
@sized4spills 9 лет назад
Wow thanks, you made it very clear and simple.
@jasonorozco1587
@jasonorozco1587 10 лет назад
Excellent! Like you said, I was able to find a lot of videos that just explained the physics behind the mosfet, and I get it, but they all left me unable to figure out how exactly to control some LEDs from my arduino. As soon as you pointed out that the ground of the arduino needed to connect to the ground of the power supply, my problem was solved. I was really concerned about how the gate would be controlled without a ground connection in the first place. Thank you!
@GadgetAddict
@GadgetAddict 10 лет назад
I'm glad it helped you out. Once I finally got it working, I realised that it's really very simple. I'd watched so many videos and tried to follow along without any luck. So once I finally understood it, I wanted to create a video that explains it as simply as possible, so other people can get up and running without too much bother.
@815donalduck
@815donalduck 9 лет назад
im not an electrical engineer....but is it possible to connect some AA batteries to a 2m LED strip?....i just need it for like a couple of hours of use?...any help will be great
@GadgetAddict
@GadgetAddict 9 лет назад
If you had enough AA batteries wired in series to bring up the voltage then you could probably do it. Let's assume you had 8 AA batteries in series, giving you 12 Volts and assume they're rated at 2000 mAh. That gives you 24 watt hours of power. Let's assume your LED strip consumes 6 watts, 24 / 6 = 4 hours. But of course the voltage of the batteries drops as you consume them so you need to know at what point your LED strip can still operate. If it's something you're going to do often, I'd buy a portable 12v Li-ion battery. If weight isn't an issue, consider a standard 12v 7ah sealed lead acid battery :)
@MrRobertpn
@MrRobertpn 9 лет назад
looking at some MOSFET switching circuits, they have a resistor from the gate to ground. Any thought on the use / benefits of this?
@GadgetAddict
@GadgetAddict 9 лет назад
MrRobertpn The resistor to ground is a good idea. It ensures the mosfet 'turns off' when you expect it to, without any power sitting inside it. It can also solve/help the issue I showed where you touch it with your finger and the static charge triggers the mosfet.
@SaureHefePegorino
@SaureHefePegorino 8 лет назад
Help! On my RGB Strip when the MOSFETs are OFF its resistance to ground is 16Mohm but still if i connect the 3 led kathodes the strip lights all white up! (all 3, RED; GREEN; BLUE) wtf?
@randytravis5893
@randytravis5893 9 лет назад
Do they have a E-gizmo in Cebu? I don't get around much and I find it hard to find any phone numbers or locations off of the internet here in the Philippines.
@GadgetAddict
@GadgetAddict 9 лет назад
I don't think they have a store in Cebu but you can order by email, deposit into a local bank and then have it shipped to you by courier. I looked on Sulit/OLX and there are sellers there in Cebu. You might recognise the locations, otherwise you can just text them or have a local friend help you out :)
@CaptainsDrydock
@CaptainsDrydock 6 лет назад
Superb and easy to follow guide. Worked great thanks :) I had a issue when applying it when the pin has code where the light needs to be completely off i.e. When power is applied, the LED strip comes on instantly before going to it's lowest dim level. But I need it to not light up when power is applied until my code tells it to. I'm assuming this is a MOSFAT issue circuit issue as it happens with any code I use, as the code works when I use single LED(S).
@Umby73you
@Umby73you 8 лет назад
Hi, many compliments for Your video. Just a info: i need to make a counter up/down to realize a volleyball scoreboard. I want to use a LED strips (35 led for digit for a total of 4 digits). Do You think is it possible using mosfet instead rele? How about to use a PC power supplier? Thaks a lot, Umberto.
@ChipHirn
@ChipHirn 10 лет назад
Thanks buddy! :) straightforward - perfect.
@deathmetallica2nd
@deathmetallica2nd 4 года назад
Few questions here.. Which MOSFET are you using in the circuit? Don't we need a pull down resistor connected at gate of the MOSFET? In case to avoid misreadings at the gate due to capacitive discharge and turn ON the gate/LED when we actually need it turn OFF. Also, does MOSFET's Vds respond to PWM in the same way as the PWM at Vgs? That's really cool if it does. I thought MOSFET could just be used to turn off and/or on.
@4363654
@4363654 7 лет назад
doesn't mosfet need resistor toward ground on gate pin? FETs have internal capacitance and if you don't drain voltage from the gate they stay open.
@GadgetAddict
@GadgetAddict 7 лет назад
It's recommended. It won't always be a problem but it can be sometimes.
@Mitraavisek63
@Mitraavisek63 4 года назад
Why you connect the grd with negative terminal of the battery?
@Mr_ToR
@Mr_ToR 7 лет назад
Thnx a lot for this great video. I have a couple of questions. Since LED illuminance is driven with current, how do you calculate min and max current supplied? Also, if my led strip requires 1.5 Amps, what should the power supply be and which mossfet should i use? Thnx a lot.
@alibarrera4410
@alibarrera4410 10 лет назад
Sir how about those video using 555 time to control dc motor have your ever done that if yes can you pls post it so I can make a pwm controlled fan do not have enough money to buy aud.salamat in advance a fan of yours here in tondo manila
@GadgetAddict
@GadgetAddict 10 лет назад
Ali Barrera Heya, I've done some basic 555 circuits before to create fading LEDs but that's about it. I find it quicker and easier to use an Arduino. Especially if you want to add better functionality. If your budget allows, you can buy a gizduino usb mini (arduino) for under p400 and then just add an n-channel mosfet.
@KiuCraft
@KiuCraft 9 лет назад
Hi Sheldon! !!
@MarkBarrett
@MarkBarrett 10 лет назад
What if I want to control 3/4/8/9 or more separate led circuits. Is there a single chip that can do this easily?
@GadgetAddict
@GadgetAddict 10 лет назад
There are boards on sites like seeedstudio that act as a pwm mosfet shield that can handle 6+ devices. I haven't tried them but they're certainly out there.
@HiWiFiDrones
@HiWiFiDrones 6 лет назад
Hi! Does it work with 3.3V ESP8266 as well?
@SayWhaaaaaaaaaaaaaaaaaaaaaaat
@SayWhaaaaaaaaaaaaaaaaaaaaaaat 8 лет назад
You should share the arduino code next time, if your targeted audience is newbies they would appreciate arduino code too :)
@GadgetAddict
@GadgetAddict 8 лет назад
+Tomas Av. They're the default sketches included with the Arduino software :)
@Inesophet
@Inesophet 7 лет назад
My god, i have tried for bloody 8 months to understand mosfets. Problem was i had gotten a bad batch, nearly none where working. the Mosfets just didnt do what they where supposed to. Got a new batch and FINALLY they are working. I thought i was going MAD.
@qrewning
@qrewning 4 года назад
Code
@rodriguezfranco3839
@rodriguezfranco3839 5 лет назад
can I do this with a irf 540 N mosfet???
@ahmedalhashimimusic
@ahmedalhashimimusic 10 лет назад
Hello, i already bought some FDP75N08 75V N-Channel MOSFETs to be used with arduino to control a 12V LED strip, do they work? and with an RGB LED strip, i should add a MOSFET for each color, the same thing you did on your video but each color takes its own MOSFET, right? thanks for the video, you really simplified it a lot take care
@GadgetAddict
@GadgetAddict 10 лет назад
Should work fine :) That mosfet is rated pretty high for voltage and current. I haven't used an RGB strip but yes, my understanding is that you would use 3 mosfet, one for red, green, blue :) At least for the standard analog versions. I think there are more modern (more expensive) digital versions that just require power and then a digital signal from your arduino.
@ahmedalhashimimusic
@ahmedalhashimimusic 10 лет назад
thanks a lot for replying, keep going ;)
@jeolex45
@jeolex45 9 лет назад
This video is so useful for me. Firstly thank you. I just find a solution about my growth chamber. I made growth chamber which is contain 3 series 3 paralel 3W power white leds. I need to control light intensity with potentiometer. So I made a design with LM350 adjustable voltage regulator but it wasn't suitable. Because my leds run with approx. 2.1A so LM350 got warmer and also there was approx 4.5V drop-out voltage. So if I use mosfet and potentiometer system, is there high drop-out voltage ? I just curious about it Thanks
@shusterme
@shusterme 7 лет назад
Hi, nice video! Can you please put the links to the harware you've used? Moset nad led strip. Just to check the specs and be sure that I'm buying the right things. thanks
@dmitryburnyshev2264
@dmitryburnyshev2264 9 лет назад
Hi! Could you tell me, what kind of mosfet you did use in this example? I tried to do fading ledtape, but unfortunattely it doesn't work properly. Insted of dimming ledtape I have blinking ledtape. With only one LED fading works properly using the same code. Thanks in advance.
@GadgetAddict
@GadgetAddict 9 лет назад
I don't remember the exact model but it was just a generic N-channel mosfet that was rated quite high in terms of amps. Far above what I needed to run that little LED strip. During my testing I swapped it out with some smaller transistors and other n-channel mosfets without any changes in code or circuit design. Are you sure your power source is capable of delivering the power required for the strip?
@dmitryburnyshev2264
@dmitryburnyshev2264 9 лет назад
Hi! I solved the problem by putting the 0.1uF ceramic capacitor between VCC and GND pins of chip.
@kbcoder
@kbcoder 9 лет назад
When using the Arduino power supply I'm getting a strange result. I can get it working as intended as long as I have the 5v USB plugged in as well. If I unplug it, it doesn't work. Basically I'm using the 13 pin blink example that comes with the arduino sketch program. I'm connecting my LED strip positive to the Vin on the arduino and the negative of the strip to the center pin (drain) of the transistor, the Source pin of the transitor is connected to the ground on the arduino and the gate pin connected to pin 13 on the arduino. Like I said, it works when both power supply and USB are both plugged in, but not when I remove the USB plug. Any ideas?
@kbcoder
@kbcoder 9 лет назад
Kevin Brandenburg This is of course using the power supply instead of a battery.
@kbcoder
@kbcoder 9 лет назад
I did however manage to get a nine volt to work connecting the positive to both the Vin and to the positive on the strip, ground of the 9volt to source on the mosfet and also to ground on the arduino. Just not sure why I can't get the power supply to power both them. However, my intention is to use a 12v battery so I know I can get it working, just confused with why the power supply requires the USB as well.
@TaffoVelikoff
@TaffoVelikoff 7 лет назад
In other videos but with RGB strip they also use a resistor between the arduino and the transistor. The light is more bright without it, so is it safe not to use one (1kresistor)?
@xyzatin
@xyzatin 2 года назад
Simply Amazing. Thank you so much.
@pjfajardo8687
@pjfajardo8687 6 лет назад
Hey can I put 12v 10amp into the led strip? will it not destroy arduino and the load? I have lots of load and my current 12dc charger can only supply 0.5amps. Thanks man,
@SedanurKrc
@SedanurKrc 4 года назад
codes are the same blink code right ?????
@aekidna
@aekidna 8 лет назад
Nice video! Do you reckon that this kind of approach could work to attach high current drawing stepper motors like NEMA34 to low current stepper drivers (like grbl shield)? Would the mosfet be fast enough for CNC accuracy? Cheers!
@alapanbanerjee8633
@alapanbanerjee8633 4 года назад
Hello sir....I am a beginner and I really want to implement this project. Can you please tell me the exact specification of the NMOS, that you have used ?
@breiner1313
@breiner1313 9 лет назад
WHAT IS THE TRANSISTOR USING ? And affects the transistor model to the Arduino , Arduino Uno IF USED ?
@aerobots4947
@aerobots4947 5 лет назад
Thanks my attraction to using a mosfet is that it's smaller and more efficient than using a relay. I want to turn on and off a GPS. Does it matter if I connect positive in stead of negative via the source and drain? Can you give us a link to the "fade sketch"? Thanks again!
@interestingspagetti
@interestingspagetti 5 лет назад
That's a serious red bull habit you have there. I don't see any wings mate!!!??? But thanks for vid, have liked it.
Далее
#BB4 MOSFETs - From an Arduino Perspective
15:10
Просмотров 22 тыс.
Qalpoq - Amakivachcha (hajviy ko'rsatuv)
41:44
Просмотров 331 тыс.
КАК БОМЖУ ЗАРАБОТАТЬ НА ТАЧКУ
1:36:32
100 Identical Twins Fight For $250,000
35:40
Просмотров 49 млн
Using MOSFETs with an Arduino
8:01
Просмотров 27 тыс.
How to Turn an LED On
17:00
Просмотров 1,5 млн
MOSFETs and Transistors with Arduino
40:50
Просмотров 1 млн
Qalpoq - Amakivachcha (hajviy ko'rsatuv)
41:44
Просмотров 331 тыс.