Embedded Systems
IoT
Robotics

Robotic platform integration

Dash Rover — IoT-Based Smart Robotic Vehicle

An ESP32-S3 camera and Makeblock mBot prototype combining Wi-Fi browser control, UART movement commands and ultrasonic sensing on mCore Port 3.

Owner-supplied photograph: ESP32-S3 camera board, Makeblock mBot chassis, front ultrasonic module and separately powered camera setup. This is the actual prototype, not the concept artwork.

Chathuranga Polkotuwa

Student engineering project · Extended technical presentation

ESP32-S3

Camera + Wi-Fi

mBot / mCore

Robot platform

Port 3

Ultrasonic connection

Prototype documentation, not a live rover connection. Results are presentation-reported. Code snippets and safety thresholds are teaching examples; autonomous obstacle avoidance and a verified watchdog remain future work.

Project idea and hardware

DASH Rover is Chathuranga Polkotuwa’s student integration project: an ESP32-S3 camera board connects Wi-Fi video and browser-driven commands to an existing Makeblock mBot / mCore robot. The goal was to observe the rover remotely, issue movement commands and read distance information—not to build the chassis from scratch.

PartResponsibilityDocumented connection / supply
ESP32-S3 camera boardWi-Fi, camera capture and command bridgeSeparate power bank
Makeblock mBot / mCoreWheel motors and robot-side command handlingSeparate 6 × AA supply
Ultrasonic moduleDistance measurementsmCore Port 3
Serial linkTransfers movement characters between controllersExact TX/RX pin map not supplied
Browser interfaceDirection controls and camera-view workflowDASH Rover web app

Board identity matters. The opening concept artwork uses generic ESP32-CAM labels, while the technical slides specify ESP32-S3. The supplied real photograph visibly shows an ESP32-S3 camera board on the mBot. The artwork is not a wiring reference or an authentic dashboard capture.

Electrical precautions: establish a common signal ground and verify UART voltage levels before connecting boards. Separate supplies do not automatically make signal levels compatible. A complete pin-level schematic and level-shifter details were not supplied. Test wheels with the rover supported off the ground and keep a physical power-off method accessible.

Architecture and data paths

The system has distinct control, video and sensing responsibilities. A browser action reaches the ESP32 through the deployed network path; the ESP32 sends a serial character to mCore, which controls the motors. Camera frames take a separate path back toward the viewer. The ultrasonic module is read by mCore.

The presentation’s architecture is functional, not a full network specification. Actual internet access, video routing and responsiveness depend on the deployed application and device configuration. An available web page does not prove the rover is connected.

The presentation also describes the public app’s owner sign-in, paired-device key and outbound cloud connection, avoiding home-router port forwarding. These are presentation-reported design descriptions—not a security audit or independently verified device connection. Never publish device keys or Wi-Fi credentials.

Control, video and sensing paths

  1. Browser / Wi-Fi

    Movement request through the deployed app and device connection

  2. ESP32-S3 camera

    Network command handling, video capture and serial output

  3. mCore / mBot

    UART command receiver, motor driver and ultrasonic Port 3

Drive: browser → ESP32 → serial character → mCore → wheels

View: camera frames → deployed streaming path → browser

Redrawn from slides 4 and 13–14. Functional paths, not a verified network topology or performance chart.

Two supplies, one signal reference

Power bank

ESP32-S3 camera board

6 × AA supply

mCore and wheel motors

ESP32 UART ⇄ mCore · common ground · check signal levels

Source: slides 3 and 14. Conceptual power/signal chart only; exact pins, voltages and level shifting are not documented.
Concept illustration from presentation slide 1—not a photograph of the build, an authentic dashboard screenshot or a pin-level wiring diagram. Generic ESP32-CAM labels differ from the documented ESP32-S3 prototype.

Movement and serial commands

A compact command protocol lets a web-connected controller reuse the robot’s motor hardware. Four direction characters are documented in the project: F forward, B backward, L left and R right. S is a suggested stop addition, not confirmed original firmware behavior.

// Direction commands used in the rover project
F  // forward
B  // backward
L  // turn left
R  // turn right
06
// Example command framing
// One character is sent for each action.
// A stop command is recommended on release.
S  // suggested stop command

Step 1 — Validate on the ESP32

The teaching bridge allows only F/B/L/R and writes one byte to Serial1. For example, a forward request results in the character F; a request containing X is ignored by this snippet. The example uses a 115200 debug console and a 9600 serial link, but these are illustrative settings rather than verified build values. Configure actual UART pins explicitly for the board.

// Illustrative ESP32-side sketch
#include <Arduino.h>
03
void setup() {
    Serial.begin(115200);      // debug console
    Serial1.begin(9600);       // link to mCore
}
08
void sendDriveCommand(char command) {
    if (command == 'F' || command == 'B' ||
        command == 'L' || command == 'R') {
        Serial1.write(command);
    }
}
15
void loop() {
    // Get command from network handler
    // and pass it to sendDriveCommand().
}

