What will happen if we change the Serial.print(Forward) to Serial.print(Stop)? (Arduino) void forward(){ digitalWrite(EN

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

What will happen if we change the Serial.print(Forward) to Serial.print(Stop)? (Arduino) void forward(){ digitalWrite(EN

Post by answerhappygod »

What will happen if we change the Serial.print(Forward) toSerial.print(Stop)? (Arduino)
void forward(){
digitalWrite(ENA,HIGH);//enable L298n A channel
digitalWrite(ENB,HIGH);//enable L298n B channel
digitalWrite(IN1,HIGH); //setIN1 hight level
digitalWrite(IN2,LOW); //set IN2 low level
digitalWrite(IN3,LOW); //set IN3 low level
digitalWrite(IN4,HIGH); //setIN4 hight level
Serial.println("Forward");//send message to serial monitor
}
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply