Arduino Tutorial 9- Reading Strings and Numbers (Serial Monitor)

preview_player
Показать описание
In this episode, we will learn how to get user input on the Arduino
from the serial monitor.

--------------------------------------------------------------------
► Get Your First Arduino Starter Kit 👇:
--------------------------------------------------------------------

FOLLOW ME:
--------------------------------------------------------------------

► All content by Enjoy Mechatronics is 100% free. I believe that education should be freely available to everyone.
Рекомендации по теме
Комментарии
Автор

Hi brother.. Nice job.. Thanks so much..
What means this instruction plz:
ترجمة.:
if (text.indexOf("One on")!=-1) // if Relay 1 is on
{
DeleteAllSMS();
RL1_State = "On";
Serial.println("Relay 1 Turned On");
SendSMS("Relay 1 Turned On", PhoneNumber);
digitalWrite(Relay1, HIGH);
// 7-10 characters are for time
if(RL1_Time == 0)
{
RL1_Time = text.substring(7, 10).toInt();
RL1_Time *= 60; // Convert to seconds
if(RL1_Time > 0)
{
RL1_ForcedOff = 1;
SendBuffer = "Relay 1 will remain ON for " + (String)RL1_Time + " seconds";
SendSMS(SendBuffer, PhoneNumber);
}

(haw i can control a timer)

saadelm
Автор

Great, bro ive learned somethings to this video keep it up

J_Creative
welcome to shbcf.ru