Step 2 — Decode on mCore

Serial.available() checks for a waiting byte; Serial.read() receives it. The switch selects a motor helper. The default branch stops for unknown characters, but the helper definitions and network handler are placeholders. This example does not add a communications watchdog.

// Illustrative mCore-side logic
void loop() {
    if (Serial.available() > 0) {
        char cmd = Serial.read();
        switch (cmd) {
            case 'F': moveForward(); break;
            case 'B': moveBackward(); break;
            case 'L': turnLeft();     break;
            case 'R': turnRight();  break;
            default: stopMotors(); break;
            }
            }
}
14
// moveForward / moveBackward / turnLeft /
// turnRight / stopMotors are placeholders.

Step 3 — Translate direction into motor outputs

The Makeblock-style example binds motors to M1/M2 and runs them with opposite signs for forward travel. Mirrored wheel mounting explains the opposite signs; reverse swaps those signs. The speed value of 110 is an example, not a measured vehicle speed. Left/right turning implementations are not included.

// Example API pattern, not project source
#include <MeMCore.h>
MeDCMotor leftMotor(M1);
MeDCMotor rightMotor(M2);
const int SPEED = 110;

void moveForward() {
    leftMotor.run(-SPEED);
    rightMotor.run(SPEED);
}
void moveBackward() {
    leftMotor.run(SPEED);
    rightMotor.run(-SPEED);
}
void stopMotors() {
    leftMotor.stop();
    rightMotor.stop();
}

// Adjust signs for your chassis orientation

All code here is illustrative teaching code supplied in slides 15–24, not an export of the working firmware. Verify library versions, motor orientation, UART pins, framing and supply levels before adapting it. These separate snippets are not a complete combined sketch.

Documented movement vocabulary

F
Forward
B
Backward
L
Turn left
R
Turn right
Slides 5 and 15. S / stop and message framing are proposed additions, not confirmed original protocol behavior.

Distance sensing and proposed avoidance

The mBot ultrasonic module connects at Port 3. It emits a sound pulse and measures the reflected echo; the round-trip time is converted to an estimated distance. The Makeblock library’s distanceCm() performs this conversion in the example.

// Simplified Makeblock library example
#include <MeMCore.h>
MeUltrasonicSensor sonar(PORT_3);
04
void setup() {
    Serial.begin(9600);
}
08
void loop() {
    double distanceCm = sonar.distanceCm();
    Serial.print("Distance (cm): ");
    Serial.println(distanceCm);
    delay(100);
}
15
// Check valid range and sensor behavior
// before using readings for motor control.

The sketch prints a reading approximately every 100 ms because of its illustrative delay. This does not establish the original rover’s sensing rate or accuracy. Validate objects at several known ruler distances, including angled and absorbent targets; reject invalid or out-of-range readings before using them for motion decisions.

Distance sensing was integrated; fully autonomous obstacle avoidance is not claimed as completed. The example below stops when a valid positive reading is less than 20 cm. That threshold is illustrative and needs calibration against speed, sensing behavior and stopping distance.

// Future feature – not claimed as implemented
const float STOP_CM = 20.0; // example only
if (distanceCm > 0 && distanceCm < STOP_CM) {
    stopMotors();
    // optionally notify web interface
} else {
    // continue with allowed drive command
}

The snippet’s else branch does not make zero or invalid readings safe. A robust design should treat sensor faults explicitly and test stopping behavior rather than continuing blindly.

Proposed obstacle-safety decision

  1. 01

    Read and validate the ultrasonic measurement

  2. 02

    Compare distance against a calibrated stopping threshold

  3. 03

    Obstacle nearby → stop / warn; sensor invalid → defined safe response

Future-design chart from slide 20, with explicit invalid-reading handling. The 20 cm code example is not a calibrated build threshold.

Camera streaming and mobile viewing

The presentation reports successful ESP32 camera streaming in PC testing, with slower or less responsive phone viewing requiring further tuning. This website has not independently run those hardware tests.

// ESP32 camera code outline (not complete)
#include "esp_camera.h"
03
void startCamera() {
    camera_config_t config = {};
    // Configure pin mapping for the
    // actual ESP32-S3 camera board.
    // Set frame size, JPEG mode and buffers.
    esp_err_t result = esp_camera_init(&config);
    if (result != ESP_OK) {
        Serial.println("Camera initialization failed");
        return;
    }
    // Start a video / frame server here.
}
16
// Camera pin map is board-specific.

The camera outline creates a configuration, initializes the driver and checks the result. It intentionally omits the board-specific pin map, frame settings, buffers and stream server. An empty configuration is not ready-to-run firmware.

For reproduction, first confirm the correct ESP32-S3 camera model and pin mapping, then view locally on a computer before testing a phone. Investigate JPEG quality, frame dimensions, frame rate, memory availability, Wi-Fi signal and the actual network path. Reducing frame size may help, but no latency, FPS or range measurement was supplied.

Web controls and stale-command safety

