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

Поделиться
HTML-код
  • Опубликовано: 26 авг 2024

Комментарии • 198

  • @sorinciolovic9391
    @sorinciolovic9391 2 года назад +4

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

  • @Wintergatan_2
    @Wintergatan_2 2 года назад +3

    Very helpful and to the point, thank you!

  • @IvoireTube
    @IvoireTube 4 года назад +5

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

  • @user-ef4df7nz5r
    @user-ef4df7nz5r 7 месяцев назад +1

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

    • @jomirife
      @jomirife  6 месяцев назад

      at least with this transistor it works

  • @wilhelmkahn2267
    @wilhelmkahn2267 4 года назад +2

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

    • @jomirife
      @jomirife  4 года назад

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

    • @chips1237
      @chips1237 3 года назад

      🙄

  • @petergesselvan9252
    @petergesselvan9252 2 года назад +1

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

    • @jomirife
      @jomirife  Год назад

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

  • @Ghostman539
    @Ghostman539 2 года назад +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

  • @donitamika7018
    @donitamika7018 3 года назад +1

    I love your projects!!!

    • @jomirife
      @jomirife  3 года назад

      thanks, there are more to come

  • @sennabullet
    @sennabullet 3 года назад +1

    really nice tutorial. Thank you!!!

    • @jomirife
      @jomirife  3 года назад

      You're very welcome!

  • @jomirife
    @jomirife  4 года назад +2

    Versão em português deste projeto: Circuito para controlar com segurança um Solenoide com um Arduino ruclips.net/video/XLLikwd1fVM/видео.html

  • @ibrahimshameed9577
    @ibrahimshameed9577 Год назад

    Thanks. Fan from Kerala

  • @_SHALAKANAGRE
    @_SHALAKANAGRE 2 года назад

    Thank you, This video was very helpful to me

  • @jamespatrickreyes7522
    @jamespatrickreyes7522 2 года назад +1

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

  • @jeneeflagg8598
    @jeneeflagg8598 6 месяцев назад

    well explained

  • @anandsmilesath
    @anandsmilesath 2 года назад

    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  2 года назад

      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  2 года назад

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

    • @rizkitrimukti3827
      @rizkitrimukti3827 Год назад

      Is that a 5 v solenoid or 12 v selonoid ?

  • @lskanon863
    @lskanon863 3 года назад

    Thank you. Very detailed and well explained.

    • @chips1237
      @chips1237 3 года назад

      🙄

    • @jomirife
      @jomirife  3 года назад

      thanks

    • @jomirife
      @jomirife  3 года назад

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

  • @GroovyGamerYT
    @GroovyGamerYT Год назад

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

  • @bernardomelo169
    @bernardomelo169 6 месяцев назад

    it helped a lot for my project, thanks

    • @jomirife
      @jomirife  6 месяцев назад

      Glad to hear that!

  • @TangodownNZ
    @TangodownNZ Год назад +1

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

  • @amireghbal9892
    @amireghbal9892 Год назад +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

  • @ibrahimmolero2096
    @ibrahimmolero2096 2 года назад +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 Год назад

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

  • @abuahmedalduhbi9552
    @abuahmedalduhbi9552 4 года назад +3

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

    • @jomirife
      @jomirife  4 года назад

      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 3 года назад

      🙄

  • @abuahmedalduhbi9552
    @abuahmedalduhbi9552 4 года назад +2

    excellent u r creative

  • @pitapotale
    @pitapotale Год назад

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

  • @Sinasongway
    @Sinasongway 3 года назад

    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  3 года назад

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

    • @chips1237
      @chips1237 3 года назад

      🙄

  • @hamedghaed19
    @hamedghaed19 Год назад

    Thank u so much ❤

  • @Orchardman53
    @Orchardman53 3 года назад

    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 3 года назад

      🙄

    • @jomirife
      @jomirife  3 года назад

      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.

  • @nickstamatiou9871
    @nickstamatiou9871 5 месяцев назад

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

    • @jomirife
      @jomirife  4 месяца назад

      the diode can act as a resistor

  • @_SHALAKANAGRE
    @_SHALAKANAGRE 2 года назад

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

  • @chadlunders4898
    @chadlunders4898 Год назад

    How would you connect 88 solenoids acting independently?

  • @gigatentaction2356
    @gigatentaction2356 2 года назад

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

  • @TheMudDragon
    @TheMudDragon 2 года назад +1

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

    • @jomirife
      @jomirife  2 года назад +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

  • @Sunny-pz6zb
    @Sunny-pz6zb 3 года назад

    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  3 года назад +1

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

  • @It.hassss
    @It.hassss 2 года назад

    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  2 года назад

      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  2 года назад

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

    • @It.hassss
      @It.hassss 2 года назад

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

  • @gersonfer
    @gersonfer 4 года назад

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

    • @jomirife
      @jomirife  4 года назад

      thanks

    • @jomirife
      @jomirife  4 года назад

      it's a 5v solenoid, this one ruclips.net/video/jLawY3uC_Ww/видео.html

    • @jomirife
      @jomirife  4 года назад

      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 3 года назад

      🙄

  • @Agility345
    @Agility345 2 года назад

    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  2 года назад +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

  • @mitchshivers
    @mitchshivers 2 года назад

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

    • @jomirife
      @jomirife  2 года назад

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

    • @jomirife
      @jomirife  2 года назад

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

    • @mitchshivers
      @mitchshivers 2 года назад

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

  • @xmanoel2184x
    @xmanoel2184x Год назад

    is it a 12V 1A solenoid?

  • @dr.videos8502
    @dr.videos8502 2 года назад

    cna we control the speed of opening though ?

  • @RC-so4ds
    @RC-so4ds Год назад

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

  • @hardikadhyaru8582
    @hardikadhyaru8582 3 года назад +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 3 года назад

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

    • @chips1237
      @chips1237 3 года назад

      🙄

    • @jomirife
      @jomirife  3 года назад

      I could help, I did this project ruclips.net/video/NLIHn6Duenk/видео.html where the motion sensor turns on a light, for your project I just needed to put the solenoid pin in that output

  • @deonklingbiel
    @deonklingbiel 4 года назад

    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  4 года назад

      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 3 года назад

      🙄

  • @davidlima3615
    @davidlima3615 2 года назад

    very good!
    How many amps is the solenoid?

    • @jomirife
      @jomirife  2 года назад

      about 1 amp

    • @jomirife
      @jomirife  2 года назад

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

  • @Lecandotnet
    @Lecandotnet 3 года назад

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

    • @jomirife
      @jomirife  3 года назад

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

  • @alisameh5085
    @alisameh5085 2 года назад

    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  2 года назад

      the problem is if you are working with very high voltages

  • @ashpikachu853
    @ashpikachu853 2 года назад

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

    • @jomirife
      @jomirife  2 года назад

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

  • @bibil3526
    @bibil3526 2 года назад

    how much did the project cost?

    • @jomirife
      @jomirife  2 года назад

      just a few dollars, minus the cost of Arduino

  • @magicianchannel1
    @magicianchannel1 3 года назад

    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  3 года назад

      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  3 года назад

      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 3 года назад

      🙄

  • @NeetipudiSubash
    @NeetipudiSubash 4 года назад +1

    Sir can a powder like salt flow through this solenoid

  • @hardcoreprogrammingwarrior7036
    @hardcoreprogrammingwarrior7036 3 года назад

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

    • @jomirife
      @jomirife  3 года назад +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  3 года назад

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

    • @hardcoreprogrammingwarrior7036
      @hardcoreprogrammingwarrior7036 3 года назад

      @@jomirife thanks!

    • @jomirife
      @jomirife  3 года назад

      @@hardcoreprogrammingwarrior7036 you're welcome

    • @chips1237
      @chips1237 3 года назад

      🙄

  • @kalenmcallister4290
    @kalenmcallister4290 3 года назад

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

    • @jomirife
      @jomirife  3 года назад

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

    • @jomirife
      @jomirife  3 года назад

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

    • @chips1237
      @chips1237 3 года назад

      🙄

  • @aliagandara9366
    @aliagandara9366 2 года назад

    i need to do that

  • @calebjtaylor1
    @calebjtaylor1 4 года назад

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

    • @jomirife
      @jomirife  4 года назад

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

    • @jomirife
      @jomirife  4 года назад

      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 3 года назад

      🙄

  • @marwaelries7306
    @marwaelries7306 2 года назад

    Can you help me
    How can i make a solenoid?

    • @jomirife
      @jomirife  2 года назад

      it's possible but it's not easy

  • @stevegoodjob5902
    @stevegoodjob5902 3 года назад

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

    • @jomirife
      @jomirife  3 года назад +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 3 года назад

      @@jomirife thanks 😊 for the reply subbed

  • @itskay8291
    @itskay8291 3 года назад

    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  3 года назад

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

    • @jomirife
      @jomirife  3 года назад

      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 3 года назад

      🙄

  • @angelicab1136
    @angelicab1136 3 года назад

    how much power does that solenoid needs?

    • @jomirife
      @jomirife  3 года назад

      this is only a 5V solenoid

  • @mruscfreddles80
    @mruscfreddles80 4 года назад

    What about controlling the solenoid speed with a potentiometer?

    • @jomirife
      @jomirife  4 года назад

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

    • @chips1237
      @chips1237 3 года назад

      🙄

  • @HaidenMcGrath
    @HaidenMcGrath Год назад

    Why not use a relay?

    • @citratunealt1
      @citratunealt1 11 месяцев назад

      Relays are inferior to mosfets.

  • @ttv3071
    @ttv3071 4 года назад

    can we use a tip120 transistor instead of the irf 520

    • @jomirife
      @jomirife  4 года назад +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  4 года назад

      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 3 года назад +1

      🙄

  • @shaneross9410
    @shaneross9410 4 года назад

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

    • @jomirife
      @jomirife  4 года назад

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

    • @chips1237
      @chips1237 3 года назад

      🙄

  • @elliot1784
    @elliot1784 4 года назад

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

    • @jomirife
      @jomirife  4 года назад +1

      5 volts

    • @jomirife
      @jomirife  4 года назад

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

    • @chips1237
      @chips1237 3 года назад

      🙄

    • @elliot1784
      @elliot1784 3 года назад

      @@chips1237 something above you?

  • @carbon273
    @carbon273 3 года назад

    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  3 года назад

      What voltage is your solenoid?

    • @jomirife
      @jomirife  3 года назад

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

    • @carbon273
      @carbon273 3 года назад

      @@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?

  • @hugobreu508
    @hugobreu508 3 года назад

    thanks thanks and thanks

  • @7frendzel
    @7frendzel 3 года назад

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

    • @jomirife
      @jomirife  3 года назад

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

    • @chips1237
      @chips1237 3 года назад

      🙄

  • @chips1237
    @chips1237 3 года назад

    can you burn the arduino or the solenoid?

    • @jomirife
      @jomirife  3 года назад

      the Arduino is more sensitive to electricity

  • @nishantscorpio
    @nishantscorpio 4 года назад

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

    • @jomirife
      @jomirife  4 года назад

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

    • @chips1237
      @chips1237 3 года назад

      🙄

  • @LionKing-tx2ve
    @LionKing-tx2ve 4 года назад

    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  4 года назад

      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  4 года назад

      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  4 года назад

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

    • @LionKing-tx2ve
      @LionKing-tx2ve 4 года назад

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

    • @jomirife
      @jomirife  4 года назад

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

  • @islamckie9317
    @islamckie9317 3 года назад

    love it

  • @casssimpeer9118
    @casssimpeer9118 3 года назад

    Can you control Six Solenoids with one Arduino

    • @jomirife
      @jomirife  3 года назад

      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  3 года назад

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

  • @chips1237
    @chips1237 3 года назад

    that's cool

  • @loanlimore2853
    @loanlimore2853 2 года назад

    bien

    • @jomirife
      @jomirife  2 года назад

      espero que tenha ajudado

  • @ronaldogarcia4738
    @ronaldogarcia4738 3 года назад

    tk.

  • @edulant1102
    @edulant1102 2 года назад

    5:45

    • @jomirife
      @jomirife  2 года назад

      connect just like that

    • @jomirife
      @jomirife  2 года назад

      and will work

  • @NotARealPersonBR
    @NotARealPersonBR Год назад

    brasileiro que eu to ligado

  • @jeneeflagg8598
    @jeneeflagg8598 6 месяцев назад

    190

  • @bernardino5576
    @bernardino5576 2 года назад

    👏👏👏

  • @ameliabir5907
    @ameliabir5907 2 года назад

    👏👏

  • @taishaboyes2457
    @taishaboyes2457 Год назад

    +1

  • @marissaslape7486
    @marissaslape7486 2 года назад

  • @taishaboyes2457
    @taishaboyes2457 Год назад

    H D B !!!

  • @inamhelder6638
    @inamhelder6638 Год назад

    😋😋