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

preview_player
Показать описание


0:00 intro
0:11 potentiometers
1:18 build the circuit
2:47 example program - serial printing
4:11 open the serial monitor
4:50 analog to digital converter (ADC)
6:54 control LED brightness with potentiometer
9:48 Arduino map function
11:35 up next

#STEM #sciencebuddies #arduino #electronics #programming
*******************************
Connect with Science Buddies:

Рекомендации по теме
Комментарии
Автор

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

Nova_tvreal
Автор

I say this from my heart. God bless you

Bro_Bubby
Автор

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

Studs_Studio
Автор

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!!

ben-zzrm
Автор

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?

BS-brej
Автор

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

DJBacku
Автор

How do you know what resistance you should put on LED and ground?

nimrik
Автор

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?

Nick-efms
Автор

What's an appropriate value potentiometer in this application? And should I use logarithmic or linear?

andrewswan
Автор

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.

gamerj
Автор

I get 0s on my serial monitor could it be the potentiometer?

flatBauble
Автор

I noticed that the porentiometer isnt able to control more than one LED at a time.
Or is it just me?

ProsperTeni
Автор

When buying a potentiometer it has ohms, yoi dont mention anything about ohms in this video why is that?

streamx
Автор

Useless without explaining the physics concepts pertaining to electricity.

VOXindie