In this project, the smart mainly has two main functions, and we designed two demo situations to show each of the functions. Demo 1: The emergency braking system The first function is to have the users control the car while the system noticing the surroundings to make sure the car will not hit anything that might damage the car. Basically, the small car was to simulating an ordinary car that is equipped with an auto emergency braking system. The car has three different modes with three types of instruction LEDs. The original is the green mode in which mode the user could control the small car with a computer. The red mode is a mode which the raspberry pi on the small car find that it might hit an object and make a decision to stop the car, in this mode, the LEDs will turn red. The orange mode is the mode between the red mode and the green mode. It appears when the car is stopped and the car is moving backwards for 15 centimetres. Demo 2: The visual identification ...
In this lab section, the research group have prepared for the first demo function which is the emergency braking system. In this function, the car will use the sonar distance sensor as an emergency detector. The sonar distance sensor returns one hundred distance information to the pi and the pi will decide whether it is should stop and prevent hitting. In detail, the research used python to write the program. In this function, the user could control the car as scheduled and the car could avoid the car hit a barrier. We used a while loop constantly and put all the judgement statement inside the loop, which runs following the following logic. The users start the car and control the car by pressing the control keys. The sonar returns distance data by the microsecond. If the data begin to be smaller than 15 centimetres, the car stops automatically and move backwards for 15 centimetres to keep a safe distance and handle the control back to the users. Problems: The sonar dista...