Adam Jerozolim
Adam Jerozolim
  • 6
  • 33 658
AI for beginners: What it is and how it works (with practical examples)!
What is Artificial Intelligence. Where do we use it everyday and how does it work?
Explore common everyday examples of AI. Delve into AI Biases, Data Collection, AI shortfalls, Neural Networks, and how Machine Learning really works.
มุมมอง: 62

วีดีโอ

Attaching any Switch or Button to Arduino Microcontrollers!
มุมมอง 9573 หลายเดือนก่อน
Learn how to attach any switch or button to any microcontroller including Arduino and Raspberry Pi. Video goes through a universal circuit and code that will work for any button or switch, including: toggle switches, latching switches, arcade buttons, water proof buttons, illuminated buttons and dip switches.
Arduino Simple Stepper Tutorial - No Library!
มุมมอง 4.2K3 ปีที่แล้ว
A simple tutorial in how to wire and control a stepper motor using an Arduino microcontroller. The video keeps the code simple by not using a library for stepper control. We are using the 28BYJ-48 stepper motor and ULN2003 stepper motor driver
Arduino Interrupts Debounce Explained
มุมมอง 1.9K3 ปีที่แล้ว
What happens when you press a button and it bounces? How do you prevent the Arduino from seeing it as multiple presses?
Arduino Interrupts Explained
มุมมอง 2303 ปีที่แล้ว
This video explains what an Arduino Interrupt is, how it works, what it can be used for and goes through a simple example code.
Arduino | Powering Multiple Servos and Motors
มุมมอง 26K4 ปีที่แล้ว
How to power multiple servos and motors with your Arduino, and how to avoid the pitfalls of plugging everything into the 5V pins.

