Arduino Uno R4 WiFi LESSON 12: Read Analog Voltages on the Arduino

preview_player
Показать описание
Pick your Sunfounder kit up so you get the same results I do:

You can pick up the neat jumper wires I showed in the video here:

You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

In this video I introduce you to the concept of analog voltages on the Arduino Uno R4 Serial Monitor. I show how to read analog voltages using the Arduino. It is important to note you can only read voltages between 0 and 5 volts. Trying to read larger voltages will damage the arduino. Enjoy!

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

Hope I'm not speaking too early but so far you're the only guy that can teach me anything about Arduino on YouTube

robertmckelvey
Автор

I truly love these math lessons. 🤞 Thank you.

qzorn
Автор

Thanks for a good video. A small comment regarding A2. It looks like a hexadecimal number, but it's an integer constant defined by Arduino. Try Serial.println(A2) or hover the mouse pointer over A2 in your code to see its value or definition.
If you want to use hexadecimal values in Arduino, you need to write it as 0xA2.

peterkarlsson
Автор

One of the most important things I've learned in this lesson is at @34:52 . . . who would have thought? Great contents Paul. By the way, I tried the homework hooking up an LED. It worked well BUT, I think I busted the LED when I cranked the potentiometer all the way up to 5V. Nevertheless, I still enjoy all the lessons in your channel. New YouTube subscriber here! I will be joining your Patreon very soon!

iPadChannel
Автор

Sir,
You are giving us your valuable time and energy to teach us. Thanks to your efforts and dedication.

Nowadays the moment you say coffe I also run to kitchen to make a cup of cold coffe.

taurusengineering
Автор

This is by far the best lesson of the updated arduino, it just keeps getting better. Thank you so much for these videos. It's so much easier to learn when the teacher is excited and engaged.

jolenebett
Автор

Note that at ~14:30 in this lesson we are told that A2 is a hexadecimal integer.
While it is true that the hexadecimal value A2 is the same as the decimal value
162 (which is an integer), the A2 in the assignment statement:
int potPin=A2;
is an identifier name; not a hexadecimal constant. In C and C++, a hex
constant is written with a leading 0x (as in int potPin=0xA2). The identifier
A2 in the Arduino IDE is predefined for an Arduino R4 WiFi by something like:
pinsize_t A2=16;
or:
#define A2 16
and has the decimal value 16; not 162.

DONCRAGUN
Автор

Idk how I got here. This is my first time seeing this channel. I've only ever had a basic understanding of technology. Hell 10 years after college I couldn't figure out how to turn a computer on. But in the 10 minutes I've spent here. I know I'll be back. What an amazing teacher! PS will this channel teach me how to become a hacker? Asking for a friend.

xqxxy
Автор

My first thought war to to do pot Voltage=potVal/(1023/5). I don't remember the line art thing until I helped me kids. I enjoy your classes.
They keep my 84 year old sharp.
Thanks

georgestephens
Автор

GREAT LESSON as usual Paul, THANK YOU!

larryplatzek
Автор

great job, i was able to calculate the formula for a .5v to 4.5v 0-100psi pressure transducer to measure my water pressure and shut off water to RO unit when pressure is too low.

TheUnofficialMaker
Автор

Had fun with homework assignment. Only had to pause for a minute or two to remember where 255 came from. Otherwise ... at 85 I am still legend!!!!

noholdorelse
Автор

You should always unplug your Arduino when hooking anything into it

robertmckelvey
Автор

Please shows us in the next episode how to set the pins as inputs or outputs without using pinMode command. Instead, to write directly values in the R7FA4M1's registers.

electronichome
Автор

Worth the 41 minutes for me to learn that volts=(5./1023.)*potVal;

pdaip
Автор

Word to the wise. The link to your amazon kit is going to a 'minima' version. At least for UK audiences ? And NO 10-axis IMU ... A newbie might not be getting what they think ? ... 🇬🇧

doverivermedia
Автор

Yesterday, I had problems getting the comment to stick here. I placed it in Lesson 13, a video that will run on Thursday, April 18, 2024. Paul saw it there, so I will keep it there for now. Here is the test if it will now stick in Lesson 12:

robertschuldenfrei
Автор

Problems getting the comment to stick. Will try again to get the URL in a comment.

robertschuldenfrei
Автор

Just loving the fact that each project relates back to what we have learned, and then we are challenged to apply what we have learned.

Adrian
Автор

Has anyone got their YouTube video to link from these comments?

robertschuldenfrei