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

  Рет қаралды 53,692

Science Buddies

Science Buddies

Күн бұрын

Пікірлер: 39
@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 4 ай бұрын
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
@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 5 ай бұрын
Well explained 👍
@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
@ben-zz2rm
@ben-zz2rm 7 ай бұрын
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 7 ай бұрын
This is a very common misunderstanding, we made a separate video just to explain it! kzbin.info/www/bejne/hIaudWyneriCa5osi=0QTgCqc-OiFZn89-
@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.
@BS-br2ej
@BS-br2ej 4 ай бұрын
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 4 ай бұрын
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 4 ай бұрын
​@@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.
@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
@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!
@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!
@Bahrami12
@Bahrami12 Жыл бұрын
Very useful❤
@38flatBauble
@38flatBauble 11 ай бұрын
I get 0s on my serial monitor could it be the potentiometer?
@Science.Buddies
@Science.Buddies 11 ай бұрын
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
@ProsperTeni
@ProsperTeni 5 ай бұрын
I noticed that the porentiometer isnt able to control more than one LED at a time. Or is it just me?
@RachidRachid-mn9gm
@RachidRachid-mn9gm 7 ай бұрын
Thanks a lot 👌
@streamx2
@streamx2 4 күн бұрын
When buying a potentiometer it has ohms, yoi dont mention anything about ohms in this video why is that?
@Science.Buddies
@Science.Buddies 4 күн бұрын
When used in this configuration, the exact resistance of the potentiometer is not critical. Many starter Arduino kits come with a 10 kilo ohm potentiometer, that is a common size.
@VOXindie
@VOXindie 5 ай бұрын
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 27 күн бұрын
@@irenenganga3203 good
PING Ultrasonic Distance Sensor and Arduino (Lesson #8)
5:14
Science Buddies
Рет қаралды 28 М.
How to Use a Button with an Arduino (Lesson #5)
20:57
Science Buddies
Рет қаралды 100 М.
Yay😃 Let's make a Cute Handbag for me 👜 #diycrafts #shorts
00:33
LearnToon - Learn & Play
Рет қаралды 117 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 11 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 34 МЛН
How to Use a Joystick with Arduino: Wiring and Basic Controls
13:44
Rachel De Barros
Рет қаралды 16 М.
Arduino Tutorial 12: Understanding Potentiometers
28:44
Paul McWhorter
Рет қаралды 329 М.
Fun with Transistors
24:33
HackMakeMod
Рет қаралды 573 М.
How to use the Arduino map function Part 2
6:31
Circuit Crush
Рет қаралды 4,1 М.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
How to Fade an LED with Arduino analogWrite (Lesson #6)
11:13
Science Buddies
Рет қаралды 41 М.
How to Power an Arduino Project (Lesson #19)
13:24
Science Buddies
Рет қаралды 106 М.
How Do Computers Remember?
19:32
Sebastian Lague
Рет қаралды 6 МЛН
Let's build a voltage multiplier!
16:32
Ben Eater
Рет қаралды 2,2 МЛН
Using LCD Displays with Arduino
46:23
DroneBot Workshop
Рет қаралды 1,7 МЛН
Yay😃 Let's make a Cute Handbag for me 👜 #diycrafts #shorts
00:33
LearnToon - Learn & Play
Рет қаралды 117 МЛН