Circuit to safely control a Solenoid with an Arduino ⚙️📱🔌⚡🔋💡

Sdílet
Vložit
  • čas přidán 21. 08. 2024

Komentáře • 198

  • @sorinciolovic9391
    @sorinciolovic9391 Před rokem +4

    Hello, everything is very clear and well explained. I like your CALM VOICE !!! Many thanks! Sorin.

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

    Versão em português deste projeto: Circuito para controlar com segurança um Solenoide com um Arduino czcams.com/video/XLLikwd1fVM/video.html

  • @IvoireTube
    @IvoireTube Před 4 lety +5

    Very good and simple to understand lesson you are a good trainer this is what we need a simplifier . Great thanks .

  • @Wintergatan_2
    @Wintergatan_2 Před 2 lety +3

    Very helpful and to the point, thank you!

  • @user-ef4df7nz5r
    @user-ef4df7nz5r Před 7 měsíci +1

    Thanks , out of many videos i've watched , this one is the one that worked

    • @jomirife
      @jomirife  Před 6 měsíci

      at least with this transistor it works

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

    Very good demonstration - thank you - you are an excellent teacher!

    • @jomirife
      @jomirife  Před 4 lety

      Thanks. If you are interested in Arduino projects and electronics components, I will publish several videos soon.

    • @chips1237
      @chips1237 Před 3 lety

      🙄

  • @donitamika7018
    @donitamika7018 Před 3 lety +1

    I love your projects!!!

    • @jomirife
      @jomirife  Před 3 lety

      thanks, there are more to come

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

    Very nice. This is what I am needed for my project. Thanks 👍

    • @jomirife
      @jomirife  Před rokem

      share the project with me, I would like to see it

  • @ibrahimshameed9577
    @ibrahimshameed9577 Před rokem

    Thanks. Fan from Kerala

  • @Ghostman539
    @Ghostman539 Před 2 lety +3

    Thank you for this, it is very useful. I’m a complete newbie to electronics and arduino, but am working on a project that needs to operate a solenoid by a remote control. Is that possible? Many thanks. Mark

  • @anandsmilesath
    @anandsmilesath Před 2 lety

    Very useful. Thanks for this video. Getting aspiration to learn Arduino. From where u ordered these products.
    1 Arduino, 1 Breadboard, 1 Solenoid (or 1 motor), 6 cables, 1 transistor IRF520, 1 diode 1N4007, 1 resistor of 330 ohm, 1 resistor of 2.2k ohm.

    • @jomirife
      @jomirife  Před 2 lety

      I have been acquiring the components over the years as I need them for my projects, sometimes I buy other times I recover stuff from electronic waste

    • @jomirife
      @jomirife  Před 2 lety

      But you can search for kits on amazon or ebay that include all of that

    • @rizkitrimukti3827
      @rizkitrimukti3827 Před rokem

      Is that a 5 v solenoid or 12 v selonoid ?

  • @sennabullet
    @sennabullet Před 3 lety +1

    really nice tutorial. Thank you!!!

  • @jeneeflagg8598
    @jeneeflagg8598 Před 6 měsíci

    well explained

  • @amireghbal9892
    @amireghbal9892 Před rokem +1

    Will this circuit work if you want the opposite effect? I want the solenoid to be in the back position always and pull forwards when needed

  • @GroovyGamerYT
    @GroovyGamerYT Před rokem

    Does it matter what type of resistor, transistor, and diode you use?

  • @bernardomelo169
    @bernardomelo169 Před 6 měsíci

    it helped a lot for my project, thanks

  • @_SHALAKANAGRE
    @_SHALAKANAGRE Před 2 lety

    Thank you, This video was very helpful to me

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

    Hello!! May I know where you bought the solenoid? Thank you and great video

  • @TangodownNZ
    @TangodownNZ Před rokem +1

    Please. What diode should I use for a 24 volt 2 amp solenoid? Thank you

  • @lskanon863
    @lskanon863 Před 3 lety

    Thank you. Very detailed and well explained.

    • @chips1237
      @chips1237 Před 3 lety

      🙄

    • @jomirife
      @jomirife  Před 3 lety

      thanks

    • @jomirife
      @jomirife  Před 3 lety

      I'm going to publish the complete project where I use this system, so subscribe so you don't miss it 😀

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

    Excellent tutorial!
    Is it possible to connect six 5v solenoid with an arduino working all together at the same time? I'm working on a Braille project for donate to blind kids. I hope you can help me. Thanks!

    • @YouLostTheGame1015
      @YouLostTheGame1015 Před rokem

      Hey, have you completed this project? I am doing something similar and would appreciate guidance

  • @Orchardman53
    @Orchardman53 Před 3 lety

    I note you are powering the solenoid via the Arduino power supply (USB). Does the solenoid draw too many Watts on the inrush current for the capability of the USB power? Would a separate power feed to the breadboard and the IRF520 be a more cautious approach?
    Otherwise a nice clear explanation with good diagrams. Thank you.

    • @chips1237
      @chips1237 Před 3 lety

      🙄

    • @jomirife
      @jomirife  Před 3 lety

      yes, you're right, but in my case as the circuit only serves to move one 5V solenoid, I preferred to use the current received by the USB.

  • @abuahmedalduhbi9552
    @abuahmedalduhbi9552 Před 4 lety +3

    could you do the triggering solenoid for this project with IR sensor?

    • @jomirife
      @jomirife  Před 4 lety

      It would be easy, but I don't have an IR sensor to do it. But you would have to indicate that when it receives the IR signal, it makes the digital pin HIGH. Soon I will publish a project where I do something similar, but with a PIR sensor. Subscribe to the channel to not miss it.

    • @chips1237
      @chips1237 Před 3 lety

      🙄

  • @hamedghaed19
    @hamedghaed19 Před rokem

    Thank u so much ❤

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

    excellent u r creative

  • @Sinasongway
    @Sinasongway Před 3 lety

    I like the video. Definitely its wonderful but you could have shown the the components names on the screen when you explained those.

    • @jomirife
      @jomirife  Před 3 lety

      sure, but I wrote them during the demo and they are on the description of the video

    • @chips1237
      @chips1237 Před 3 lety

      🙄

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

    Would it be possible to make the solenoid "pulse" each time you press any keys on a keyboard?

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

      Yes, you could have a Processing program that whenever it detects a pressed key, it sends a command to the arduino to do something, you could even program to do something different with each key

  • @hssolmexix
    @hssolmexix Před 2 lety

    That's great demonstration,
    But if I want to use morethan 1 selenoid, how it could be? Am I just need to adds >1 selenoid, >1 R 330, >1 diode,?
    Thank you very much,

    • @jomirife
      @jomirife  Před 2 lety

      do you want to use more than 1 solenoid on the same circuito of that transistor? or control different solenoids with differente transistors?

    • @jomirife
      @jomirife  Před 2 lety

      note that the arduino only has 5v, you would need an additional power source to power different solenoids at the same time

    • @hssolmexix
      @hssolmexix Před 2 lety

      @@jomirife yes, something like that..
      It would be not enough, I got that

  • @pitapotale
    @pitapotale Před rokem

    Sorry, what is the current and voltage used in the video on the selenoid?

  • @_SHALAKANAGRE
    @_SHALAKANAGRE Před 2 lety

    What is the use of 1N4007 diode in controlling solenoid?

  • @mitchshivers
    @mitchshivers Před 2 lety

    Very helpful! can you show how to connect multiple solenoids using 1 Arduino with a rhythmic pattern?

    • @jomirife
      @jomirife  Před 2 lety

      i am working on a project with multiple motors, but they are controlled in the same way as a solenoid.

    • @jomirife
      @jomirife  Před 2 lety

      When it's done, I'll publish the video :)

    • @mitchshivers
      @mitchshivers Před 2 lety

      @@jomirife Theat great! I can't wait to see it all work. I really appreciate what you do!

  • @Sunny-pz6zb
    @Sunny-pz6zb Před 2 lety

    Thank you so much for the video, maybe my project is the different amp of solenoid, so how to calcalaue the resistor and transistor i need? thanks

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

      you need to check the datasheet of your components to determine which resistors you need to use

  • @Agility345
    @Agility345 Před 2 lety

    Hello, I want to ask what resistors and transistor do I need, if I want to use 6V solenoid with 9V Jack Arduino connector. Thank you and great video btw =]

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

      you can use this same circuit, the diode I use is only to prevent the current direction so as not to burn the arduino

  • @nickstamatiou9871
    @nickstamatiou9871 Před 4 měsíci

    Hi there! Why do you need a resistor with the diode?

    • @jomirife
      @jomirife  Před 4 měsíci

      the diode can act as a resistor

  • @magicianchannel1
    @magicianchannel1 Před 3 lety

    Does it matter how much voltage is used for the solenoid? ; Can i use the same transitor and diode you used for a simular setup using a 9V solenoid?
    Also, how do you know which is the right mosfet and diode to use in a setup like this? Or are all mosfets and diodes simular enough for a setup like this?
    Thanks in advance anyone! :)

    • @jomirife
      @jomirife  Před 3 lety

      Yes, it matter. I tested with the 3V power, and it didn't have enought power to move the piston of the solenoid. So for this solenoid you need at least the 5V. I didn't try yet with voltage above 5V.

    • @jomirife
      @jomirife  Před 3 lety

      Subscribe for more projets, I will post a bigger project where I use the solenoid to lock and unlock a door using a NFC card.

    • @chips1237
      @chips1237 Před 3 lety

      🙄

  • @gersonfer
    @gersonfer Před 4 lety

    Hello. Very well explained, thank you. In this example, is it a 12V solenoid ?

    • @jomirife
      @jomirife  Před 4 lety

      thanks

    • @jomirife
      @jomirife  Před 4 lety

      it's a 5v solenoid, this one czcams.com/video/jLawY3uC_Ww/video.html

    • @jomirife
      @jomirife  Před 4 lety

      Soon I will publish the complete project where I use this part with the solenoid, so you should subscribe to the channel so you don't miss the video 👍👍👍

    • @chips1237
      @chips1237 Před 3 lety

      🙄

  • @hardikadhyaru8582
    @hardikadhyaru8582 Před 3 lety +1

    Hi, I want to connect a motion sensor at input and when someone waves, I want the solenoid to operate. Can you help with this ?

    • @eliasstarr1122
      @eliasstarr1122 Před 3 lety

      just use motion sensor, and if input movement is detected set the solenoid to high

    • @chips1237
      @chips1237 Před 3 lety

      🙄

    • @jomirife
      @jomirife  Před 3 lety

      I could help, I did this project czcams.com/video/NLIHn6Duenk/video.html where the motion sensor turns on a light, for your project I just needed to put the solenoid pin in that output

  • @gigatentaction2356
    @gigatentaction2356 Před 2 lety

    Hi, what solenoid are you using? Is it 6v?

  • @deonklingbiel
    @deonklingbiel Před 4 lety

    Very nice. Can you connect 3 x outputs? I have to open en close 3 x motorized ball valved in a certain sequence to open and close water for a solar geyser. Is it possible to do with 3 x outputs?

    • @jomirife
      @jomirife  Před 4 lety

      Yes, just use a pin on the Arduino for each solenoid. But with this system I wouldn't have enough power por activate all the solenoids at the same time, but I could use them one at a time.

    • @chips1237
      @chips1237 Před 3 lety

      🙄

  • @alisameh5085
    @alisameh5085 Před 2 lety

    I want to use 5v solenoid in a control circuit of an air mattress , should i connect the solenoid directly to the ardunio without a transistor?
    And does the 5v solenoid even work for such circuit?

    • @jomirife
      @jomirife  Před 2 lety

      the problem is if you are working with very high voltages

  • @hugobreu508
    @hugobreu508 Před 3 lety

    thanks thanks and thanks

  • @Lecandotnet
    @Lecandotnet Před 3 lety

    Please show component names or number, such as Resistor 1000 ofms, diode 1N4007, transitor Tip120. Thank you.

    • @jomirife
      @jomirife  Před 3 lety

      that is in the beggining when I have all the components on the table

  • @RC-so4ds
    @RC-so4ds Před rokem

    Hi, I am trying to reproduce this project but am trying to use a BC517 transistor vs the IRF520, will that work?

  • @chadlunders4898
    @chadlunders4898 Před rokem

    How would you connect 88 solenoids acting independently?

  • @davidlima3615
    @davidlima3615 Před 2 lety

    very good!
    How many amps is the solenoid?

    • @jomirife
      @jomirife  Před 2 lety

      about 1 amp

    • @jomirife
      @jomirife  Před 2 lety

      it's not a very strong solenoid, it's just for prototyping ideas

  • @islamckie9317
    @islamckie9317 Před 2 lety

    love it

  • @NeetipudiSubash
    @NeetipudiSubash Před 4 lety +1

    Sir can a powder like salt flow through this solenoid

  • @dr.videos8502
    @dr.videos8502 Před 2 lety

    cna we control the speed of opening though ?

  • @aliagandara9366
    @aliagandara9366 Před 2 lety

    i need to do that

  • @itskay8291
    @itskay8291 Před 3 lety

    Sir, i follow ur instruction but only the light on but the solenoid wont move at all. Can you explain why? Thank you sir for your tutorial

    • @jomirife
      @jomirife  Před 3 lety

      I would need to see your project better to identify the problem.

    • @jomirife
      @jomirife  Před 3 lety

      Subscribe for more projets, I will post a bigger project where I use the solenoid to lock and unlock a door using with a different setup and connections on the breadboard.

    • @chips1237
      @chips1237 Před 3 lety

      🙄

  • @hardcoreprogrammingwarrior7036

    liked and subscribed, nice demo. is this possible if I use Lock-style Solenoid 12VDC
    ?

    • @jomirife
      @jomirife  Před 3 lety +1

      Yes, especially if it is for a door. I used this solenoid on a model for proof of concept because I didn't have a lock type at the time.

    • @jomirife
      @jomirife  Před 3 lety

      I will post the demonstration of my project maybe next month.

    • @hardcoreprogrammingwarrior7036
      @hardcoreprogrammingwarrior7036 Před 3 lety

      @@jomirife thanks!

    • @jomirife
      @jomirife  Před 3 lety

      @@hardcoreprogrammingwarrior7036 you're welcome

    • @chips1237
      @chips1237 Před 3 lety

      🙄

  • @chips1237
    @chips1237 Před 3 lety

    that's cool

  • @mruscfreddles80
    @mruscfreddles80 Před 4 lety

    What about controlling the solenoid speed with a potentiometer?

    • @jomirife
      @jomirife  Před 4 lety

      You cannot control the speed of this solenoid, you would need another type of motor

    • @chips1237
      @chips1237 Před 3 lety

      🙄

  • @calebjtaylor1
    @calebjtaylor1 Před 4 lety

    Hi. Would this work with a solenoid that draws more current, or would I need different resistors etc?

    • @jomirife
      @jomirife  Před 4 lety

      The arduino can't work with much more powerful solenoids, you would need other components to amplify the power

    • @jomirife
      @jomirife  Před 4 lety

      Soon I will publish the complete project where I use this part with the solenoid, so you should subscribe to the channel so you don't miss the project 👍👍👍

    • @chips1237
      @chips1237 Před 3 lety

      🙄

  • @kalenmcallister4290
    @kalenmcallister4290 Před 3 lety

    Does your MOSFET heat sink get really hot when in use?

    • @jomirife
      @jomirife  Před 3 lety

      In this system.. no, the energy required is very low and does not heat the transistor.

    • @jomirife
      @jomirife  Před 3 lety

      But this can happen in systems with larger components that require more power. Have you had that problem?

    • @chips1237
      @chips1237 Před 3 lety

      🙄

  • @ashpikachu853
    @ashpikachu853 Před 2 lety

    If i want to run a 24vdc solenoid valve then what are the components do u have to change

    • @jomirife
      @jomirife  Před 2 lety

      you can use the same, only have to use another power source for that, because the arduino only do 3v and 5v

  • @bibil3526
    @bibil3526 Před 2 lety

    how much did the project cost?

    • @jomirife
      @jomirife  Před 2 lety

      just a few dollars, minus the cost of Arduino

  • @stevegoodjob5902
    @stevegoodjob5902 Před 3 lety

    Can I do this with another kick back suppression circuit where I don't use mosfet?

    • @jomirife
      @jomirife  Před 3 lety +1

      I'm going to think about how I can create the circuit without a MOSFET and then create a project like that

    • @stevegoodjob5902
      @stevegoodjob5902 Před 3 lety

      @@jomirife thanks 😊 for the reply subbed

  • @HaidenMcGrath
    @HaidenMcGrath Před rokem

    Why not use a relay?

  • @carbon273
    @carbon273 Před 3 lety

    For some reason my solenoid doesnt respond to the low comand on the pin. It retracts due to the power supply but thats it.

    • @jomirife
      @jomirife  Před 3 lety

      What voltage is your solenoid?

    • @jomirife
      @jomirife  Před 3 lety

      If the solenoid needs more that 5 volts to work, the Arduino doen't have the power to do it

    • @carbon273
      @carbon273 Před 3 lety

      @@jomirife I have a solenoid rated for 4.5V minimum to operate. I am using an external DC power supply as well just to draw out the neccessary current.
      This is the solenoid I am using.
      www.amazon.com/gp/product/B013DR655A/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1
      Is this similar to yours?

  • @xmanoel2184x
    @xmanoel2184x Před rokem

    is it a 12V 1A solenoid?

  • @LionKing-tx2ve
    @LionKing-tx2ve Před 4 lety

    Sir,I need the 5v pin of the arduino for another component of the curcuit....
    What shall I do in that case?
    Sir, this is very important for my project...

    • @jomirife
      @jomirife  Před 4 lety

      I'm not really sure if you can solve that problem, because the 5v to the solenoid is almost not enough to move the solenoide, and sharing that powersource could be a problem.

    • @jomirife
      @jomirife  Před 4 lety

      Soon I will publish a project where I use many components and sensors in the same system, powered only by the Arduino's 5V, and the power source is shared and distributed on the breadboard. So it can also work that way for you.

    • @jomirife
      @jomirife  Před 4 lety

      Subscribe for more videos like this 👍👍👍 I will publish more videos with Arduinos and electronics

    • @LionKing-tx2ve
      @LionKing-tx2ve Před 4 lety

      Ok Thanks for your assurance Sir...I'll wait...🙂

    • @jomirife
      @jomirife  Před 4 lety

      @@LionKing-tx2ve I will also post fotos and diagrams of the projet on my instragram instagram.com/jomirife/

  • @bernardino5576
    @bernardino5576 Před 2 lety

    👏👏👏

  • @elliot1784
    @elliot1784 Před 4 lety

    what is the voltage rating of the solenoid/motor u used?.. thanks :)

    • @jomirife
      @jomirife  Před 4 lety +1

      5 volts

    • @jomirife
      @jomirife  Před 4 lety

      Check this post jomirife.blogspot.com/2020/03/solenoid-push-pull.html

    • @chips1237
      @chips1237 Před 3 lety

      🙄

    • @elliot1784
      @elliot1784 Před 3 lety

      @@chips1237 something above you?

  • @shaneross9410
    @shaneross9410 Před 4 lety

    can you make the solenoid move slower and might delay it at open?

    • @jomirife
      @jomirife  Před 4 lety

      To control the velocity you sould use a stepper motor, mas to delay the action you just do it on the code.

    • @chips1237
      @chips1237 Před 3 lety

      🙄

  • @angelicab1136
    @angelicab1136 Před 3 lety

    how much power does that solenoid needs?

    • @jomirife
      @jomirife  Před 3 lety

      this is only a 5V solenoid

  • @ameliabir5907
    @ameliabir5907 Před 2 lety

    👏👏

  • @ttv3071
    @ttv3071 Před 4 lety

    can we use a tip120 transistor instead of the irf 520

    • @jomirife
      @jomirife  Před 4 lety +1

      the tip120 is two NPN transistors, so i think there will be no problem, and will protect the arduino pins in the same way

    • @jomirife
      @jomirife  Před 4 lety

      Soon I will publish the complete project where I use this part with the solenoid, so you should subscribe to the channel so you don't miss the video 👍👍👍

    • @chips1237
      @chips1237 Před 3 lety +1

      🙄

  • @nishantscorpio
    @nishantscorpio Před 4 lety

    Can we simply pull and wait untill I give further commands to push it back

    • @jomirife
      @jomirife  Před 4 lety

      yes, look at the code, the piston could be pulled while the pin is in "high"

    • @chips1237
      @chips1237 Před 3 lety

      🙄

  • @ronaldogarcia4738
    @ronaldogarcia4738 Před 3 lety

    tk.

  • @7frendzel
    @7frendzel Před 3 lety

    Can I use 1n4001 instead of 1n4007? Thanks :)

    • @jomirife
      @jomirife  Před 3 lety

      I'm not completely familiar with 1n4007, but it looks like it

    • @chips1237
      @chips1237 Před 3 lety

      🙄

  • @loanlimore2853
    @loanlimore2853 Před 2 lety

    bien

  • @marissaslape7486
    @marissaslape7486 Před 2 lety

  • @taishaboyes2457
    @taishaboyes2457 Před rokem

    H D B !!!

  • @taishaboyes2457
    @taishaboyes2457 Před rokem

    +1

  • @chips1237
    @chips1237 Před 3 lety

    can you burn the arduino or the solenoid?

    • @jomirife
      @jomirife  Před 3 lety

      the Arduino is more sensitive to electricity

  • @marwaelries7306
    @marwaelries7306 Před 2 lety

    Can you help me
    How can i make a solenoid?

    • @jomirife
      @jomirife  Před 2 lety

      it's possible but it's not easy

  • @NotARealPersonBR
    @NotARealPersonBR Před rokem

    brasileiro que eu to ligado

  • @edulant1102
    @edulant1102 Před 2 lety

    5:45

  • @casssimpeer9118
    @casssimpeer9118 Před 3 lety

    Can you control Six Solenoids with one Arduino

    • @jomirife
      @jomirife  Před 3 lety

      as long as you have anough pins for that, you can. But sendind power for all of then at the same time, can be a problem.

    • @jomirife
      @jomirife  Před 3 lety

      thanks for the idea, i will try that, and give you credit

  • @jeneeflagg8598
    @jeneeflagg8598 Před 6 měsíci

    190

  • @inamhelder6638
    @inamhelder6638 Před rokem

    😋😋