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...