This controller watches the area all round the truck with radar sensors that report to it over Wi-Fi. It gives the driver a large touchscreen, and it connects the truck to the outside world. It is built and working on the bench, and it will be installed in the truck next.
ILLUSTRATION · ZONES NOT TO SCALE · EXAMPLE TARGETS · DASHED = PORTABLE UNIT
The controller is named after its radar sensors. Three are fixed to the truck: one on the left side, one on the right side, and one on the back facing backwards. A fourth, portable unit runs on its own battery. We put it on the bonnet when we want it, and then the radar watches all round the truck: 360 degrees. The sensors are small 24 GHz millimetre-wave radar units. Each one can follow up to three people or objects at the same time, and it reports where each one is, how far away it is, how fast it moves, and in which direction.
Radar works in complete darkness, in rain and in dust, and it sees through thin plastic covers. It does not need light, so it does not tell anyone outside that they are being watched.
When the truck is parked or we are asleep, the controller watches the zones around the camper. Anyone who comes close raises an alarm. The alarm stays latched, so we can see afterwards that something happened and where.
While driving, the side and rear sensors cover the areas the mirrors cannot show, for example a motorcycle beside the camper body or a person behind the truck when reversing.
In the bush, the same sensors can wake us when an animal walks through the campsite at night. A rare nocturnal animal is worth getting out of bed for.
The first version used simpler sensors that could follow only one target each. One target is not enough when two people walk past together. We replaced them with sensors that follow three targets.

At first the radar sensors were wired directly to the controller. Then the truck got a new MikroTik hAP router, which has Wi-Fi made for small connected devices. To use it, we changed the design. Each radar sensor now has its own small ESP32-S3 processor. The processor reads the radar and sends the results to the controller over the router's Wi-Fi.
There are no signal cables from the sensors to the controller any more. The fixed sensors only need a power cable, and the portable one needs nothing at all. The system has been tested and works.
Which Wi-Fi network a sensor joins is set in the software configuration before the program is loaded into its processor. So the same sensor can be set up to join the truck's router or another Wi-Fi network.
Each station has a name that says where it is: Q1 at the front, Q2 on the left, Q3 on the right and Q4 at the rear. Its position on the truck, its height and the direction it points are entered once on the touchscreen. The controller uses them to put every target in the right place on one map of the whole truck.
Three units mounted high on the truck: left, right and rear. The side units point backwards, 35 degrees off the side of the camper, so they see along the side of the truck and behind it. Each one has a radar board in the domed cover, and a voltage converter and processor in the base. The truck supplies the power.
The same electronics with two rechargeable lithium cells in the base. It runs on its own battery, so it can stand anywhere. On the bonnet it covers the front, the one direction the fixed sensors cannot see.
The controller drives a 10-inch touchscreen in the cab. In Part 1 we described the WinCC SCADA on the truck PC. The touchscreen is its backup. If the truck PC is switched off or not working, we can still see the state of the truck and operate the PLC functions from the touchscreen.
The touchscreen has six pages:





SCREENSHOTS TAKEN WITH THE CONTROLLER'S OWN SCREENSHOT FUNCTION · TAP TO ENLARGE
A button on the touchscreen does not switch anything directly. Like every other device in this series, it sends a request to the PLCs, and the PLCs decide.
The radar controller is also the gateway between the truck and our web dashboard (Part 5). Measurements leave the truck through it, and requests from the dashboard come back in through it.
Remote control is deliberately limited:
The Network page on the touchscreen watches the router, the Wi-Fi access point, every controller on the network and the internet connection. If one part of the network fails, the driver sees which one at a glance.
The controller also takes its time from the suspension controller (Part 2), which reads it from the satellites. Its clock, its logs and the time shown on the web dashboard are therefore always the same as every other controller in the truck.
A controller behind a panel in a truck is difficult to diagnose. You cannot easily connect a laptop and a USB cable to it at the roadside. So every ESP32 controller in Tartaruga, the suspension controller, the radar controller and both CAN bus controllers, has its own diagnostic web page. Any browser on the truck network can open it. No special software and no cable are needed.
Each page shows the same kind of information:

Every firmware we write also prints its version and build date as the very first thing it does after a restart. When we look at a controller, we always know exactly which software is running on it.
Every ESP32 in the truck is fed through a buck-boost converter that holds its supply steady at 3.3 V. During a five-hour mains failure at home, the bench batteries ran flat. As the battery voltage fell, the converter changed from stepping the voltage down to stepping it up, and pulled ever harder on a battery that was already failing. The ESP32 saw a perfect 3.3 V until the very end, so it had no warning. It did not switch off cleanly. It kept running in a half-working state and stopped answering the network, until we switched the power off and on by hand. The diagnostic page showed the cause immediately: reset reason BROWNOUT.
In the truck this cannot happen in the same way. The camper batteries are connected through three contactors, and the Main Control PLC opens them when the battery voltage falls to about 10 V. It does not close them again until the voltage has recovered. The controllers therefore always see a clean power-off and a clean start. On the bench, the fix will come with our battery monitoring project: a supply disconnect with a lockout, and a measurement of the real input voltage that the ESP32 can see.
We wanted the controllers to talk to each other wirelessly as well as over Ethernet. The ESP32-P4 has no built-in radio, and the wireless link we planned turned out not to be supported on it at all. We removed it and put everything on Ethernet.
Single jumper wires on the bench stretch, fall off, and some make contact only one way round. Many faults that looked like software were a bad jumper. We use multi-pin connectors wherever we can (more in Part 4).
A 10-inch display with six pages of graphics does not fit into the chip's internal memory. Getting the graphics library to use the external memory correctly took many attempts, and some settings only took effect when edited by hand in the configuration files.
Fit the controller in its 3D-printed enclosure, mount the touchscreen in the cab, and fit the three fixed sensor units.
A station with two radars set 60 degrees apart watches a half circle. It will still report three targets, chosen by a rule that is not yet decided: the first three seen, the three closest or the three furthest.
A setting for how far each sensor is tilted down, so a sensor mounted high places targets at the correct distance.
Set the zones and alarm rules for parking, driving and camping.
Bring the radar page to the same layout as the other controllers, with one card per sensor showing all three targets.
Next: Part 4 describes the two CAN bus controllers, which listen to the Iveco's own computers.