1 / 8

PID Control of a Remote Controlled Car

PID Control of a Remote Controlled Car John J. Noegel Purpose To become familiar with the operation of a handy board and the coding involved in controlling a system. Problem Statement

oshin
Download Presentation

PID Control of a Remote Controlled Car

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PID Control of a Remote Controlled Car John J. Noegel

  2. Purpose • To become familiar with the operation of a handy board and the coding involved in controlling a system.

  3. Problem Statement • To use a Handy board to control a remote control vehicle to follow a wall at a specified distance and follow codes by priority

  4. Test Background • Remote control vehicle with one motor for turning and one for forward and reverse motion • Two IR sensors – One for staying a specified distance from the wall and the other for obstacles • Involve priority coding in the program

  5. PID Programming • Set Point = 228 (desired distance for IR) • Kp = 32, Ki = 2, Kd = 0.1, • ts = 0.001 • c_error = set-y; ( y = analog input of IR) • power = (Kp*c_error)+Ki*(integral)+de_dt*(Kd); • integral = 0.5*(c_error+p_error)*ts; • de_dt = (c_error-p_error)/ts; • motor(1,(int)power); (turn motor)

  6. Final PID Control of System

  7. Conclusions • Attempted to tune PID three times unsuccessfully • Motor unacceptable to program for true PID control • System can be made to operate without constraints of testing, but operation could be much cleaner

  8. Recommendations • Use a system without a 3 position motor (all on right, all on left, or off) • Use a system preferably with position sensitive motor or install an actuator to control position of motor

More Related