Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб ARDUINO Tutorial 13 Read data from в хорошем качестве

ARDUINO Tutorial 13 Read data from 3 года назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса ClipSaver.ru



ARDUINO Tutorial 13 Read data from

ARDUINO Tutorial 13 Read data from the #Serial Monitor to #convert #Fahrenheit to #Celsius easily & the #ASCII table explained. #metricmakessense #temperatureconversion #serialmonitor In todays, video all about interacting with Arduino and how to read data from the serial monitor so let’s get started now. So You want to be able to convert Degrees Celsius into Fahrenheit like this? Stay tune as First We have to think of what We have learned in Our tutorials so far. You can see here I already typed a simple sketch To save Us time, know that We need to do 3 things for this to work and they are, ASK, WAIT, READ. We have to show Our question in the serial monitor. We do this by Using STRING like so. We do that when We use a sentence. Then We call Our variable MSG for message, You can input whatever You wish Here but for Today We will says "Please enter Your number" So far We have ASK so 1 only. Then We have In the Void Set Up The “SERIAL.BIGIN” with the baud rate set at 9600. We now have to Wait. So We’re going to WAIT until We get something from the Arduino and We do this with the “VOID LOOP” here. But first We display Our message with this "SERIAL.println" which is going to ASK Our MSG to the User. Back to Our “WHILE LOOP” We have “SERIAL. available IS equals equal 0“ Remember in a conditional We have to use 2 equal sign. For more info You may wish to look into the Understanding IF statements 10K Tech 101 Electronics (BASIC) Video. Available here, is a serial class function that checks and WAIT to see if there's anything sent, if We haven't it will just keep looking and stay on this until it gets something from the User. We don't put anything in here as the purpose is just to hang Your program until there is data, then We will drop out of the while loop. So far We have ASK and We are WAITING now. Once We send something it is read in this variable. We do that with the "SERIAL.read" it is going to read what input was sent, then, We echo this with “SERIAL. print line “as a feedback to the user. We send this, open the Serial Monitor, Input a 1 so We should get a 1 back. WHAT? We have a 49, Why? We are not getting the same numbers back and Our problem lies in data types We expect VS. the one We are Using. We refer to the ASCII table Ascii Table - ASCII character codes and html, octal, hex and decimal chart conversion it stand for American Standard Code for Information Interchange. This table show the different types of data and their relations. We see We are sending a “CHAR” of 0 or 1, You can see that the decimal representation of 0 is 48 the numbers that We are getting. Now We know what Our problem is, We are sending this 0 as an integer when it's not an integer but “CHAR” that We are sending. A “CHAR” is a byte of data, it's different from an integer. To handle the conversion for the right Output. If We send a 1 it has a decimal value of 49, subtract the decimal value of 0 which is 48 We'll get a 1 back. This fixes Our problem.”” “”Let's keep this code and modify it to blink the LED without programing it how many times to blink I want the user to select how many times to blink the LED. We change The Question for the User to “ How many Blinks do You want?”” “”We are going convert Degrees Celsius to Fahrenheit. To convert degrees Celsius to Fahrenheit : 30∘C×1.8+32=86∘F To convert degrees Fahrenheit to Celsius : First subtract 32∘ then multiply by 0.555666 To convert degrees Celsius to Kelvin : 30°C + 273.15 = 303.15K To convert degrees Kelvin to Celsius : 303.15K − 273.15 = 30°C Now let me know if You wish me to give You guys a challenge to solve with the answer on the next video? Link to Sites: Arduino getting started with serial monitor: How to use the Serial Monitor with the Arduino IDE 2.0 | Arduino SERIAL - Arduino Reference: Serial - Arduino Reference Arduino - ParseInt: https://www.arduino.cc/en/Reference/p... 10kTech: https://sites.google.com/view/10ktech You guys can help me out over at PATREON: and that will keep this content coming:   / 10ktech   Link to My Most Watched Video: Recover You r lost data With DISK DRILL even with the free Version    • Recover Your lost datas With DISK DRI...   I find the Best Calculator Ever & it is free.    • I find the Best Calculator Ever & it ...   How to Change from Microsoft Edge to Google Search Instead (UPDATED)    • How to Change from Microsoft Edge to ...   Link to the other CYBERPUNCK 2077 Video:    • never-before-seen CYBERPUNK 2077 Game...   Feel Free to leave a comment, Please, or a remark maybe even a request or question in the comment section bellow may You have any, and, If You LIKE this video, please do HIT the SUSCRIBE Button and, OR, the bell Icon. 😊Your 1 Subscription to My Channel Can Make My Day 😊 • PLEASE• HELP ME GET TO 1000 SUBSCRIBERS: THANKS a MILLION for YouR time.

Comments