Robot car or a Radar

This "little" robot, was built following the robot car, although it is of a much simpler construction, as it only has the system to avoid obstacles by ultrasound and does not have such an elaborate power system, it is only connected to a rechargeable battery 9V.
Over time, I needed to demonstrate to students in the 8th grade how the radar works, through the reflection of sound waves. I launched the challenge to a group of students who were part of a Science Workshop. After doing a lot of research, we found a very good project, but there was a small problem: We had no material available. So, I suggested we use this car for this new project. In this way, depending on the code that was loaded on the Arduino, the system functioned like a robotic car or worked like a radar.
The supports I used can be downloaded from the Thingiverse platform: HC-SR04 support and 9g micro servo support .
The material used was:
-
1 Arduino nano;
-
1 Driver L298N;
-
1 HC-SR04 sensor;
-
1 Micro Servo 9g;
-
1 switch;
-
1 9V battery holder.
The codes that were used can be accessed here. In the case of the schematic, this can be found on the following page: https://easyeda.com/lufer2000/robot_radar. All these components were mounted on a platform - Smart Car 2WD, which is composed of two engines with a gearbox and respective driving wheels, base plate with holes to mount all types of components, screws, freewheel and some connecting wires. In order for the HC-SR04 sensor (ultrasound) and the micro servo 9g to be well fixed, the respective supports were printed on a 3D printer. These supports can be downloaded on the Thingiverse platform: HC-SR04 support and micro servo 9g support.
A very important reminder: It is necessary to check the COM port to which the arduino is connected and correct, if necessary, in the file processing.pde the value of that port. If you don't do that, the program won't work !!!