Simple Solenoid Tutorial - Control a solenoid with a D1 mini micro-controller and push button

Sdílet
Vložit
  • čas přidán 5. 09. 2024
  • In my latest video tutorial I show you how to control a pull type solenoid switch with a push button using the D1 mini.
    Solenoid switches have a wide range of uses from water/air valves to electrical relays. In a future project I use a pull type solenoid similar to the one used here to act as a locking mechanism.
    The parts you will require are as follows:
    4.5V 10g Pull type solenoid (amzn.to/2VDIhkq)
    Wemos D1 Mini (www.banggood.c...)
    Push Button (www.banggood.c...)
    TIP120 Transistor (www.banggood.c...)
    1k Resistor (www.banggood.c...)
    Diode (www.banggood.c...)
    The sketch for this tutorial can be found at: mangetout.net/c... Solenoid/SimpleSolenoid.ino
    Full details available at:
    cabuu.com (mangetout.net/...)

Komentáře • 15

  • @marcalamo
    @marcalamo Před 2 lety

    Very nice. Will 12V to 5V 5A powermodule DC-DC step-down power supply converter can power the usb port to usb port?

  • @gabrielrolig4355
    @gabrielrolig4355 Před rokem

    Would this work with a 12v solenoid valve, also if I were to connect a button to the battery and solenoid valve, and then connect the grounds from the battery to the valve, would it still open if I pressed the button, and then close if I press again?

  • @butterfinger4393
    @butterfinger4393 Před 2 lety +1

    What type of diode did you use ?

  • @gardblades
    @gardblades Před 2 lety

    How would I make the solenoid activate and deactivate continuously as long as the button is pressed?

  • @maxazry
    @maxazry Před 2 lety

    Hi the switchpin define as D3 or D6 i try but cannot works.

  • @thomasmoller2086
    @thomasmoller2086 Před 2 lety

    D6 in the drawing should be D3 shouldn´t it ? D6 got no pullup resistor afaik.

  • @tdog4044
    @tdog4044 Před 7 měsíci

    How can I power 6v solenoid?

  • @sadhiqjaheaber5392
    @sadhiqjaheaber5392 Před 3 lety

    24vacsolonide valve how to connect float switch

  • @Binetsu39
    @Binetsu39 Před 4 lety

    Very helpful! If I were to make it where the push button releases like a pinball motion instead of retracting, what code would I be switching? (I'm new to arduino)

    • @cabuu4122
      @cabuu4122  Před 4 lety +2

      You just need to change the order of the code, happy to provide an example if you're still struggling.

  • @AltafKhan-ew7ms
    @AltafKhan-ew7ms Před 2 lety

    I need 12 volt switch

  • @average_super_jew1234
    @average_super_jew1234 Před 4 lety

    Would this work with a solenoid valve

    • @cabuu4122
      @cabuu4122  Před 3 lety

      Do you have a particular component in mind? I would imagine so though if it operates in a similar manner

  • @pbjracing14yearsago49
    @pbjracing14yearsago49 Před 2 lety

    what is your power source?

    • @jamesb3177
      @jamesb3177 Před 2 lety +1

      Power comes from the USB 5V supply