Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. Change power output?

Change power output?

Scheduled Pinned Locked Moved General Discussion
9 Posts 5 Posters 2.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Cliff KarlssonC Offline
    Cliff KarlssonC Offline
    Cliff Karlsson
    wrote on last edited by
    #1

    I have a small waterpump that runs on 12v max. I want to be able to change the power to the pump from 3v up to 12v. I have a 12v power supply. Do I use mosfets, transistor or other componet? And could someone show me how to connect the parts and show a small example code of how to change the voltage output from the arduino?

    1 Reply Last reply
    0
    • sundberg84S Offline
      sundberg84S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by
      #2

      Depending on which arduino you run you can connect 12V to RAW pin and the internal voltage converter will fix the rest for you... or i might have missunderstood the question?

      Controller: Proxmox VM - Home Assistant
      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

      1 Reply Last reply
      0
      • rvendrameR Offline
        rvendrameR Offline
        rvendrame
        Hero Member
        wrote on last edited by
        #3

        Just to add my two cents, the cheap pro mini clones that I bought didn't went well with 12V on raw pin, as 12V is the absolute maximum on their regulators. Some of them simply burned after some minutes , some got installable.

        To be on safe side, I don't put more than 9V on raw. You can use a 7809 for example to get 9V out of original 12V

        Home Assistant / Vera Plus UI7
        ESP8266 GW + mySensors 2.3.2
        Alexa / Google Home

        1 Reply Last reply
        0
        • Cliff KarlssonC Offline
          Cliff KarlssonC Offline
          Cliff Karlsson
          wrote on last edited by
          #4

          I probably explayned bad. I want to be able to set the voltage to the pump to values between 3v and 12v. Like 5v, 7v and similar to have the pump run at different speeds.

          But I just realised that what I am asking is exactly like the dimmer sketch. Led dimmer

          OitzuO 1 Reply Last reply
          0
          • Cliff KarlssonC Cliff Karlsson

            I probably explayned bad. I want to be able to set the voltage to the pump to values between 3v and 12v. Like 5v, 7v and similar to have the pump run at different speeds.

            But I just realised that what I am asking is exactly like the dimmer sketch. Led dimmer

            OitzuO Offline
            OitzuO Offline
            Oitzu
            wrote on last edited by
            #5

            @Cliff-Karlsson said:

            I probably explayned bad. I want to be able to set the voltage to the pump to values between 3v and 12v. Like 5v, 7v and similar to have the pump run at different speeds.

            But I just realised that what I am asking is exactly like the dimmer sketch. Led dimmer

            I'm not sure if it is save to use this circuit to control a pump.
            The circuit is designed for resistive loads like LEDs but a pump (electric motor) is a inductive load probably killing the mosfet while turning off.
            There are special IC's for this situations called motor drivers.
            Maybe have a look at this:
            http://www.instructables.com/id/Arduino-Modules-L298N-Dual-H-Bridge-Motor-Controll/

            1 Reply Last reply
            0
            • Cliff KarlssonC Offline
              Cliff KarlssonC Offline
              Cliff Karlsson
              wrote on last edited by
              #6

              @Oitzu said:

              The circuit is designed for resistive loads like LEDs but a pump (electric motor) is a inductive load probably killing the mosfet while turning off.

              Ok, but it is a really small pump. Does this matter? Pump

              1 Reply Last reply
              0
              • P Offline
                P Offline
                peka
                wrote on last edited by peka
                #7

                Using an H-bridge can indicate that you want to reverse your engine. I guess that's not the case with the water pump?
                The easy (quick and dirty) solution is to use a FET like in the "LED dimmer". But you should probably add a fly-back diode because of the inductive load.
                Proposed solution depends on how robust you want it to be.

                1 Reply Last reply
                0
                • Cliff KarlssonC Offline
                  Cliff KarlssonC Offline
                  Cliff Karlsson
                  wrote on last edited by
                  #8

                  thanks for the answer, I don't really know what a fly-back diode is or have any non-light diodes at home right now. I have a couple of
                  optocouplers, mosfets and transistors lying around. Can I use any combination of those components to control the pump?

                  OitzuO 1 Reply Last reply
                  0
                  • Cliff KarlssonC Cliff Karlsson

                    thanks for the answer, I don't really know what a fly-back diode is or have any non-light diodes at home right now. I have a couple of
                    optocouplers, mosfets and transistors lying around. Can I use any combination of those components to control the pump?

                    OitzuO Offline
                    OitzuO Offline
                    Oitzu
                    wrote on last edited by
                    #9

                    @Cliff-Karlsson said:

                    thanks for the answer, I don't really know what a fly-back diode is or have any non-light diodes at home right now. I have a couple of
                    optocouplers, mosfets and transistors lying around. Can I use any combination of those components to control the pump?

                    At this small pump a mosfet will probably also work yes. To the fly-back diode:
                    As you may already know a diode only conducts in one direction.
                    And you may also know that a electric motor can also be used as an generator.

                    When powering off the motor the motor will be act for a short time as "generator" due to the momentum and the stored energy in the magnetic field.

                    The diode will be connected between the mosfet and the motor to prevent flow of current back to the mosfet in this event.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    24

                    Online

                    11.7k

                    Users

                    11.2k

                    Topics

                    113.1k

                    Posts


                    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • MySensors
                    • OpenHardware.io
                    • Categories
                    • Recent
                    • Tags
                    • Popular