Answered step by step
Verified Expert Solution
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 functionalint PGMPin ;int motorDirectionPin;int motorDirectionPin;int fwdBtn ;int stopBtn ;void setup put your setup code here, to run once:pinMode PWMPin OUTPUT;pinMode dir INPUT;pinMode dir OUTPUT ;void loop put your main code here, to run repeatedly:analogWrite PGMPin;if digitalReadfwdBtn HIGH & digitalReadstopBtn LOWdigitalWrite dir HIGH;digitalWrite dir LOW;else if digitalReadstopBtn HIGH && digitalReadfwdBtn HIGHdigitalWrite motorDirectionPin LOW;digitalWrite motorDirectionPin HIGH;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started