Question: Controller & Sensor Signa processing program void setup ( ) if pinMode ( MOTOR _ PIN, OUTPUT ) ; pinMode ( DIRECTION _ PIN, OUTPUT

Controller & Sensor Signa processing program
void setup() if pinMode(MOTOR_PIN, OUTPUT); pinMode(DIRECTION_PIN, OUTPUT); pinMode (BRAKE_PIN, OUTPUT); pinMode (POTENTIOMETER_PIN, INPUT); pinMode (TACHOMETER_PIN, INPUT); Serial.begin(57600);
// Release the brake digitalWrite(BRAKE_PIN, LOW);
Pold = analogRead(POTENTIOMETER_PIN);
Ptot = Ptot + Pold;
Pold = analogRead(POTENTIOMETER_PIN);
Ptot = Ptot + Pold;
Told =micros();
Pold = analogRead(POTENTIOMETER_PIN);
PI Controller
control =Kp** Enew +Kd**dEdT;
integralE=Ki*(integralE+ Enew*dT*1e-6);
control = control +integralE;
Controller & Sensor Signa processing program
void setup() i pinMode(MOTOR_PIN, OUTPUT); pinMode (DIRECTION_PIN, OUTPUT); pinMode (BRAKE_PIN, OUTPUT); pinMode (POTENTIOMETER_PIN, INPUT); pinMode (TACHOMETER_PIN, INPUT); Serial.begin (57600);
// Release the brake digitalWrite(BRAKE_PIN, LOW);
Pold = analogRead(POTENTIOMETER_PIN);
Ptot = Ptot + Pold;
Pold = analogRead(POTENTIOMETER_PIN);
Ptot = Ptot + Pold;
Told =micros();
Pold = analogRead(POTENTIOMETER_PIN);hardware: Arduino uno , Arduino motor shield, Potentiometer (input), Dc motor (Output), Tachometer (input).
Software: PI controller, Control and Sensor Signal processing program.
Q1: draw a functional diagram using components identified above. Show how they are connected to each other.
Q2:
PI Controller
control =Kp** Enew +Kd**dEdT;
integralE=Ki**(integralE+ Enew*dT*1e-6);
control = control +integralE; Derive the formula of the integration implemented for the PI controller in microcontroller.
 Controller & Sensor Signa processing program void setup() if pinMode(MOTOR_PIN, OUTPUT);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!