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

  Рет қаралды 51,804

Science Buddies

Science Buddies

Күн бұрын

Пікірлер: 37
@Nova_tvreal
@Nova_tvreal 9 ай бұрын
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?
@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
@Underscore_M
@Underscore_M 7 ай бұрын
thanks, needed this for school
@DJB1ack0u7
@DJB1ack0u7 5 ай бұрын
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
@Studs_Studio
@Studs_Studio 9 ай бұрын
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 9 ай бұрын
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.
@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!
@noahhusaunndee3783
@noahhusaunndee3783 4 ай бұрын
Well explained 👍
@BS-br2ej
@BS-br2ej 3 ай бұрын
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 3 ай бұрын
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 3 ай бұрын
​@@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.
@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-
@Bahrami12
@Bahrami12 Жыл бұрын
Very useful❤
@Nick-ef1ms
@Nick-ef1ms 3 ай бұрын
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 3 ай бұрын
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.
@RachidRachid-mn9gm
@RachidRachid-mn9gm 6 ай бұрын
Thanks a lot 👌
@nimrik9007
@nimrik9007 2 ай бұрын
How do you know what resistance you should put on LED and ground?
@Science.Buddies
@Science.Buddies 2 ай бұрын
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 9 ай бұрын
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!
@Nine_883
@Nine_883 10 ай бұрын
Tinkercad needs a Serial Monitor! 😂
@Science.Buddies
@Science.Buddies 10 ай бұрын
Tinkercad does have a simulated serial monitor that you can print to with the serial.print command!
@ProsperTeni
@ProsperTeni 5 ай бұрын
I noticed that the porentiometer isnt able to control more than one LED at a time. Or is it just me?
@38flatBauble
@38flatBauble 10 ай бұрын
I get 0s on my serial monitor could it be the potentiometer?
@Science.Buddies
@Science.Buddies 10 ай бұрын
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 4 ай бұрын
No this is helpful
@irenenganga3203
@irenenganga3203 4 ай бұрын
And your annoying
@GamingCat-ou7jc
@GamingCat-ou7jc 15 күн бұрын
@@irenenganga3203 good
PING Ultrasonic Distance Sensor and Arduino (Lesson #8)
5:14
Science Buddies
Рет қаралды 27 М.
Arduino Tutorial 12: Understanding Potentiometers
28:44
Paul McWhorter
Рет қаралды 328 М.
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 79 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 11 МЛН
How to Fade an LED with Arduino analogWrite (Lesson #6)
11:13
Science Buddies
Рет қаралды 39 М.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
I Made The Ultimate Cheating Device
9:39
ChromaLock
Рет қаралды 1,4 МЛН
Using Servo Motors with Arduino
43:06
DroneBot Workshop
Рет қаралды 1,4 МЛН
PID Balance+Ball | full explanation & tuning
13:13
Electronoobs
Рет қаралды 759 М.
How to Use Millis to Master Arduino Multi-tasking
50:17
Rachel De Barros
Рет қаралды 59 М.
How to Use a Button with an Arduino (Lesson #5)
20:57
Science Buddies
Рет қаралды 97 М.
How to Use a Joystick with Arduino: Wiring and Basic Controls
13:44
Rachel De Barros
Рет қаралды 14 М.
Fun with Transistors
24:33
HackMakeMod
Рет қаралды 531 М.
Breadboarding tips
20:16
Ben Eater
Рет қаралды 443 М.
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 79 МЛН