Project June, a 5G radio-controlled vehicle
Back to projects
Personal project

Project June

I built this 5G rover because I wanted a Mars rover, and it streams three live camera feeds, GPS and sensor readings (temperature, humidity, pressure and brightness) to a web console that I drive it from.

Built with
PhotoshopVS CodeOnshapeKiCADESP32PlatformIO

Demo

Overview

I planned two weeks for Project June and it took three. It was rushed and there is a lot I would do differently, but it is still one of the most ambitious things I have built.

The original Project June rover
The first photo of Project June

On board

An ESP32-S3 reads the sensors, drives the motor and sends the telemetry, while three phones on board give the rover its 5G hotspot and its front, left and right camera views. The DC motor runs through a MOSFET motor driver I built, and a 2S3P lithium-ion pack I made from three 2S packs extends the range, while a power bank supplies the ESP32 and the phones.

Parts diagram of Project June: three phones, the ESP32-S3, sensors, motor driver, power bank and battery pack

Ultrasonic sensor

The ultrasonic sensor is mounted at the back, so it tells me how far away any obstacles behind the rover are.

The ultrasonic distance sensor and its console readout

Laser

A laser diode sits on a 3G servo at the front, and I can aim it up to 45° either way from the console.

The laser diode on its servo and its console control

GPS

A Neo8M module gives the rover's live position, which shows up on the console map.

The Neo8M GPS module and the console map

10-axis IMU

One board gives me accelerometer, gyroscope and barometer readings, although I never used its magnetometer.

The 10-axis IMU board and its console readout

Light sensor

The light sensor is a TEMT6000, and because I could not calibrate it, the console shows brightness in four steps: Dark, Ambient, Bright and VBright.

The TEMT6000 light sensor and its console readout

DHT11

The DHT11 measures the ambient temperature and humidity.

The DHT11 temperature and humidity sensor and its console readout

Architecture

This diagram shows the three parts of the system, the rover, the server and the client, and what runs between them.

Architecture diagram: the rover with its sensors and three phones, a server running Mosquitto, a Node.js Socket.IO server and CoTURN, and the client console with an Xbox controller

Video

Each phone sends its camera as its own WebRTC stream, three in total, relayed through a TURN server so the video works over mobile data.

Below is a rebuild of the console with footage from a day run and a night run, and you can select a stage of the signal path or a camera to take a closer look.

Driving consoleRebuilt from the day run
Signal path

Xbox controller. The controller pairs with the web console over Bluetooth, and the console turns stick and trigger input into movement commands that it publishes over MQTT.

Telemetry
  • Latitude1.4614°N
  • Longitude103.8405°E
  • Speed2.0km/h
  • Altitude-12m
  • Temperature30.2°C
  • Humidity65%
  • Satellites21
  • BrightnessVBright
  • GPS fixIrau Dr
Camera feeds
LIVEFront · Phone 1Phone 1 is the main 5G hotspot and the front camera.
Diagram of the live video systemDiagram of the WebRTC stream routing

Control and telemetry

The ESP32 publishes sensor data to an MQTT topic that the client subscribes to, and the client sends movement and other commands back to the ESP32 on a second topic.

Diagram of the control and telemetry system

Three packets

I could not get all the sensor data into one MQTT message and have not worked out why yet, so it goes out as three separate packets at about 10 Hz.

Diagram of the three telemetry packets

Software

This is a simplified flow chart of the code.

Software flow chart, part 1Software flow chart, part 2

Console design

I designed the console in Figma.

Spline 3D

The 3D rover in the console is a Spline model, which moves to the forward view when I push the controller forward and to the reverse view when I pull it back.

The Spline 3D rover model
The Spline model
The view change in the console

Driving it

The video came from over 8 km away and passed through every part of the system, so there was about one second of delay between a controller input and the movement on the live feed. The stream was not always stable either, which made driving hard at times.

Project June on GitHubThe repository holds the console, the WebRTC video, the MQTT telemetry and the ESP32 firmware.
View the code on GitHub
More to explore

Other projects

Personal
OCR Reader with DrumNet, an OCR water meter solution

OCR Reader

A battery-powered water meter reader where a 693K-parameter DrumNet pipeline on an ESP32-S3 reads the drums and reports over LoRaWAN, built on a custom KiCad PCB inside a 3D-printed shell.

Internship
Pip, a cyan desk pet, on the M5Stack Tab5

Pip

A desk pet on an M5Stack Tab5 whose brain is the DeepSeek Harness on my server, so it can drive a browser, build its own apps and watch my other agents.

Internship
Stack-chan with four Unit ToF4M distance sensors on its head

Stack-chan LiDAR

A makeshift LiDAR: four distance sensors on Stack-chan’s head, swept across a room by its servos, with its camera colouring a 3D scan you can explore in the browser.