VideoControl: Wi-Fi robot car with camera

Two phones and one app. One phone rides on the robot, films and drives the Arduino. The other is your remote with live video.

Which phone are you setting up?

VideoControl controller screen with two joysticks, the Play button and the robot buttons
Robot Head screen showing the phone's IP address, port 5343, the Arduino module card and the activity log

How it works

Install VideoControl on both phones and choose a different mode on each. They talk over Wi-Fi; the robot phone passes your commands to the Arduino over Bluetooth.

  1. ControllerShows the robot's video. Joysticks and buttons send commands.
  2. Robot HeadSends the camera video, plays sounds, turns on the light.
  3. ArduinoDrives the wheels and turns the camera head.
  • No Arduino yet? Use the two phones as a Wi-Fi security camera: set up Robot Head and Controller and skip the Arduino part.
  • Set up the Robot Head phone first: it shows the address the controller needs.

What you need

  • Two Android phonesAndroid 7.0 or newer, on the same Wi-Fi. The robot phone needs a camera and Bluetooth.
  • VideoControl on bothFree on Google Play.
  • Arduino Uno or NanoWith the VideoControl sketch, see below.
  • HC-05 or HC-06 moduleClassic Bluetooth, 9600 baud.
  • L293D motor driverAnd two DC motors with gearboxes.
  • Battery 7–12 VFor the motors and the Arduino. The phone uses its own battery.
  • A chassisAn old RC car works well, or build your own.
  • Camera headOptional: 28BYJ-48 stepper with ULN2003 board, to turn the phone left and right.

Set up the Controller phone

  1. 1

    Choose Controller

    Open VideoControl and tap Controller. The app remembers your choice; to change it later go to Settings › Change mode.

    Choose mode screen with the Controller and Robot Head cards
  2. 2

    Enter the robot's address

    Tap the gear to open Settings, then Address IP internal, and type the IP shown on the Robot Head phone, for example 192.168.1.35.

    • Leave IP external off while both phones are on the same Wi-Fi.
    • Port is 5343 on both phones unless you change it.
    • Video quality: choose Low or Medium if the video stutters.
    IP settings: IP external switch, Address IP external, Address IP internal and Port
  3. 3

    Start the video

    Go back and tap the big Play button. The first time, the robot phone asks whether to allow this controller; tap Allow there. The video appears in a few seconds.

    When the robot is ready, tap Connect (chain button) so the robot phone connects to the Arduino.

    Controller screen before the video starts, with the Play button in the middle

The controls

The numbers on the screenshot match the list below. Letters in quotes are what the Arduino receives.

Controller screen with numbered markers on each control
  1. 1
    Left joystick: driveForward "A", right "B", left "C", back "E". Let go to stop: "D".
  2. 2
    Right joystick: camera headLeft "F" and right "Q" turn the head step by step. Up "Y" faces it forward, down "V" faces it back. Let go: "H".
  3. 3
    PlayStarts the video from the robot's camera.
  4. 4
    LightTurns the robot phone's flashlight on and off.
  5. 5
    BluetoothTurns Bluetooth on or off on the robot phone.
  6. 6
    ConnectConnects the robot phone to the Arduino module.
  7. 7
    RotateRotates the video if the robot phone is mounted upright.
  8. 8
    Switch cameraBack or front camera of the robot phone.
  9. 9
    SettingsRobot address, port, video quality, sounds and Premium.
  10. 10
    InstructionsHelp pages inside the app, and the Arduino sketch to save or share.
  11. 11
    A1, A2, A3Send "O", "P" and "R". Free for your own Arduino code.
  12. 12
    Robot batteryBattery level of the robot phone.
  • Turn on Settings › Sounds to add police, monkey and cat sound buttons. The sounds play on the robot phone.
  • The robot stops by itself if the controller goes silent, for example when you switch apps.

Drive from outside your home

Away from your Wi-Fi, the controller reaches the robot through the internet:

  • In your router, forward UDP port 5343 to the robot phone's IP address.
  • On the controller, enter your home's public IP in Settings › Address IP external and turn on IP external.
  • Give the robot phone a fixed IP in the router, so the forwarding keeps working.

