Development of photoelectric balanced car based on the linear CCD sensor
1 College of Physics and Electronic Information Engineering, Wenzhou University, Wenzhou, China
2 College of Teacher Education, Wenzhou University, Wenzhou, China
The smart car is designed based on Freescale’s MC9S12XS128 and a linear CCD camera. The linear CCD collects the road information and sends it to MCU through the operational amplifier. The PID control algorithm, the proportional–integral–derivative control algorithm, is adopted synthetically to control the smart car. First, the smart car’s inclination and angular velocity are detect through the accelerometers and gyro sensors, then the PD control algorithm, the proportional–derivative control algorithm, is employed to make the smart car have the ability of two-wheeled self-balancing. Second, the speed of wheel obtained by the encoder is fed back to the MCU by way of pulse signal, then the PI control algorithm, the proportional–integral control algorithm, is employed to make the speed of smart car reach the set point in the shortest possible time and stabilize at the set point. Finally, the PD control algorithm is used to regulate the smart car’s turning angle to make the smart car respond quickly while the smart car is passing the curve path. The smart car can realize the self-balancing control of two wheels and track automatically the black and while lines to march.
© The Authors, published by EDP Sciences, 2016
This is an Open Access article distributed under the terms of the Creative Commons Attribution License 4.0, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.