Mobile robotics · system design

Tinycar

A compact indoor rover designed as a complete ROS 2 learning and demonstration platform: embedded motor control at the edge, perception and autonomy on a laptop.

Robot
Two-wheel differential drive + casters
Embedded
ESP32 · micro-ROS · encoder feedback
ROS 2 host
Laptop · camera · LD06 LiDAR
Illustrated Tinycar system architecture with N20 motors, ESP32 boards, camera, LiDAR, and laptop-hosted ROS 2
System concept illustration · not a photograph of assembled hardware

01 / DESIGN INTENT

A small robot with a full robotics software path.

Tinycar brings together mechanical design, embedded control, sensor integration, and ROS 2 workflows on a scale that can be developed and demonstrated indoors. The chassis CAD is mostly complete. The system architecture below describes the intended integrated build; physical assembly, sensor bring-up, and end-to-end validation are the next demonstrations.

The project keeps the compute split practical: the ESP32 handles time-sensitive motor and encoder work, while the laptop runs ROS 2 perception and autonomy. No Raspberry Pi is planned onboard.

02 / SYSTEM DESIGN

Four parts, one ROS 2 robot

01

MECHANICAL PLATFORM

A small room-scale differential-drive base uses two N20 geared motors with encoder feedback and two caster wheels. The chassis is being designed for 3D printing; most of the CAD design is complete and the next integration target is a Gazebo model.

02

EMBEDDED MOTION CONTROL

One ESP32 is dedicated to the drivetrain: receiving motion commands through micro-ROS, controlling the two motor channels, reading encoder feedback, and providing motion telemetry for ROS 2. An IMU is part of the planned robot state sensing.

03

CAMERA AND RANGE SENSING

A separate AI-Thinker ESP32-CAM is intended to stream camera frames over Wi-Fi for the laptop to consume. The LD06 provides 2D range measurements. For first integration, the simplest path is to connect the LiDAR serial interface to the ROS 2 laptop through a suitable USB-to-UART adapter; a small serial bridge can be considered if the physical layout requires it. The LiDAR is not represented as already connected to the camera board.

04

LAPTOP-HOSTED ROS 2

The laptop is the robot’s main computer. ROS 2 nodes there handle camera ingestion, LiDAR processing, visualization, mapping, localization, and navigation. Keeping these workloads off the ESP32 boards fits the available compute and keeps the embedded responsibilities focused.

03 / DATA FLOW

Keep control local; put autonomy on the laptop.

ROS 2 → micro-ROS → ESP32 motor controlEncoder feedback → odometryESP32-CAM → Wi-Fi video streamLD06 → serial range dataLaptop → mapping / navigation / visualization

For the first bring-up, a USB-to-UART connection from the LD06 to the laptop gives ROS 2 direct access to the sensor stream without coupling it to the camera board. The motor controller can remain a dedicated micro-ROS endpoint. The camera board can publish a lightweight network video stream that the laptop converts into the ROS image interface used by its perception nodes.

04 / MOTION AND SENSING

From wheel feedback to an autonomous indoor test.

The two encoder-equipped drive motors provide the feedback needed for wheel-speed control and odometry. The IMU can complement that estimate. The LD06 supplies planar obstacle and mapping data, while the camera supports visual perception experiments. ROS 2 on the laptop is where these sources can be visualized and brought together for mapping and navigation experiments.

The integrated demonstration brings these pieces into one workflow: model the chassis in Gazebo, bring up embedded velocity control, verify camera and LiDAR streams, inspect the robot and sensor data in RViz, then use the camera and range data together in mapping and navigation experiments.

05 / BUILD SPECIFICATION

What the demonstration covers

01

MECHANICS

3D-designed compact chassis, two N20 encoder motors, two caster wheels.

02

CONTROL

ESP32 motor-control board, micro-ROS communication, encoder feedback and motion telemetry.

03

SENSORS

AI-Thinker ESP32-CAM video stream, LD06 LiDAR, and planned IMU telemetry.

04

ROS 2

Laptop-hosted camera and LiDAR processing, mapping, localization, navigation, and visualization.