Set up the Robot Head phone

  1. 1

    Choose Robot Head

    On the phone that goes on the robot, open VideoControl and tap Robot Head. Allow the camera and Nearby devices (Bluetooth) when Android asks.

    Choose mode screen with the Controller and Robot Head cards
  2. 2

    Note the IP address

    The screen shows the phone's address under Enter this IP on the controller phone, and the port. Type it on the controller.

    If two addresses are shown, use the one that starts like your home network, usually 192.168.

    Robot Head screen with the IP address, port 5343, Waiting for the controller and the activity log
  3. 3

    Choose the Arduino module

    Power the robot, then tap Choose device. Pick your HC-05 or HC-06 under Paired devices.

    Not in the list? Tap Scan and tap the module to pair it. The PIN is usually 1234 or 0000. Then tap Connect.

    Arduino Bluetooth module screen with Paired devices, Nearby devices, Back and Scan
  4. 4

    Allow the controller

    When the controller taps Play for the first time, the robot asks Allow this controller? Tap Allow. Next time it connects straight away.

    Only allow phones you know. Forget controllers removes every allowed phone.

    Allow this controller dialog with Refuse and Allow buttons
  • The Activity log shows what happens: controller connected, video on or off, Arduino connected.
  • Fix the phone firmly, with the back camera looking forward. Use Rotate on the controller if it stands upright.
  • Video uses a lot of battery: start with a full phone or add a small power bank.
  • No ads ever appear on the Robot Head phone.

Build the Arduino part

The Arduino reads one letter at a time from the Bluetooth module and drives the motors. The sketch is ready to use.

  1. 1

    Get the sketch

    Download it here, or get it from the app: Instructions › How to load sketch to Arduino, then Save sketch or Share sketch.

    Download videorobot_v2.zip

    How to load sketch to Arduino page with Save sketch and Share sketch buttons
  2. 2

    Upload it to the Arduino

    Unzip it and open videorobot_v2.ino in the Arduino IDE. Choose your board in Tools › Board and its port in Tools › Port, then click Upload.

    • Nano clones: if the upload fails, choose Tools › Processor › ATmega328P (Old Bootloader).
    • The module uses pins 5 and 6, so it can stay connected while you upload.
  3. 3

    Wire it

    Connect the parts as in the diagram below. Join every GND together.

Wiring

Bluetooth module

TXDD5
RXD (through 1k + 2k divider)D6
VCC5V
GNDGND

L293D motor driver

EN1 and EN2 (pins 1, 9)D4
IN1, IN2 (pins 2, 7): motor 1D9 D10
IN3, IN4 (pins 10, 15): motor 2D11 D12
VSS (pin 16)5V
VS (pin 8)Battery +

Camera head (ULN2003)

IN1, IN2D8 D7
IN3, IN4D3 D2
+ and −5V, GND
  • Motor 1 is on L293D outputs 1–2 (pins 3, 6), motor 2 on outputs 3–4 (pins 11, 14).
  • Robot goes back when you push forward? Swap the two wires of both motors. Turns the wrong way? Swap the wires of one motor.
  • The camera head makes one turn in 2048 steps; the sketch remembers where "forward" is.

Commands the Arduino receives

Each command is one letter at 9600 baud. Use the free letters for your own extras, such as a horn or LEDs.

Wheels (left joystick)

ForwardA
RightB
LeftC
BackE
StopD

Camera head (right joystick)

Step left / rightF Q
Face forwardY
Face backV
Release motorH

Free for your code

A1O
A2P
A3R

Video instructions

These videos show an older version of the apps, when the robot used a separate VideoRobot app. Today VideoControl does both jobs, but the robot, the parts and the wiring are the same.

Free and Premium

Everything in this guide works in the free version.

  • The free controller shows a small banner over the video, and sometimes a full-screen ad when you leave Settings or Instructions. Never while you drive, and never on the robot phone.
  • Premium removes all ads with a one-time purchase: Settings › Premium.
  • In Europe and the UK, the app asks for your ad choice once. Change it any time in Settings › Privacy & ads.

If something doesn't work

The robot phone shows "Not connected to Wi-Fi"

Connect the robot phone to Wi-Fi; mobile data is not enough. Then tap Refresh on the Robot Head screen.

I tap Play but no video appears

Check that both phones are on the same Wi-Fi, that the IP in Address IP internal is the one on the robot screen, and that the port is the same on both.

Keep the Robot Head screen open, and allow the camera on the robot phone. Guest networks often block phones from seeing each other.

I tapped Refuse by mistake

Close the app on the robot phone and open it again, then tap Play on the controller. The robot asks again; tap Allow.

The log says "Arduino not connected"

Choose the module with Choose device, then tap Connect on the robot phone or the Connect button on the controller. The Arduino must be powered.

My module is not in the list

Check that it's powered: its LED blinks fast while it waits. Tap Scan. On Android 11 and older, Location must be on to scan.

Connected, but the wheels don't move

Check that module TXD goes to D5 and RXD to D6, that the module uses 9600 baud, and that the L293D gets battery power on VS and shares GND with the Arduino.

The video stutters or freezes

Lower Settings › Video quality, move closer to the router, or use 5 GHz Wi-Fi.