Team 17 - 5) Electronics and Software

Components:

PID controls:

    We used PD control where kp = 0.2,  kp = 1.4, and we feedback on the encoder reading to get errors, then we got the input PWM we need to control the motor speed. 

Arduino code: