You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This class will represent a single motor. It will send data over three pins to the motor driver. It should have a constructor that takes the numbers (int) of the three pins as arguments and stores them. Those three pins are:
Forward
Backward
PWM
The motor has four modes, depending on which of the forward and backward pins are high/low:
Forward
Backward
Mode
LOW
LOW
Coast
HIGH
LOW
Forward
LOW
HIGH
Backward
HIGH
HIGH
Brake
The PWM pin controls how fast the motor turns when it's in the forward or backward mode.
This class will represent a single motor. It will send data over three pins to the motor driver. It should have a constructor that takes the numbers (int) of the three pins as arguments and stores them. Those three pins are:
The motor has four modes, depending on which of the forward and backward pins are high/low:
The PWM pin controls how fast the motor turns when it's in the forward or backward mode.
Needed Arduino functions:
pinMode()
digitalWrite() (for the forward and backward pins)
analogWrite() (for the PWM pin)
The class should have the following public functions
The text was updated successfully, but these errors were encountered: