How to Use a Potentiometer with Arduino analogRead (Lesson #7)

  Рет қаралды 48,706

Science Buddies

Science Buddies

Күн бұрын

Пікірлер: 36
@Nova_tvreal
@Nova_tvreal 8 ай бұрын
for those who gets stuck on not turning on the LED make surethe resistors is put on the short leg of the LED and the wire plugged on the longer leg of LED or else it doesn’t turn on
@bluecoppervalve
@bluecoppervalve 3 ай бұрын
Just positive and negative terminal ,what’s the diferent?
@Studs_Studio
@Studs_Studio 8 ай бұрын
These lessons are so good! Also i just spent like 10 minutes trying to figure out why my circut and code isnt working. after you showed the code mine looked like it should do the same thing. it did. i just put the resistor in the wrong place XD
@Science.Buddies
@Science.Buddies 8 ай бұрын
We have a "troubleshooting" video earlier in this playlist - many times it's just a single misplaced wire on the breadboard that can prevent things from working.
@Bro_Bubby
@Bro_Bubby Жыл бұрын
I say this from my heart. God bless you
@Bro_Bubby
@Bro_Bubby Жыл бұрын
I'll definitely recommend this channel to anyone
@DJB1ack0u7
@DJB1ack0u7 4 ай бұрын
Can't lie, thought you were going somewhere different with "you might find that strange" when you mentioned the 0-1023 range and that it ends on 1023 instead of 1024 because it starts at 0 instead of 1. Edit: I unpaused and you got into it a little lol
@Underscore_M
@Underscore_M 6 ай бұрын
thanks, needed this for school
@noahhusaunndee3783
@noahhusaunndee3783 4 ай бұрын
Well explained 👍
@picknikbasket
@picknikbasket 2 жыл бұрын
Very useful, thank you!
@Science.Buddies
@Science.Buddies 2 жыл бұрын
You're welcome - make sure to check out the rest of the playlist if you haven't already!
@ben-zz2rm
@ben-zz2rm 6 ай бұрын
Great informative video. Have a question. Always understood that a resistor comes before the led to ensure not too much current passes into the led. Your video shows the resistor after the led. Bit confused!!
@Science.Buddies
@Science.Buddies 6 ай бұрын
This is a very common misunderstanding, we made a separate video just to explain it! kzbin.info/www/bejne/hIaudWyneriCa5osi=0QTgCqc-OiFZn89-
@BS-br2ej
@BS-br2ej 2 ай бұрын
Awesome way to quickly explain things (subscribed)! I've been looking for a button that has discreet steps from, say 1 to 10. Is there such potentiometers, or are they always continuous? I guess I could just make a knob that has discreet levels on top of a potentiometer. The purpose is to have one button do the work of 10 separate buttons. Maybe it doesn't have to be a potentiometer, if there is a simpler analogue knob that writes the given number out?
@Science.Buddies
@Science.Buddies 2 ай бұрын
You could do this in software using the analog potentiometer shown in this video by breaking the readings up into sections using IF statements (if reading is between 0 and 100, between 100 and 200, 200 and 300, and so on). If you want the potentiometer to "click" into discrete positions, a quick Google search shows that you want a potentiometer with "detents": electronics.stackexchange.com/questions/94855/where-to-get-how-to-make-a-potentiometer-with-clicking-steps. We have not tried those ourselves though!
@BS-br2ej
@BS-br2ej 2 ай бұрын
​@@Science.Buddies Potentiometer with detents is exactly what I was looking for and didn't find, thank you! Though, since I don't really want to increase the resistance (or decrease the voltage), I will have to make the potentiometer separate, as in not taking the power for the motor through it. For this use, I'm running just one servo, which I was powering through the arduino 5V pin. If I were to get a read through the potentiometer, I would not get enough voltage, if I understood correctly.
@Nick-ef1ms
@Nick-ef1ms 2 ай бұрын
My potentiometer has 2 pins on one side and 1 pin across which takes up all the space on the breadboard leaving none for the wires. Is there a way to make this work without getting a new potentiometer?
@Science.Buddies
@Science.Buddies 2 ай бұрын
Usually you can put one set of pins in a column on the edge of the breadboard and have room to squeeze wires in on the opposite side, even if one edge of the potentiometer's plastic case is hanging over the edge slightly.
@Bahrami12
@Bahrami12 11 ай бұрын
Very useful❤
@RachidRachid-mn9gm
@RachidRachid-mn9gm 5 ай бұрын
Thanks a lot 👌
@nimrik9007
@nimrik9007 Ай бұрын
How do you know what resistance you should put on LED and ground?
@Science.Buddies
@Science.Buddies Ай бұрын
We have an entire playlist all about that! kzbin.info/www/bejne/aKGrh3ynmN6ZZ5o
@gamerj2873
@gamerj2873 Жыл бұрын
My Potentiometer has pins in a triangle type fashion, i can not get it to work anywhere on the breadboard because its too big for one side, and it cant go across.
@Studs_Studio
@Studs_Studio 8 ай бұрын
do you mean it is not physicly possible to get it across? cause if not then you can just move the wire to thte other side. probably a late comment XD
@andrewswan9103
@andrewswan9103 Жыл бұрын
What's an appropriate value potentiometer in this application? And should I use logarithmic or linear?
@Science.Buddies
@Science.Buddies Жыл бұрын
10 kilo-ohm potentiometers are very common for Arduino projects. Unless you want a nonlinear response when you turn the knob, you want a linear potentiometer.
@andrewswan9103
@andrewswan9103 Жыл бұрын
@@Science.Buddies makes sense, thanks!
@ProsperTeni
@ProsperTeni 4 ай бұрын
I noticed that the porentiometer isnt able to control more than one LED at a time. Or is it just me?
@Nine_883
@Nine_883 9 ай бұрын
Tinkercad needs a Serial Monitor! 😂
@Science.Buddies
@Science.Buddies 9 ай бұрын
Tinkercad does have a simulated serial monitor that you can print to with the serial.print command!
@38flatBauble
@38flatBauble 10 ай бұрын
I get 0s on my serial monitor could it be the potentiometer?
@Science.Buddies
@Science.Buddies 9 ай бұрын
Potentiometers themselves don't usually break, it's more likely that you don't have it wired correctly. Check out our troubleshooting video: kzbin.info/www/bejne/b3ivkohjd6h4h68si=dgBiqHAVIwW6CrWr
@VOXindie
@VOXindie 4 ай бұрын
Useless without explaining the physics concepts pertaining to electricity.
@irenenganga3203
@irenenganga3203 3 ай бұрын
No this is helpful
@irenenganga3203
@irenenganga3203 3 ай бұрын
And your annoying
PING Ultrasonic Distance Sensor and Arduino (Lesson #8)
5:14
Science Buddies
Рет қаралды 25 М.
How to Use a Button with an Arduino (Lesson #5)
20:57
Science Buddies
Рет қаралды 91 М.
Mom had to stand up for the whole family!❤️😍😁
00:39
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 3,1 МЛН
小丑家的感情危机!#小丑#天使#家庭
00:15
家庭搞笑日记
Рет қаралды 38 МЛН
How to Use a Joystick with Arduino: Wiring and Basic Controls
13:44
Rachel De Barros
Рет қаралды 12 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
How to Use a Breadboard
12:21
Science Buddies
Рет қаралды 3,1 МЛН
Arduino Tutorial 12: Understanding Potentiometers
28:44
Paul McWhorter
Рет қаралды 326 М.
How to Fade an LED with Arduino analogWrite (Lesson #6)
11:13
Science Buddies
Рет қаралды 37 М.
How to Power an Arduino Project (Lesson #19)
13:24
Science Buddies
Рет қаралды 95 М.
Control Different LEDs with a Joystick and Arduino
22:22
Rachel De Barros
Рет қаралды 8 М.
Arduino UNO - cheap vs. expensive
10:39
upir
Рет қаралды 17 М.
How to use Rotary Encoder with Arduino
14:44
Mario's Ideas
Рет қаралды 46 М.
Mom had to stand up for the whole family!❤️😍😁
00:39