Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are required to walk through the code and make any changes to make it functional + / / int PGMPin = 1 0 ;int

You are required to walk through the code and make any changes to make it functional+//int PGMPin =10;int motorDirectionPin1=6;int motorDirectionPin2=7;int fwdBtn =10;int stopBtn =13;void setup(){// put your setup code here, to run once:pinMode (PWMPin, OUTPUT);pinMode (dir1, INPUT);pinMode (dir2, OUTPUT) ;}void loop (){// put your main code here, to run repeatedly:analogWrite (PGMPin,255);if (digitalRead(fwdBtn == HIGH & digitalRead(stopBtn)== LOW)digitalWrite (dir1, HIGH);digitalWrite (dir2, LOW);}else if (digitalRead(stopBtn)== HIGH && digitalRead(fwdBtn)== HIGH){digitalWrite (motorDirectionPin1, LOW);digitalWrite (motorDirectionPin2, HIGH);}}}
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

How to solve maths problems with examples

Answered: 1 week ago

Question

=+country competitive advantages? Why? Support your point of view.

Answered: 1 week ago