ความคิดเห็น

  • @chriskiepfer450
    @chriskiepfer450 3 วันที่ผ่านมา

    Thanks for the video! If I accidentally put 5V to the Gnd pin, will it cause any damage to my Arduino or the servo?

    • @adamjerozolim800
      @adamjerozolim800 3 วันที่ผ่านมา

      for an authentic Arduino, 5V won't break it if you mix up GND/5V/Vin. Servo is fine also with 5V mixup.

  • @malakkhaled2228
    @malakkhaled2228 4 วันที่ผ่านมา

    If i have an esp32 and i am powering it with 3 lithium ion batteries connedcted to a voltage regulator l7805 which is then connected to the vin and the gnd So should i connect the 2 servos like u did to 3 li ion batteries and then connect the ground to the other gnd in the esp32 Will that ruin or blow anything?

    • @adamjerozolim800
      @adamjerozolim800 3 วันที่ผ่านมา

      that's exactly what you should do! but you have 2 options. 1) if the voltage from the 3 cells (10.8) isn't too much for the servo, then yes plug the red servo wire right into the battery packs, and the ground to the esp. this will not damage it. 2) if the voltage is too much then connect the red wire directly to the output of the 7805, and again the ground to the esp.

  • @mikecoster2709
    @mikecoster2709 หลายเดือนก่อน

    I was looking at getting a spring loaded toggle switch, but the only ones I found were 125v/250v. Am I correct in thinking these won’t work with an arduino? Or is that just the maximum voltage that can run to it.

    • @adamjerozolim800
      @adamjerozolim800 หลายเดือนก่อน

      yes, they are all fine. the voltage rating is the maximum. we are only using 5V. a switch is just a device that connects two wires together.

  • @rufustoad1
    @rufustoad1 หลายเดือนก่อน

    Excellent. I got mine working FINALLY thanks to this video. Have you thought about another video with 3 or 4 switches turning on 3 or 4 different lights and how to make code for that? Seems that if a guy could figure out a few of those switches it would be endless on what you could add including limit switches. OR would you just copy this and add several different pinModes etc?

    • @adamjerozolim800
      @adamjerozolim800 หลายเดือนก่อน

      correct this is the basis for almost any device, buttons and switches. adding more would just be repeating this exact circuit and code. you have to add PINMODE for each pin you are using, and a separate circuit for each button/switch

  • @rufustoad1
    @rufustoad1 หลายเดือนก่อน

    WOW This is exactly what I was looking for. Can you use this same type of code for multiple pins? I am new to code and trying to set up something that would be more advanced. Can you tie the 1 pull down resistor to several input pins? Do you do any teaching on Arduino?

    • @adamjerozolim800
      @adamjerozolim800 หลายเดือนก่อน

      yes, but you have to write PINMODE and DIGITALREAD separately for each pin. you need a separate resistor for each button otherwise one button could end up switching all of the pins HIGH. I work at CIJE and we develop STEM curriculum.

    • @rufustoad1
      @rufustoad1 หลายเดือนก่อน

      @@adamjerozolim800Thank you for the reply. Is there a limit on the number of switches you can use on 1 ground pin?

    • @adamjerozolim800
      @adamjerozolim800 หลายเดือนก่อน

      @@rufustoad1No, you can use as many as you like on the same ground pin, but each switch must have it's own resistor going to ground. each switch can be connected to the same 5V port. and each switch should go to a separate digital pin.

    • @rufustoad1
      @rufustoad1 หลายเดือนก่อน

      @@adamjerozolim800Thankyou Adam you have been very very helpful. Hope to see an few more videos for beginners!!

  • @sweetblues3230
    @sweetblues3230 2 หลายเดือนก่อน

    ty sir❤

  • @hetori9918
    @hetori9918 2 หลายเดือนก่อน

    hi teach‘,is that wire connected from D2 to the ground called pull down resistor?

    • @adamjerozolim800
      @adamjerozolim800 2 หลายเดือนก่อน

      yes the resistor is called a pull-down because it pulls the digital pin (D2) down to ground (0 volts)

  • @zechenwei1139
    @zechenwei1139 3 หลายเดือนก่อน

    Very helpful! Thank you!

  • @user-uw7vq8gc4s
    @user-uw7vq8gc4s 3 หลายเดือนก่อน

    You could just put a 100nF cap across the switch which will debounce the switch nicely. No need for code to debounce it.

    • @adamjerozolim800
      @adamjerozolim800 2 หลายเดือนก่อน

      true but at this point the students haven't been introduced to capacitors, so that might be more confusing than a coding solution. both would work. with the cap it's harder to tweak the circuit for video games that require fast and frequent presses. with a coding solution you know exactly how many milliseconds you will have before you can press again

  • @OhioFootHills
    @OhioFootHills 4 หลายเดือนก่อน

    Thanks for the explanation Adam.

  • @afaqahmad4518
    @afaqahmad4518 4 หลายเดือนก่อน

    Can I connect 6 Servos (3 big 3 small ) using these instructions ? Using 12V external source for servos and 5V source for Arduino

    • @adamjerozolim800
      @adamjerozolim800 4 หลายเดือนก่อน

      yes. as long as the external power supply has enough power (voltage and current). in general, any 12v power supply should have enough. good luck!

  • @SebVEVO
    @SebVEVO 5 หลายเดือนก่อน

    When you are using a separate battery to power the servos, wouldn't 5V USB now be enough for the Arduino?

    • @adamjerozolim800
      @adamjerozolim800 5 หลายเดือนก่อน

      yes it would, but my project assumes you no longer want to be connected to the computer. if you can still be by a computer then the USB plug is fine

  • @xlnyc77
    @xlnyc77 5 หลายเดือนก่อน

    Thank you I wish I had seen this the other day before I damaged my attiny88

  • @yatharth2538
    @yatharth2538 6 หลายเดือนก่อน

    What if i had to connect 3 MG996R servos in this same circuit youve shown??? Would that work too. As i already ruined 2 previous servos by directly connecting them to the arduino only.

    • @adamjerozolim800
      @adamjerozolim800 4 หลายเดือนก่อน

      yes that's fine. just make sure the power supply is big enough. any 12v should be fine

  • @MrZeRo4EvEr1
    @MrZeRo4EvEr1 8 หลายเดือนก่อน

    Very informative habibi, thank you very much.

  • @dea6492
    @dea6492 10 หลายเดือนก่อน

    Thank you!

  • @alexanderredhead6847
    @alexanderredhead6847 10 หลายเดือนก่อน

    What if I use a power supply per servo? Do I just connect all grounds together? And would I connect the positives together between servos and power supplies or keep them seperate?

    • @adamjerozolim800
      @adamjerozolim800 2 หลายเดือนก่อน

      all the grounds together. keep the positives separate. one positive to one servo, and nothing else.

  • @rw29102
    @rw29102 10 หลายเดือนก่อน

    How can I get the source code?

  • @DaveFer
    @DaveFer 10 หลายเดือนก่อน

    Thanks for this video. Very useful, reinforcing my understanding. But just a warning: We should be VERY careful plugging in our USB connection between Arduino and computer WHILE ALSO connecting external power to the Arduino barrel connector. Some Arduinos are spec'd for much higher external voltage than the 5VDC USB standard and we would hope that they would maintain the 5 V on the USB power channel ... but this isn't a perfect world and spikes may occur which can damage your computer. I fried a motherboard on my DELL laptop doing this. A week later, being careful to avoid having both USB and external 11 VDC plugged into to Arduino Mega, but did something slightly different and my DELL laptop once again shut down for several days. Best wishes.

    • @adamjerozolim800
      @adamjerozolim800 2 หลายเดือนก่อน

      you are correct. most computers usually shut down the port, especially Macs, but you can get back voltage into your computer. thanks!

  • @Bulmaimi
    @Bulmaimi 11 หลายเดือนก่อน

    Appreciate you

  • @derpatel9760
    @derpatel9760 11 หลายเดือนก่อน

    Excuse me, Mr, I am using an Arduino Uno R3 and it doesn't have the same power pins that your's has. How am I supposed to power a motor?

    • @adamjerozolim800
      @adamjerozolim800 11 หลายเดือนก่อน

      It's the same specs. My red pins are just more 5V pins. My blue pins are just more ground pins. This board allows me to connect things easier. You would just have to expand out your 5V and ground pins using a breadboard.

  • @zenosyx49
    @zenosyx49 11 หลายเดือนก่อน

    Hi sir, may I ask if it possible for me to use MB102 power module to power my two sg90 servo motors connected to esp32? And a ultrasonic sensor is connected to 3.3v pin of the microcontroller. the esp is powered by the its micro usb.

    • @adamjerozolim800
      @adamjerozolim800 11 หลายเดือนก่อน

      It's not great. It only provides 0.7 amps for those servos. Just one of your servos is enough to draw all that current when fully loaded. That would not leave enough current for your other servo and the esp32. But...if the two servos are not doing much, like just waving around two popsicle sticks, you could probably get away with it as they won't be using much current.

  • @blancoffee9444
    @blancoffee9444 11 หลายเดือนก่อน

    Hi adam, can I use 9v battery for my 1 mg699r?

    • @adamjerozolim800
      @adamjerozolim800 11 หลายเดือนก่อน

      you can. but if your servo is running even somewhat continuously the battery will die pretty quick. maybe after a few minutes. they do not contain a large amount of current. i would use that battery if lets say you wanted to open and close the door to a bird feeder once a day. thanks!

  • @blancoffee9444
    @blancoffee9444 11 หลายเดือนก่อน

    Does this apply to esp8266?

    • @adamjerozolim800
      @adamjerozolim800 11 หลายเดือนก่อน

      yes, to any motor of any type you are controlling from a microcontroller. motors and microcontrollers do not like sharing power supplies! this also allows you to provide higher voltages for your motors than the 3.6V the esp8266 runs on.

    • @blancoffee9444
      @blancoffee9444 11 หลายเดือนก่อน

      @@adamjerozolim800 omg thank you so mucccchhhhh, this might help meeee

    • @blancoffee9444
      @blancoffee9444 11 หลายเดือนก่อน

      @@adamjerozolim800 i will do this and put 2 sensors and lcd on the vin connection.

    • @blancoffee9444
      @blancoffee9444 11 หลายเดือนก่อน

      Should I put the negative pins of my sensors and lcd on the same ground of the servo and battery? Or should I put it on another gnd pin?

    • @adamjerozolim800
      @adamjerozolim800 11 หลายเดือนก่อน

      @@blancoffee9444 remember that the Vin pin will have whatever voltage is being used in the barrell jack. if it's a 12v power supply then the Vin pin will also have 12v and that could blow your sensors and LCD

  • @HappyHermitt
    @HappyHermitt ปีที่แล้ว

    I always thought the USB port was for output.

    • @adamjerozolim800
      @adamjerozolim800 11 หลายเดือนก่อน

      the Arduino usb port contains 4 wires. 2 for communication with the computer, and 2 for powering the device (the Arduino). data can travel both ways, but power flows from the computer to the Arduino. this is true even if the Arduino IDE isn't open on your computer. the computer will still power the Arduino to run the last code that was uploaded. the only power output pins on the Arduino are the 5v and 3.3v pins. additionally, the Vin pin is generally used as an input, to power the Arduino. however, if powering the Arduino through the barrel jack, with let's say a 12v power adapter, that same power will be available at the Vin pin and can be used as an output to power another device. the Vin pin and barrel jack are directly connected.

  • @TheBrickagon
    @TheBrickagon ปีที่แล้ว

    You sir provided exactly what I needed, and nowhere else I found this problem addressed as you did... Thank you, i was trying for 2 days to solve this problem :))

    • @adamjerozolim800
      @adamjerozolim800 ปีที่แล้ว

      good luck and glad to help!

    • @TheBrickagon
      @TheBrickagon ปีที่แล้ว

      @@adamjerozolim800 thank you 😁

  • @thealmightybro2573
    @thealmightybro2573 ปีที่แล้ว

    i am working on a project that involves wirelessly controlling 6 mg995 individually using arduino nano on both transmitter and reciever side...so can i follow ur way or is there any more u can suggest..

    • @adamjerozolim800
      @adamjerozolim800 11 หลายเดือนก่อน

      this circuit would be perfect, you would have to do it separately for each of the 6 receiver/servo nanos.

  • @Hybroid
    @Hybroid ปีที่แล้ว

    If i want to power 6 of these what battery should i use? Can i use 2 18650?

    • @adamjerozolim800
      @adamjerozolim800 11 หลายเดือนก่อน

      depends on how active and large your servos are. will all 6 be running at the same time and continuously? then I would recommend a larger capacity battery.

  • @galagatron5319
    @galagatron5319 ปีที่แล้ว

    Hi Adam, I want to program 4 to 6 servos to do stuff individually. I have a servo driver pca9685. Im trying to make something with these motors and a couple of lights and sound. I do not want batteries. I want to be able to plug this thing in the wall. Looks like though I need 2 seperate power supplies. I cant find anything online. Something I buy? Thanks.

    • @adamjerozolim800
      @adamjerozolim800 ปีที่แล้ว

      you should buy a 6v-2amp power supply (about $8 on amazon) and plug it into the Arduino barrel jack. connect the V+ pin from the pca9685 to the Vin pin on the Arduino. the Vin pin on the Arduino has the full power of the barrel jack, allowing the PCA9685 to be powered from your power supply in the barrel jack. this way your entire project can run off of one plug.

  • @mydrouno
    @mydrouno ปีที่แล้ว

    Thank you! Can I power 4 servos off of that battery pk rather than 2?

    • @adamjerozolim800
      @adamjerozolim800 ปีที่แล้ว

      should be ok. if they are running in unison or continuously I would probably upgrade to a 6xAA or a higher output power supply such as Lithium or NiMH rechargeable batteries.

  • @carljoshuacadungog5233
    @carljoshuacadungog5233 ปีที่แล้ว

    Good day sir, we are struggling too in our project involving 2 sg90 micro servo and 2 ultrasonic sensors, i power 2 ultrasonic sensors using sa 1 of the breadboard's rails where the arduino's 5v and gnd pins are connected, while the 2 servo's are connected on the other side, i try using 9v battery pack as an external power supply for the servo's but i saw that it's not enough how much volts and what battery pack or supply should we use instead to run our project smoothly even 1 or both of the servo's are under load or heavy load. P.s. we're making an automatic trash bin which is automatically opening and disinfecting. The disinfection process, we're using a normal alcohol dispenser with nozzle and we're planning to attach 1 servo to it connected with a rope or thin metal wire as it will pull the sprayer down to spray. The another servo is for opening we have no problem with that but the power instead i think.

    • @adamjerozolim800
      @adamjerozolim800 ปีที่แล้ว

      amazing project! you should use 4xAA battery pack just for the servos. the positive should go to the red wires of the servos and the ground should go to Arduino ground. the ground of the servos should also go to Arduino ground. A separate 9V battery should go to Vin and ground on the Arduino board. this should keep everything running nice and smooth.

    • @carljoshuacadungog5233
      @carljoshuacadungog5233 ปีที่แล้ว

      @@adamjerozolim800 Thanks sir we will try it out

    • @carljoshuacadungog5233
      @carljoshuacadungog5233 ปีที่แล้ว

      And regarding the arduino... We've powered it using 9v through its barrel jack its still right?

    • @adamjerozolim800
      @adamjerozolim800 ปีที่แล้ว

      @@carljoshuacadungog5233 yes correct

    • @paisenpaisen
      @paisenpaisen ปีที่แล้ว

      @@adamjerozolim800 hi, i have a similar problem, is it alright if i only use 2 AA batteries?

  • @HaidenMcGrath
    @HaidenMcGrath ปีที่แล้ว

    Hi Adam, I was wondering if there is any benefit to connecting two seperate power supplies on your circuit in the video? I was thinking of using a singular 6v battery pack to power my Arduino Pro Mini (3.3v) and 6v continuous servo. Do you see any problems with that? Thanks

    • @adamjerozolim800
      @adamjerozolim800 ปีที่แล้ว

      when a motor initially turns on there is a brief short circuit, this can draw all the current from the battery and reduce its voltage. Consequently, every time the motors turn on this will cause your Arduino to reset. More advanced batteries, such as LiPo and Li-Ion can output more current than standard off the shelf AA, providing the current for both the Arduino and motors at once. A fresh set of AA will also initially have enough current capacity. So if your motor is only being used sporadically then you might be ok, but if you are powering something continuous, like RC car wheels, from standard AA batteries, the current will quickly drop and the Arduino will start resetting.

    • @tonyblonde7233
      @tonyblonde7233 11 หลายเดือนก่อน

      @@adamjerozolim800 hey, of all the videos I've been watching yours explains it all so well with nice visuals. would be great to see more videos from ya! either way, thanks for making this one!

  • @TheKingOfHeartsIV
    @TheKingOfHeartsIV ปีที่แล้ว

    0:52 R.I.P. HEADPHONE USERS

    • @Andrew-ps9zp
      @Andrew-ps9zp 2 วันที่ผ่านมา

      my eardrums have been ruptured

  • @eplusplus
    @eplusplus ปีที่แล้ว

    Very informative vieo! Thank you! What is that tool called which you drew your circuits on?

    • @kotindernot6425
      @kotindernot6425 ปีที่แล้ว

      I think its Fritzing

    • @adamjerozolim800
      @adamjerozolim800 ปีที่แล้ว

      Fritzing, although it's not free anymore. TinkCAD is a great free option.

  • @herbertattema9890
    @herbertattema9890 2 ปีที่แล้ว

    Just wat i needed, thanks

  • @mikeythemodelingman1
    @mikeythemodelingman1 2 ปีที่แล้ว

    How do I determine how many volts I need from the external power supply if I were to add more servos?

    • @noneof4520
      @noneof4520 ปีที่แล้ว

      To increase the voltage source put them in parallel to each other. You know to know your total load power needed to power your load, if total volts needed is 12 volts, get 12-13v supply. But you will also need to know the current neeeded

    • @AutisticOverflow
      @AutisticOverflow 2 วันที่ผ่านมา

      The necessary voltage is specified in your motor's datasheet. What is important is the current (intensity, represented in Ampères or more likely in mAh - milliampères). The more motors you have, the more current draw.

  • @tankraft9807
    @tankraft9807 2 ปีที่แล้ว

    Hello, Thanks a lot for the video. It helped me a lot. I have a question, Is it possible to increase the number of steps on this motor? If yes how many steps an be increased at a time?

  • @dannyaviv4583
    @dannyaviv4583 3 ปีที่แล้ว

    Adam! thanks for adding great extra content for us