Simple Solenoid Tutorial - Control a solenoid with a D1 mini micro-controller and push button
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/...)
Very nice. Will 12V to 5V 5A powermodule DC-DC step-down power supply converter can power the usb port to usb port?
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?
What type of diode did you use ?
How would I make the solenoid activate and deactivate continuously as long as the button is pressed?
Hi the switchpin define as D3 or D6 i try but cannot works.
D6 in the drawing should be D3 shouldn´t it ? D6 got no pullup resistor afaik.
How can I power 6v solenoid?
24vacsolonide valve how to connect float switch
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)
You just need to change the order of the code, happy to provide an example if you're still struggling.
I need 12 volt switch
Would this work with a solenoid valve
Do you have a particular component in mind? I would imagine so though if it operates in a similar manner
what is your power source?
Power comes from the USB 5V supply