How to control 12V devices with Arduino. Using Relay vs Using N-Channel MOSFET transistor

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น • 279

  • @EngineerNotFound
    @EngineerNotFound 2 หลายเดือนก่อน +1

    Exactly what I was looking for. Thank you.
    I'm using a stepper motor in my project to raise and lower a small platform, and it only needs to be used twice for a very short time. So I want to power down the motor by disconnecting the 12v supply to the stepper driver VMOT and GND pins when the stepper is not in use.
    The relay should do the trick.

  • @talipgunes7022
    @talipgunes7022 3 ปีที่แล้ว +15

    Great explanation for each step without losing the track. Thank you so much.

  • @renstillmann
    @renstillmann 9 หลายเดือนก่อน +1

    The amount of time in the graphics and video editing is a lot I can tell. This is a very useful video. I already did something like this with arduino years ago but needed some refreshing info just so I can more easily get started with another small project. Thanks! And I subscribe and will look for your other videos 👍

  • @joaquinninoortega156
    @joaquinninoortega156 3 ปีที่แล้ว +14

    Man! worth a sub! very detailed and informative video. I was trying to add accelerometer with arduino for passive braking. I think this really helps me a lot, and using transistors resistor would be best for me too cause im using 12v lipo. Never used arduino before so good luck to me.

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว +1

      Thanks for the sub!

    • @FirstLast-tx3yj
      @FirstLast-tx3yj ปีที่แล้ว

      @@marios_ideas i have an application where there is a relay and a fuse to a 12V load (only 1)
      I was considering using a relay module and ditching the fuse (is this safe or a relay module does not replace a single oldschool automotive relay + fuse)?
      I then found out about mosfet modules that are much more compact, now could these be a direct replacement to my old fuse relay combo?

    • @Weisgrau
      @Weisgrau ปีที่แล้ว

      same here, I finally "learned" how to use the Transistor and relay in a very clear way. now I can go on with my Project, thank you Mario!!! ♥♥♥♥♥

  • @trollkontolol4720
    @trollkontolol4720 2 หลายเดือนก่อน +1

    great instruction mate, finally someone with knowledge and skill to explain

  • @pboston6RR
    @pboston6RR 6 หลายเดือนก่อน +1

    Good discussion of relay versus FET. In the discussion you referred to the lamp as an LED but it appears to be a quartz halogen lamp, so using this is great but if a user connects an LED in place of the lamp the led would need a current limiting resistor.
    There is no mention of the power source for the Arduino and that would lead the consumer to neglect this.

  • @liszcgsedt
    @liszcgsedt 2 ปีที่แล้ว +4

    Feels pretty explanatory and comprehensible - thanks, you just earned yourself a sub!

  • @fabster7271
    @fabster7271 ปีที่แล้ว +1

    Honestly, one of the best explanatory videos on the Arduino. Thank you very much 👌

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      I am glad you feel that way. Consider supporting my channel:)

  • @johnlloydcruz2075
    @johnlloydcruz2075 3 ปีที่แล้ว +10

    Bro, you've earned a subscriber

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      Thanks for subscribing.

    • @MohammadZeidX
      @MohammadZeidX 2 ปีที่แล้ว

      yeah me too

    • @nacongamer555
      @nacongamer555 2 ปีที่แล้ว

      Me too 😄
      Dude youre are the only guy, that explains that with the mosfet so good!

  • @johnx9318
    @johnx9318 3 ปีที่แล้ว +2

    I've been banging my head against this for a day! Thank you - especially for the circuit diagram at 7:34!

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว +1

      Glad you liked it:) Please like the video if you have not yet done s. Would help me a lot

    • @johnx9318
      @johnx9318 3 ปีที่แล้ว

      @@marios_ideas Sad that I can only like it once! This was spot-on for me.
      Subscribed as well.

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      @@johnx9318 Have you checked this spin off video th-cam.com/video/9O0pb0I6bCU/w-d-xo.html maybe you will like it to

    • @johnx9318
      @johnx9318 3 ปีที่แล้ว

      @@marios_ideas I have not! thanks for this - I'll watch it first thing in the morning!
      top bloke!

  • @begood5427
    @begood5427 หลายเดือนก่อน +1

    Using mosfet can I control 12 v by circuit diagram you give in this vedio of led

  • @breno802
    @breno802 ปีที่แล้ว

    At 7:30 Adding the 10k resistor between the gate and the ground made so the led was always on and when triggering the gate, it would go from full brightness to half brightness. To fix the issue I changed the position of the Resistor to be between the Source and the ground. Is the diagram incorrect or am I missing anything?

  • @bullrush1725
    @bullrush1725 2 ปีที่แล้ว +1

    Excellent video. Best description yet mosfet vs relay!

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      Thanks . Mean a lot to me.

  • @benjaminh.7698
    @benjaminh.7698 2 ปีที่แล้ว

    Very good explanation & very practical. Most TH-cam Videos I watched before I found this one are so f**king boring & theoretical (and in the end not helpflu). Your video was a joy to watch & I learned a lot. Now I only need to know which Mosfet to use & how I can calculate which Mosfet fits my purpose (Volts & Amp limitations). You earned my Sub!

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      I try to make my videos as informative as posible. In many cases I am learning as I go along as I am coming from IT not an electronic background. The comment like this means a lot to me.

  • @burhanyldz
    @burhanyldz 10 หลายเดือนก่อน +1

    That was simply fantastic explanation. Thank you

  • @Mr_Zisky
    @Mr_Zisky ปีที่แล้ว

    Thank you for the video! Can I use the same transistor setup to bump Arduino serial TX UART signal from 5V to 12V? I have a device that is controlled by UART on 12V and want to control is from Arduino. I only need 1 way communication (from Arduino to 12V device) so only TX wire/signal needs bumping to 12V. Can I use the same setup as shown in 8:54 by simply connecting yellow wire to arduino serial TX? The only thing I'm wondering about is if transistors are ok being "on" (12v flowing through it) all the time? Since UART signal idles in high state.

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      I think you need logical level converter. Something like this www.aliexpress.us/item/3256803585917842.html. I would go on some electronic forums and ask for advice of which logic level converter would be the best for what you are trying to do

  • @johnmarkagcaoili1886
    @johnmarkagcaoili1886 23 วันที่ผ่านมา

    It is okey to connect the 12v power supply to 5vDC RELAY?

  • @naboulsikhalid7763
    @naboulsikhalid7763 10 หลายเดือนก่อน

    infos and demos are top-notch. you got like and sub instantly. Thank you for shoring me to light

  • @noooooo4199
    @noooooo4199 3 ปีที่แล้ว +1

    bro I want to make a portable solar panel analyser and for it I need to measure Isc (short circuit current) of 10 A so what do you think will be better to use relay or transistor? The parameters are open circuit voltage which is 50 V and power is 350 W
    waiting for your reply

  • @EpiPdo
    @EpiPdo 3 ปีที่แล้ว +1

    im a beginner on arduino.. this certainly clear up something for me.. subbed 👍

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      Glad that you found my content useful.
      Just posted another tutorial with basics of Arduino

  • @MostlyPosative-nj5ex
    @MostlyPosative-nj5ex ปีที่แล้ว

    I’m curious as to why you didn’t use a snubber in your relay circuit to protect the microcontroller?

  • @khimroy3958
    @khimroy3958 2 ปีที่แล้ว

    Good project brother 😄👍👍👍...for subjection if using Mosfet on the arduino GPIO no need to connect the 10K pull down resistor, because when the arduino GPIO logic Low is mean ground already. The Mosfet will turn to off stage 😄 thanks you brother 🙏

  • @solidname9085
    @solidname9085 2 ปีที่แล้ว

    please explain why we use pull down resisitor to the gate of mosfet?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      Without resistor gate may react tooutside infuence (e.g. touching the wire). This make sure that when gate is not driven by the high signal from microcontroller it is pulled down to 0 through this resistor.

  • @NicholasWong-vv1nn
    @NicholasWong-vv1nn 4 หลายเดือนก่อน

    Can someone help explain how to choose the right mosfet for a high voltage pwm project without using jargon words?

  • @MrX01011000
    @MrX01011000 ปีที่แล้ว

    Can a 5V relay be used in a similar manner with a 12V power source (like a car battery) to power an LED bar? I tried this and ended up frying my arduino. For some reason as soon as I connected the power source, the circuit seemed to bypass the relay and completed, turning on the electronics (which worked fine) but ended up messing up the arduino.

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      Not very likely as with relay the 5v and 12v circuits are isolated. The 12 v circuit is closed and opened using magnetic coil. Maybe your relay was somehow damaged. Was the power source for Arduino 5V?

    • @MrX01011000
      @MrX01011000 ปีที่แล้ว

      @@marios_ideas I used a 9V battery to power the arduino and after inspection it turns out the arduino is still working properly which is good.
      I had the arduino programmed to control different relays using a button, which would activate depending on how many times the button was pressed, with the default state being all relay channels off. Upon further inspection of my circuit, I found that my relay DC in and DC out ports were not connected to the arduino at all. Could something like this result in the outcome I had where the moment the power source is connected the 12V circuit would complete?

  • @RameshKumar-zj6lc
    @RameshKumar-zj6lc 3 ปีที่แล้ว +1

    Great and proved helpful in my 12 v water pump motor with Arduino project.
    Thank u very much.
    Also Subscribed!!👍👍

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      Like the vide if you have not done so. It would help me a lot

  • @snowcycle7
    @snowcycle7 3 ปีที่แล้ว +2

    Excellent video. Slow and clear, love it appreciate it!

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      Thanks:) give the video a like. I am trying to post similar tutorials twice a month so maybe worth subscribing

  • @semanpreetsingh4335
    @semanpreetsingh4335 ปีที่แล้ว

    I have 8 LEDs of 1 Watt each and like 3.4 V rating. Can i choose 5V 8 channel relay along with external supply of 9V to operate the circuit? Or i must change my external source value? Please suggest

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      I come from programming background So i would advice you to post this question in Arduino forum i generał electronic section. You should have andwer within the hour. If you get the feedback Please share it with me

  • @rushipadhiyar2615
    @rushipadhiyar2615 3 ปีที่แล้ว +1

    If we connect the relay directly to the Arduino, wouldn't there be a possibility of harming the Arduino, due to the voltage spikes in the solenoid coil of relay? So, should we use the snubber diode connected parallel to the relay or it is okay to use Relay directly?

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว +1

      Honestly i am not that strong in electronics. I hever had a problem with spikes. I have never fried any arduino boards. But next time I would use forum I would take your comments into account. Cliryfy on electronic forums. Thanks for your suggestion

    • @BigGoad
      @BigGoad 3 ปีที่แล้ว +1

      A lot of the relays intended for Arduino can be set up with an optoisolator that is included in the module. You simply change a jumper from the configuration it comes with and power from a completely separate source (ie not the same power source the Arduino is using). The Arduino then basically turns on an led inside a cover that also contains a light sensor in order to trigger a circuit to trigger the relay.

    • @rushipadhiyar2615
      @rushipadhiyar2615 3 ปีที่แล้ว

      @@BigGoad Yeah, but in this video, there is not any optoisolator in relay module. That's why I asked.

  • @xdandroidx
    @xdandroidx ปีที่แล้ว

    Glad I found your channel - excelent info and very well explained. THANK YOU

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      Thanks:) Subscribe ... there is more content to come

  • @someguy974
    @someguy974 ปีที่แล้ว +2

    Hey Mario, great video. Do you know if it would be possible to power both the arduino and the 12v device from a 12v power source?

    • @icarojapan
      @icarojapan ปีที่แล้ว

      You would have to step down the 12v to the 5v or 3.3v arduino needs. Use a buck boost convertor.

  • @zaks7
    @zaks7 2 ปีที่แล้ว +1

    This is nice, thanks for the video. Just a quick question: why do you connect the ground of the arduino and the 12 volt power supply? does it cause issues

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว +2

      You always have to connect the grounds of the connected circuits. I will most likely do a separate video covering this topic as thie question is asked quite often

  • @rjorrelnepomuceno3253
    @rjorrelnepomuceno3253 3 ปีที่แล้ว +1

    Can i use the same power supply (12v) to power arduino? Perhaps using a step down voltage before connecting to arduino. It's quite annoying using two different power supplies in arduino projects

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      Arduino should handel 12v as long as you power it through VIN and GND pin. It has a built in step down.Do not connect to 5v pin as this would fry the board

  • @OYMInternetRadio
    @OYMInternetRadio 2 ปีที่แล้ว +1

    Well done on the tutorial. This answers my question as I want to build a set of Knightrider lights, but I need to use 12v bulbs and the relay's are no good as they can only do on/off. Transistors on the other had can be "dimmed" which is what is needed on the knightrider light sequence, cheers!

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      Give video a like if you have not done already:)

  • @geoffkelland5606
    @geoffkelland5606 2 ปีที่แล้ว

    What happens if I send 0-5v PWM signal to the relay? Will I get proportional 0-12v brightness at the globe? ...or would I need a solid state relay?....

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      Have you ever heard the click of the relay. You would understand that this is meant for 0/1 logic only. If you would send PWM the switch from 0 to 1 would be way to frequent for the proper switching of the relay.

  • @paneerpolice3454
    @paneerpolice3454 2 ปีที่แล้ว

    i see a delay ups switch over circuit on ebay that has input in relay for 12v battery and 12v adapter and as soon as light/power interrupts the wifi router is switched to 12v battery with help of relay. can u make a diy version of it?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว +1

      No promises... but you can send me the eBay link

  • @justinherdman87
    @justinherdman87 ปีที่แล้ว

    I need too control 4x relays, using Arduino, AND I plan too use a Wii Nunchuck, With the joystick. I need too make the nunchuck control 4 relays,, 12vdc, that will move a snow plow on a truck UP-DOWN-LEFT-RIGHT. can you recommend a setup? or have any ideas? thanks,

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว +1

      I come from programming background So i would advice you to post this question in Arduino forum i generał electronic section. You should have andwer within the hour.

  • @deanfranz759
    @deanfranz759 2 ปีที่แล้ว

    I want an arduino to control three seperate devices with three different mosfets. How would I wire this?

  • @JasonRostar
    @JasonRostar 2 ปีที่แล้ว

    I am having a problem with low current at the 12V device (LED light). I am powering with an 11V / 5200mAh drone battery. When powered directly, the LED light is INSANELY bright. When I connect the circuit following this video, the light is only received 0.1A of current and is extremely dim. I had a TIP31 on hand so I used that instead of the MOSFET. Any other thoughts about the problem?

    • @JasonRostar
      @JasonRostar 2 ปีที่แล้ว

      So I changed to the MOSFET indicated in the video but had to change to a 100k resistor and now its working with the proper brightness as expected. 😕 but its working so yay

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      BJTs do not seem to be good for switching . I found this thread that discusses this and and conckusion is also to use MOSFet

  • @Yousef-kp9oe
    @Yousef-kp9oe 2 ปีที่แล้ว

    Hello!
    I connected my arduino with a single channel relay driving two 12V DC Motors. Each motor draws about 3 Amps. I have also a small SG90s servo motor connected to my arduino.
    When I turn on the motors they work fine but the servo starts shaking like crazy and rotates unexpectedly in different angles (The Servo works fine when the motors are turned OFF).
    What could be the problem here?
    And how to fix it?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      Please share schematic. Can be Hand drawn. Include all components, their part numbers and/or values and all power supplies. mdraber@email.com. I do not often use this email so please let me know when it is sent

  • @KW-ei3pi
    @KW-ei3pi 5 หลายเดือนก่อน

    Great video Mario. Can the Pull Down resistor on the Mosfet gate be eliminated by changing the Arduino's output to Output_Pulldown? (I forgot the correct syntax) Thanks

    • @marios_ideas
      @marios_ideas  5 หลายเดือนก่อน

      Arduino has only pullup resistors. You cannot pull down the signal within Arduino

  • @Steph-T-45
    @Steph-T-45 2 ปีที่แล้ว

    how would I control 4 solenoid valves using a 4 channel relay with one power supply?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      You can. But you can also do a circuit with mosfets. Pleanty of discussion of people doing just that. e.g. forum.arduino.cc/t/circuit-for-controlling-multiple-solenoids/617457

  • @naufalhafidz6760
    @naufalhafidz6760 ปีที่แล้ว

    Hi, should I use 12v relay module for my 12v liquid solenoid valve or 5v relay module is good enough?

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      Look at the description on the relay. E.g look at this link allegro.pl/oferta/przekaznik-1-kanalowy-wysoki-niski-h-l-5v-arduino-13614098678 . The relay in that link is 5v one. Meaning that the signal to control the circuit will be 5 v and the circuits that you can control are up to 10A 220VC or 10A 30V DC. So if you want to control your solenoid from Arduino i has to be a 5v one

    • @naufalhafidz6760
      @naufalhafidz6760 ปีที่แล้ว

      @@marios_ideas Alright, thank you👍🏻

  • @mrsabertoothtechnology
    @mrsabertoothtechnology 9 หลายเดือนก่อน

    Can the same circuit be used with esp8266 and esp32

  • @djfatihfb
    @djfatihfb ปีที่แล้ว

    Thank you bro .I have a question what about temp . Is mosfet need to passive cooler?

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว +1

      The mosfet in the circuits i used did not heat up. I come from programming background and learn electronics as i go. Maybe someone reading this commend can chip in some inforamatorom on that

  • @thebizyman1
    @thebizyman1 2 ปีที่แล้ว

    I notice you turn it on only for a short time. Is there an issue with keeping the light on for a few minutes in what you've shown?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว +1

      Yes. No problem. Watch my other video when I use finger snap to lit the halogen lamp th-cam.com/video/9O0pb0I6bCU/w-d-xo.html

    • @thebizyman1
      @thebizyman1 2 ปีที่แล้ว

      @@marios_ideas I was able to do what I needed, this was a VERY helpful video and the follow up introduced me to that new PCB with the onboard mosfet and much easier connections. Thanks again!!

  • @syed_luqmaan_408
    @syed_luqmaan_408 3 ปีที่แล้ว

    If i use TIP120 or TIP122 transistor what resistor can i use for it. And what is the ohm of resistor used for 3v led

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      Those are not MOSFET transistors. They require more current and may get quite hot.

  • @snowglider400
    @snowglider400 2 ปีที่แล้ว

    man you are awesome. I just subscribed. keep doing the good work.

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      Means a lot to me. Give video a like

  • @reikiridvan
    @reikiridvan 3 ปีที่แล้ว

    So sir, can i use on of them with stepper motor and the driver l298n. Or dont need?

  • @functionalvanconversion4284
    @functionalvanconversion4284 ปีที่แล้ว

    Could an arduino be used to power a 12v micro rigid air conditioner and replace the AC factory control board?

  • @Hangs4Fun
    @Hangs4Fun 11 หลายเดือนก่อน

    nice video, question on the transistor. I don't see it listed on your webpage provided. Can you share details of where to get it? All of the transistors and mosfets I have don't match

    • @Hangs4Fun
      @Hangs4Fun 11 หลายเดือนก่อน

      at 5:05 you provided enough for me to find it (I must have missed that somehow). thanks

    • @Hangs4Fun
      @Hangs4Fun 11 หลายเดือนก่อน

      when I looked back through my electronics stash and specifically transistors in the MOSFET category, I do have a similar one, the IRFZ44N. From what I can tell the only diff between IRFZ44N and the IRLZ44N you suggested, is that the IRFZ44N is 49Amp and the IRLZ44N is 47Amp, otherwise they are both 55v.
      That being said, as I dug deeper, this is what I found on those two.
      "The IRLZ44N is a Logic level Mosfet with a very low gate threshold voltage of 5V, meaning the MOSFET can be fully turned on with just 5V on its gate pin which avoids the need for a driver circuit.
      The IRFZ44N on the other hand requires a gate driver circuit if the MOSFET has to be turned on completely using a microcontroller like Arduino. However it does turn on partially with direct 5V form a I/O pin, but the output drain current will be limited."
      Therefore, unless you have a gate driver circuit, do not use the IRFZ44N, the IRLZ44N you suggested is correct.
      I found them for about $1 each on Amazon (though you have to buy 10). Hopefully this helps someone

    • @marios_ideas
      @marios_ideas  11 หลายเดือนก่อน

      I have one more video th-cam.com/video/9O0pb0I6bCU/w-d-xo.html where I used a MOSFET module and there IRF520 was used.

  • @mixme8655
    @mixme8655 ปีที่แล้ว

    New subscriber always watching your videos thank you I learned a lot as beginner.

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว +1

      Great that you find my content useful. Consider supporting my channel:)

    • @mixme8655
      @mixme8655 ปีที่แล้ว

      @@marios_ideas yes sir i support by watching all your videos

  • @Michael_Killner_Davies
    @Michael_Killner_Davies 3 ปีที่แล้ว

    This is really good . I was looking for something like this to do a knight rider scanner with h3 lights . Thank you sir :)

  • @nathanteig7108
    @nathanteig7108 ปีที่แล้ว

    My arduino doesn’t seem to put out enough current to trigger the relay. Should it be an analog out out or can digital work too?

  • @leblancexplores
    @leblancexplores 3 ปีที่แล้ว

    Can you explain N vs. P channel mofet? I had to use a P channel mosfet for providing 12V to an accessory signal for an inverter I have and I don’t really understand why, N channel did not work.

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      I am not that deep in the elctronis . My udderstanding is that N channel transistor require less current to switch and do not overheat

  • @Csull80
    @Csull80 ปีที่แล้ว

    Can this method be applied to a single color led strip with a + and - input only?

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      if you are talking e.g 12v LED white led strip with just plus and minus then by all means yes

    • @Csull80
      @Csull80 ปีที่แล้ว

      @@marios_ideasis there a specific type of mosfet I need or range?

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      I am not that proficient with reading datasheets.I would ask this question at electronic forum.

  • @awaazmatroko5972
    @awaazmatroko5972 ปีที่แล้ว

    Hi mario I wouldlike you to help making a switch of 12dc 1amp (3nos router, ONU, and extender each 1amp)main to battery switchin as in UPS in case of power failure( no relay as there is delay) with above mosfet IRLZ44n, pls help

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      Mind you I am IT person playing with electronics. If you want to seamlessly switch to UPS in case of power supply outage , this requires some more sofisticated stuff not just a standalone mosfett. What I would do if I were you I would go to official Arduino Forum and open the post in General electronics section. There you have experienced guys which are willing to look at your requirement and suggest how to tackle it. forum.arduino.cc/

  • @strayangel3210
    @strayangel3210 4 หลายเดือนก่อน

    Specs on the light u used please

  • @ethersecure2432
    @ethersecure2432 2 ปีที่แล้ว

    You indicated it was an ED bulb when in fact it was halogen, lol. Small mistake, great video!!

  • @denizsogutlu2070
    @denizsogutlu2070 ปีที่แล้ว

    Hi, thank you for the amazing video. I have a question: I'm trying to control a RGB 12V LED with the dimmering. Do you think that is possible? And will I have to use 3 transistors (to manage RGB channels seperately)? Thank you!

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      3 mosfets. Make sure that each RGB channel is connected to Arduino PWM pin

    • @denizsogutlu2070
      @denizsogutlu2070 ปีที่แล้ว

      Thank you for the quick answer! I was wondering, in case the Red needs to operate with a lower tension, should I use a voltage regulator when I pull 12 Volts from the same source?
      For example: Blue 12, Green 12, Red 9.

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      @@denizsogutlu2070 Thats where PWM pins come in. You control the voltage analogWrite to the mosfets. When you write 255 then it will be 12 v and you can go down to 0 which represents 0v

    • @denizsogutlu2070
      @denizsogutlu2070 ปีที่แล้ว

      Oh I see! So I can scale the Red Value in PWM with a 9/12 to obtain the same brightness.
      For example, would I then have a white RGB(equal) if I assigned these: (in the 0-255 PWM range)
      90Red, 120Green, 120Blue

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      I have never tested it but this should work this way

  • @graxxon
    @graxxon 2 ปีที่แล้ว

    Is it possible to create a 8x 55W bulb 12V Knight Rider scanner with Arduino?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว +1

      I am sure you can:)

    • @graxxon
      @graxxon 2 ปีที่แล้ว

      @@marios_ideas Thank you for your help. Nearly all of the Knight Rider running lights have fixed patterns, usually 1 or 8, but I couldn't find any programmable one.

  • @ganeshsharma24894
    @ganeshsharma24894 3 ปีที่แล้ว

    Is it possible to connect load on source side instead of drain side in N channel mosfet?

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว +1

      The general rule is to connect load to drain. There is a number of articles e.g this one electronics.stackexchange.com/questions/97505/attaching-load-to-source-on-mosfet
      Seems like you would not be able to use nominal voltage of the power supply

  • @d0ugparker
    @d0ugparker ปีที่แล้ว

    Excellent. Although you mention at 5:07 that it's an *_N-channel_*_ MOSFET,_ your title doesn't mention that. Please consider adding that to the title so it includes “N-channel,” since its wiring depends on the type. Regards. DP, Henderson, NV, USA

  • @carinar.648
    @carinar.648 3 ปีที่แล้ว

    How would I convert a 12a voltage triggered relay to a pwm converter? 12 volts output

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      not sure I undertood your question. Can you elaborate

    • @carinar.648
      @carinar.648 3 ปีที่แล้ว

      I have a 12v voltage triggered relay I would like to modify it to convert pwm signal to volts.

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      @@carinar.648 Relay has only on off Logic. For propagating pwm info voltage change you need to use transistor which is explained in the video

    • @carinar.648
      @carinar.648 3 ปีที่แล้ว

      I will be using this on my car ac compressor?

    • @carinar.648
      @carinar.648 3 ปีที่แล้ว

      Which plc board do you recommend?

  • @DatFunnyPerson
    @DatFunnyPerson 2 หลายเดือนก่อน

    I can use a mosfet with pwm to control my current? going to a device??

    • @marios_ideas
      @marios_ideas  หลายเดือนก่อน

      Yes you can. But I think the type of MOSFET to use matters. But this is something a bit over my head so you would have to investigate yourself.

  • @Archzed
    @Archzed ปีที่แล้ว

    Thank you for putting text at where the wires are going

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      No problem.Give a video a like if you enjoyed it:)

  • @bobbytaraantino
    @bobbytaraantino 3 ปีที่แล้ว

    Thank you! Can I ask if I can power my arduino and the device that requires 12v and above with only one 12 volt source?

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      You can power both arduino and devices (e.g. servos, led strips etc). You just have to make sure the powersource will provide enough current. So you may have 12v power source with 1A or 2 A or more. You cannot use power source >then 12v

  • @carlossamuelariza1350
    @carlossamuelariza1350 3 ปีที่แล้ว +2

    Muchas gracias, era lo que estaba buscando, claro y conciso :D

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      Por favor, haga clic en Me gusta en el video cuando lo encuentre útil. Hace que el algoritmo de youtube note mis videos

  • @raveenkumuditharathnayaka7473
    @raveenkumuditharathnayaka7473 3 ปีที่แล้ว

    Hi, what are the other MOSFET types that could be used instead of IRFZ44N

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      I would say you can use all MOSFET transistors as a switch. But I am not 100% sure so maybe sombody can chip in a word or two on the topic. e.g In video th-cam.com/video/9O0pb0I6bCU/w-d-xo.html I used IRF520.

  • @mahmodelkastawy3881
    @mahmodelkastawy3881 3 ปีที่แล้ว

    So which one is better to control a small DC motor?and why so

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      For controlling dc modules you have decicated modules like L298N

  • @-VISHVAS
    @-VISHVAS 2 ปีที่แล้ว

    Can I use IRF 530N MOSFET instead of IRFZ44N

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      Yes you can. I have not used IRF530N but if you cehck my video th-cam.com/video/9O0pb0I6bCU/w-d-xo.html there I used a mosfet module with the built in IRF520N

  • @mazmi9089
    @mazmi9089 3 ปีที่แล้ว +1

    Do you think this setup can be used to control 12vdc 100w lightings?

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      This relay should be able to control any 12 circuit

    • @mazmi9089
      @mazmi9089 3 ปีที่แล้ว

      @@marios_ideas how about using MOSFET? will it still suitable?

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      I am sure it can be used. But I would consult someone profficient with electronics to pick the right one so it does not overheat. Just write a question on any electronic forums describing your 12v circuit and ask which mosfet would they use if it requires any additional resistores etc. Most likely MOSFET I used would do the trick but I would double check it

  • @VictorFNV
    @VictorFNV ปีที่แล้ว

    Is it bad if the plastic on my electric cords almost melts?

  • @bitelaserkhalif
    @bitelaserkhalif 3 ปีที่แล้ว

    Is it safe to use mosfet type switcher for PC? (Arduino plugged into USB PC, the mosfet is wired to PC PSU)

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      I am not 100% what you want to achieve. You only can control device through the mosfet transistor when Arduino is powered on. Can you describe more.

    • @bitelaserkhalif
      @bitelaserkhalif 3 ปีที่แล้ว

      @@marios_ideas I am trying to power the LED lights with PC PSU (connected to molex), then the mosfet is connected to Arduino for control. The Arduino is powered via USB on motherboard slot so that I can send data from PC to Arduino for controlling LED lights.

  • @jinaykothari4511
    @jinaykothari4511 2 ปีที่แล้ว

    I have a 12V relay and a NodeMCU ESP8266
    Should it will work or not
    Please help

    • @dongcui9839
      @dongcui9839 2 หลายเดือนก่อน

      Esp8266 output voltage is 3.3v, you need a MOSFET opens fully at 3.3v

  • @layton7430
    @layton7430 2 ปีที่แล้ว

    You used a USB cable to power the arduino how can I power my 12v device and arduino from.the same power supply so I only need one supply for everything?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      If you use MOSFET you just connect positive of 12v power supply to arduino VIN and negative to arduino Ground. With MOSFET you may find out that after connecting the power this way arduino will not be able to drive teh relay coil. So stick to MOSFET

    • @layton7430
      @layton7430 2 ปีที่แล้ว

      @@marios_ideas sorry I don't understand that? From the power supply I sent 1 live to common on relay, and 2 live straight to the vinyl pin n the arduino nano set on fire

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      @@layton7430 What power supply did you use. VIN on Arduino can handle 7-12V. It has a voltage regulator. I powered arduino from DC 12V many times.

  • @thatoneofmany
    @thatoneofmany 3 ปีที่แล้ว

    Do relays break down quickly if turned on and off very often? (like for instance using it to power lights as blinkers)

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      I think they were made for infrequent switch operations. If you want to do something with high frequency then go MOSFET

    • @thatoneofmany
      @thatoneofmany 3 ปีที่แล้ว

      @@marios_ideas I was thinking of using it for a blinker (like indicator on a laydown bike) As it would make the machanical sound I thought it'd be kinda fitting. It won't be switching constantly, just a couple of times every so often when turning.

  • @spudnickuk
    @spudnickuk 3 ปีที่แล้ว

    I have a question about my project if you would be so kind to help
    Using an Arduino and a 11.1 lypo battery
    the power to the Arduino has a power regulator from the battery set to 5v
    I also have two 12v transistor modules so i can run two 12v solenoids that switch on and off at 20ms s o very fast
    also i have a switch.
    the problem is i want the Arduino to be on running its code and then using the switch to activate the solenoids is that when the arduino is powered up the solenoids are running/working even when the switch is Off
    but if i have seperate battery to the Arduino and another to the solenoids modules all is ok,
    but i want to just use one battery without creating a loop
    Any one with idea :)

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      I don't see your exact circuit so difficult. I would need to see if I can recreate the problem. I to anderstand I I took 12 v power supply and power arduino with it through VIN pin and GND pin and then also power a separate circuit in which e.g. magnetic lock is connected and the circuit has a transistor in it with gate pin controlled by one of arduino pins that would recreate the setup you have right?

  • @ronmarshall3498
    @ronmarshall3498 3 ปีที่แล้ว

    A beautiful video that covered everything! Thanks! Subbed!

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      Thanks:) Did you give it a lik as well

  • @jacobtuley3708
    @jacobtuley3708 ปีที่แล้ว

    This is awesome! Is there a way to dim with the LDR Instead of the potentiometer?

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      Sure. You have to read analog values from LDR and write a code to ma those readings to PWM values sent to Mosfet.

  • @noeroure5836
    @noeroure5836 ปีที่แล้ว

    You save my project ! Thanks you so much

  • @minravex9919
    @minravex9919 ปีที่แล้ว

    Hello sir pls can I have a project.... I want to use soft button to turn on and off a 24v amplifier....pls can u help me on this.....thanks

  • @peterandersen238
    @peterandersen238 4 ปีที่แล้ว +2

    great explanation.
    subbed and liked :)
    i'll order an arduino set before long, and start making small setups.
    would it make sense to use a mosfet to power a relay that takes 12 v to trigger, since they can handle more amps than the ones i have found for arduino (i want to power LED projectors on my car)
    i will be fun to watch your channel grow

    • @marios_ideas
      @marios_ideas  4 ปีที่แล้ว

      Never tried it but it should work. within next twoo weeks I would post another video call it appendix to this one that will show the ready to use posfert module.

  • @Informative_pedia
    @Informative_pedia 3 ปีที่แล้ว

    Helped a lot. Nice way of explanation. Thanks.

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      Great that you found it useful:)

  • @titolindj
    @titolindj 3 ปีที่แล้ว

    Thank you VERY much...
    I kind of knew the difference but just based on my understanding.
    This was a nice explanation!

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      THX:) Give video a like If you have not done already.

  • @dmytriyfitel6149
    @dmytriyfitel6149 3 ปีที่แล้ว +1

    7:30 you said connecting arduino and 5v power suppy, did you mean to say arduino and 12v supply?

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      Guilty as charged. Nicely spotted:)

    • @dmytriyfitel6149
      @dmytriyfitel6149 3 ปีที่แล้ว

      @@marios_ideas Can you make a tutorial for adressable 12v leds? Like this one but with led light strip. Thanks. Also, you have a new subscriber😎 your channel needs more subscribers

  • @aftech7268
    @aftech7268 3 ปีที่แล้ว

    Where can i purchase the kits u have on the demonstrations ?

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว

      It is not a kit. those are the parts I bought separately on Aliexpress.

  • @ayushkaiwart2451
    @ayushkaiwart2451 3 ปีที่แล้ว +1

    Clear explanation. Thankyou.

  • @arduinomerkaba6135
    @arduinomerkaba6135 2 ปีที่แล้ว

    Great Video Thank you Mario! Would this work with the IRLZ44N ?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      Yes you can. E.g. I found this project www.aeq-web.com/arduino-mosfet-pwm-dc-motor-speed-controller-irfz44n/?lang=en

  • @alogamer0gravity
    @alogamer0gravity 10 หลายเดือนก่อน +1

    2:04 bro you are using 5v dc to ac relay image but you are connecting 12v dc

  • @abhzee83
    @abhzee83 3 ปีที่แล้ว

    Hi Mario, very explanatory video thank you so much.

  • @shenalnuvin481
    @shenalnuvin481 ปีที่แล้ว

    what happens when you do not add the 10k ressistor

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      It is a pull down resistor. So when you are not sending high signal to gate the connection is not in inconsistent sytate (floating pin). You may have noise at the gate *random high and low signals) check this pull up and pull down resistors tutorial th-cam.com/video/87X5Duad8CU/w-d-xo.html

  • @freire_gtr
    @freire_gtr ปีที่แล้ว

    man! what a video! thanks for the info

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว +1

      Thanks:) Watch my other videos . You may like it . The controlling circuits also is discussed in two other videos th-cam.com/video/5xxJx22cKtY/w-d-xo.html(towards the end) and th-cam.com/video/9O0pb0I6bCU/w-d-xo.html

  • @andrew2180
    @andrew2180 ปีที่แล้ว +1

    omg thank you! this was so useful

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      Glad it was helpful. Consider supporting my channal. And check my other videos

  • @vikvanderhaeghen200
    @vikvanderhaeghen200 ปีที่แล้ว

    Thanks man! Well explained & i was able to use it for a dimming carlight inside my chicken coop, it helps them mounting the roosting bars. (y)

    • @marios_ideas
      @marios_ideas  ปีที่แล้ว

      Glad it was useful. Consider supporting my channel:)

  • @T23-s3z
    @T23-s3z 2 ปีที่แล้ว

    Very helpful and clean!

  • @superliegebeest544
    @superliegebeest544 2 ปีที่แล้ว

    This can also work with a 12v motor?

    • @marios_ideas
      @marios_ideas  2 ปีที่แล้ว

      Well for motors you have motor controllers. Just to power it. Shure this would work

  • @NorthGeorgiaQuail
    @NorthGeorgiaQuail ปีที่แล้ว

    Hi Mario....Great videos! Could you do a video explaining how to power an Arduino Nano and an Arduino relay board off of the same power source? In my case the power source is a 12v atv battery that is running two linear actuators to open and close a door once a day and I am trying to simplify the build....Thanks!

  • @손순영-l8x
    @손순영-l8x 3 ปีที่แล้ว +1

    Thank you. I want to control the speed of 24v bldc motor (250w) by connecting Arduino to the motor driver.
    Is it possible to control 24v device (bldc motor) with Arduino?
    I am a beginner in Arduino and I am studying. I've just subscribed to your channel.

    • @marios_ideas
      @marios_ideas  3 ปีที่แล้ว +2

      I am sure you can. I di not play with motors yet. The one I have are 5v . I might do a video like this in the future

  • @mufeezist
    @mufeezist 3 ปีที่แล้ว

    Will this work on a 12V water pump ?