Introduction: SpyBot - Internet-controlled Robot With Videostreaming

DIY mobile robot controlled via web browser on any device, which you can make just in few minutes, using phone camera and CORE2.

Step 1: Things You Need

  • Husarion CORE2 (available here)
  • DIY mobile robot chassis 4wd (available here)

  • Li-Po battery
  • M3x6 screws (8 pcs)
  • M3 long (8mm) distance nut (4 pcs)

  • M2.5 countersunk screws (4 pcs)

Prepare your screwdriver only, everything else is simply plug&play. Eventually you will need a 3D printer if you want to print a beutiful phone holder, other way you are able to make a phone holder using wooden plate, metal bracket and some screws and nuts.

Step 2: Assembly

1. Attach metal couplers and wheels on the motors.

2. Assembly the motors with metal brackets.

3. Assembly the chassis with motors.

4. Attach CORE2 board on the chassis using M3 screws and distance nut.

5. Attach phone holder on the chassis. Use holes on the chassis. Originally we used wooden plate, metal bracket and some screws to make a phone holder. But we have also prepared a beautiful 3D printable phone holder. Tighten it with some countersunk screws and add soft material. It is tighten in the gap, so you can easily adapt it to any phone.

6. Attach power supply with some zip ties.

Step 3: Circuit Diagram

In my configuration the only thing you have to do in electronics is to connect 4 motors delivered with the chassis, attach ESP8266 adapter delivered with CORE2 and add power supply, for example Li-Po battery.

  • hMotA - front-right motor
  • hMotB - front-left motor
  • hMotC - back-right motor
  • hMotD - back-left motor

Step 4: Code

The source code is available here on github.

Simply download it and upload on the Husarion Cloud web IDE. To connect your CORE2 to the Cloud follow this tutorial on Husarion webpage.

Then install hVideo app available here on Play Store. Pair your phone's camera with the Cloud by simply scanning QR code.

Attach phone to the robot, turn it on and click on it in the Cloud. You will see web user interface.

On the left you can see a joystick, to easily control your robot via web browser in any phone. Or you can simply steer it using arrow keys on the keyboard. Next to it there is a gear shift to control robot's speed.

Hope you will enjoy.