How to use Mosfet Optocoupled HW-532 to control up to 30V DC Motor Speed or load using Arduino

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 44

  • @moeburn
    @moeburn 7 місяців тому +1

    Thank you! I wasn't sure how to wire it because it had only 2 terminals on one side and 3 on the other side, your video was the only help I could find!

  • @planker
    @planker 2 роки тому

    Thanks!

    • @robojax
      @robojax  2 роки тому

      You are welcome. that's kind of you.

  • @LogicMathh
    @LogicMathh Рік тому +2

    Thank you very much for your lessons and codes.

    • @robojax
      @robojax  Рік тому +2

      Glad you like them!

  • @BroadwayNexp
    @BroadwayNexp Рік тому +1

    can you use an ESP32 to control the motors wirelessly with another ESP32?

  • @shamanking5195
    @shamanking5195 Рік тому

    Hi
    I am trying to build a BOB BECK zapper
    the zapper uses three 9 volts batteries in series.
    a 100k pot is used to control he output .
    Do you think I can use the mosfet module on your video ???
    Can I use a ZK-PP2K driver instead of the Arduino to control the output ???
    any tips ???

  • @marcoschas4259
    @marcoschas4259 2 роки тому +1

    hi, thanks a lot for the video, very clear for newbies like me and easy to follow!. What i don't get is the need for the diodes. You say that "if you use a DC motor you need to add a diode". Why is that? is it true if you use a DC motor and a DC power supply? Also, in the rest of the video, i don't see you add the diode in your schematics.... Can you clarify a bit further? thanks!!

    • @22chrs
      @22chrs 2 роки тому

      Same question. Maybe someone has an answer? :)

    • @marcoschas4259
      @marcoschas4259 2 роки тому

      @@22chrs @Jean Gustang Baguette hm, i thought I had answered this morning...
      The reason is that a DC motor is an inductive load. You can find a web with this and more information about this module if you Google it. I tried to post it a couple of times but my post gets deleted

    • @moeburn
      @moeburn 7 місяців тому

      @@22chrs google "flyback protection diode". When a DC motor turns off, it keeps spinning for a little bit, and now instead of taking voltage, it generates voltage. You don't want it to generate that voltage into your relay/arduino, so you need a diode to protect it.

  • @mateuszmazur1482
    @mateuszmazur1482 3 місяці тому

    EDIT: I can see now that there is already 1k resistor on board. So yes... Is needed and it is already.
    Thank you for your work! Nice material. One question. If I will control mosfet by switching 5V from dc-dc step down module (3A max) should I use resistor on control pins to protect optocopuler as max current is 3A?

    • @robojax
      @robojax  3 місяці тому +1

      Hi, no. The current is determined by the optocoupler. even if you use 100A source it has no affect.

    • @mateuszmazur1482
      @mateuszmazur1482 3 місяці тому

      ​@@robojax thank you!

  • @colinmcrae007
    @colinmcrae007 4 місяці тому

    Hi sir. Thanks for this awesome video and explanation. Can you tell me please if the HW-532 module will work if I use 2.5 - 2.6V as a control signal? I have a 3D printer that already has a backlight based on two white LEDs, which are controlled by the printer board and the backlight can be turned on/off via an app on my phone or the printer screen. I want to connect an additional piece of 12V or 24V LED strip to illuminate the working space of the printer table and make the strip on/off together with the standard LEDs. I will supply power for the strip separately from the printer's power supply, for example. And if the module will not work, maybe you can tell me how to realize such a project? Thanks!

    • @robojax
      @robojax  4 місяці тому

      Hi. optocoupler device get triggered with about 1.9V so in your case it should work. I have not tested it but have the experience with other devices.

    • @colinmcrae007
      @colinmcrae007 4 місяці тому

      ​@@robojax Thank you sir for your quick and valid reply. I appreciate this.

  • @bbcsd
    @bbcsd Рік тому

    Hello, please tell me can we replace this with 5v relay module if yes then which is the correct module

    • @robojax
      @robojax  Рік тому

      Search my channel for they word motor or relay

  • @yankovalsky7696
    @yankovalsky7696 5 місяців тому

    Thank you for the useful information. I have a question. I would like to use a module with a LR7843 MOSFET to turn off the power supply to the coil in the EMR relay (5V, 160 mA max). Do I need to use a diode?

    • @robojax
      @robojax  5 місяців тому +1

      Hi, no you don't need doide. See this datasheet page 2 diode section www.infineon.com/dgdl/irlr7843pbf.pdf?fileId=5546d462533600a40153566de53526d8

  • @Thuliolima2008
    @Thuliolima2008 2 роки тому

    Very Good

  • @utube521
    @utube521 10 місяців тому

    will these work with common ground? like switching on/off lights in a car? thanx

    • @m3chanist
      @m3chanist 10 місяців тому +1

      it's a low side switch, which is to say it goes into the ground or negative wire of whatever you want to control. Like this "battery + -> bulb->mosfet-> -battery " . So it sits in the negative return from the bulb, not the positive from the battery to the bulb (thats a high side switch, you can get them as well) it has its own + wire connected to the battery as well to power it. If you put it into the common ground, interrupting it (between the common ground and the battery negative) then yes it will work, but everything will need to run through it that is also on that common ground, eg starter motor, unless you give that it's own non-common ground. I.E. the battery negative must only be connected to it, if there is another path to the battery negative from that common ground the electricity will just go that way and the mosfet will do nothing. You'd be better off taking whatever you wanted to control off the common ground, running their ground returns to the mosfet instead and then the mosfets neg would connect to the common ground.

    • @utube521
      @utube521 10 місяців тому

      @@m3chanist thank you. I already got it. I should have first looked onto the bottom side to realise that it has common + , not common ground. :) So it is not good for the car. thank you. But maybe you know similar mosfet board that has common ground that can be used in a car?

  • @julzkiecadahing
    @julzkiecadahing 2 роки тому

    I wish you can do a review for XH-M411 STEP UP MODULE. THANK YOU

    • @robojax
      @robojax  2 роки тому

      If they pay me to review it i will do it. Tell them to contact me via Robojax.com contact page

  • @user-wy2li1km3r
    @user-wy2li1km3r 2 місяці тому

    Hi. Can LR7843 be triggered with 12-14 volts (car power) ?

    • @robojax
      @robojax  2 місяці тому

      Hi, I just watched the video in order to reply to you. The input is connected as I explaiend at about 3:30 in the schematic section, it has 1k ohm resistor. if you connect it to 13V it will get damaged. But on the input before you connect your 13V from car, place 1300 to 1500 ohm resistor in series, it should work fine. I replied after watching the video and looking also at the datasheet www.mouser.com/datasheet/2/408/TLP187_datasheet_en_20191119-1134240.pdf page 3 LED forward current, page 3 LED forwared voltage.

    • @user-wy2li1km3r
      @user-wy2li1km3r 2 місяці тому

      @@robojax If you mention LED forward voltage - it is 1.25V for PC817. But forward current is 50mA. I found the board HW-532B that accepts DC6-28V without any additional resistors

  • @RozsnyooTobias
    @RozsnyooTobias 2 роки тому

    hi, please what type of diode i need to use?

    • @robojax
      @robojax  2 роки тому

      Hi, it depends on your load current. if your laod need 5A, then get 5A diode.

  • @bullygram
    @bullygram Рік тому

    Hey, can we use this on a 775 motor? I am building a PCB mill, and I can use it to control the speed of the spindle (775 motor) through the grbl shield.
    suggestions are welcome from anyone!

  • @thespacecowboy420
    @thespacecowboy420 Рік тому

    can it reverse the direction

  • @darwink2355
    @darwink2355 Рік тому

    can this module used to dimming High power LED?

  • @Chinhnguyen0497
    @Chinhnguyen0497 7 місяців тому

    how to make it work like trigger switch using button?

    • @robojax
      @robojax  7 місяців тому

      Did u watch the video? It is in the video

  • @andywijaya2910
    @andywijaya2910 9 місяців тому

    can i use it without external power?

    • @robojax
      @robojax  9 місяців тому

      You are using this module to control something. That thing needs power, connect that power to this module

  • @tvbox8478
    @tvbox8478 2 роки тому

    👍

  • @poojashri6767
    @poojashri6767 2 роки тому

    Note:
    Connecting 3x 1A diode is not advisable
    Use 3 A diode or move on to higher amps.
    Don't connect diodes in series or parallel.

    • @robojax
      @robojax  2 роки тому

      this is command industry practice to connect diodes in parallel. There is no problem with that. and the same is true for series.