A mobile-oriented control interface was created with Lovable. Its direction controls, owner sign-in and device-pairing workflow are described in the presentation. The external demo is a separate application; physical movement and video require the real rover to be connected.

// Illustrative JavaScript UI logic
async function sendDirection(direction) {
    // Backend route is only an example.
    await fetch('/api/drive', {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({ direction })
    });
}
10
// In a control button's event handler:
// onPointerDown -> sendDirection('F')
// onPointerUp    -> sendDirection('S')
// S = proposed stop command.

In this teaching example, pointer-down requests F and pointer-up requests S. /api/drive is a placeholder endpoint—not a route provided by EMBEDLIX or a verified DASH Rover API. The actual application must enforce authorization and paired-device access. Consider pointer cancellation, window focus loss and disconnected devices as well as normal release.

Suggested firmware-side watchdog

A release event alone is insufficient: the connection can fail before the stop message arrives. The timeout example tracks the last valid command and stops when it becomes stale.

// Example design; not original source code
unsigned long lastCommandMs = 0;
const unsigned long TIMEOUT_MS = 700;
04
void onValidDriveCommand(char c) {
    lastCommandMs = millis();
    applyDriveCommand(c);
}
09
void loop() {
    receiveCommands();
    if (millis() - lastCommandMs > TIMEOUT_MS) {
        stopMotors();
    }
}
16
// The live website states commands expire
// in under one second; 700 ms is illustrative.

The presentation cites the public app’s under-one-second command-expiry description (viewed 8 November 2026); 700 ms is an illustrative firmware value, not a confirmed deployed setting. applyDriveCommand() and receiveCommands() remain placeholders. A production design must ensure sensor or camera work cannot block the safety check and must define a safe startup state.

Build workflow and integration test plan

The reported project workflow was: prepare hardware, test motor commands, integrate the ultrasonic module, configure the camera and verify on PC, build the web application, then check end-to-end integration.

For reproduction, separate tests into small observable steps: confirm wiring and power → test one motor → verify UART → read distance → initialize camera → inspect browser video → integrate directional controls → test disconnection handling.

TestProcedureRecord to collect
Motor commandsSend F/B/L/R with wheels safely liftedActual wheel direction and stop behavior
Serial linkSend each character before adding web commandsReceived bytes and corruption / framing errors
UltrasonicCompare readings with ruler positionsReference distance, reported distance and error
VideoCompare laptop and phone on Wi-FiFrame rate, delay, stability and configuration
Wi-Fi dropSafely interrupt communication during a controlled testWhether and when the rover stops
Web controllerTest touch press, release and cancellationCommand delivery and mobile interaction

This is a proposed test plan, not a dated log or a set of completed measurements. No synthetic performance chart or pass rate is presented.

Reproduction sequence

  1. 01

    Confirm wiring and power

  2. 02

    Test each motor safely

  3. 03

    Verify UART commands

  4. 04

    Read ultrasonic distance

  5. 05

    Initialize the camera

  6. 06

    Check browser video

  7. 07

    Integrate direction controls

  8. 08

    Test disconnection safely

Instructional sequence from slide 29—not a dated experiment log or a completed-test score.

Results and technical limitations

Reported progress

  • ESP32-S3 camera and Makeblock mBot integration.
  • Serial F/B/L/R movement control.
  • Ultrasonic sensing on Port 3.
  • Camera streaming tested successfully on a PC.
  • Smartphone-oriented DASH Rover web interface and embedded/web integration.

Challenges that remain

  • Mobile streaming could be slow; camera and network settings need further tuning.
  • Separate power supplies require stable wiring, suitable signal voltage levels and a shared signal reference.
  • Camera work, distance sensing and command handling must coexist without delaying motion-safety checks.
  • Interface availability alone does not confirm a paired device is online or a command reached the motors.

These are owner-supplied presentation results, not independently reproduced hardware outcomes. Exact firmware, a final wiring schematic, calibration records and test logs were not supplied. No measured speed, range, latency, battery runtime or obstacle-detection accuracy is claimed.

Skills and future development

The project demonstrates integration across Arduino C/C++, UART commands, camera drivers, ultrasonic sensing, Wi-Fi, mobile web design and robot hardware debugging. A key lesson is to test each layer separately before relying on the combined remote-control workflow.

Future improvements—not completed features:

  • Calibrated autonomous obstacle avoidance.
  • Verified safe stop, link watchdog and reconnection behavior.
  • Battery status, telemetry and motor-speed control.
  • Laptop/phone video benchmarks with recorded settings.
  • A complete pin-level wiring schematic and reproducible build documentation.

The next step is to turn a working student prototype into a measurable, robust robotic system without treating illustrative code as verified implementation.

Original project material

Based on the supplied 30-slide DASH Rover Extended Technical Presentation and actual prototype photograph. Slides 1–12 introduce the project; slides 13–30 expand the technical explanation with explicitly illustrative code, test plans and future development. No original firmware or measured performance dataset was included.

Download technical presentation (30 slides)
All projects