SpyBot - Internet-controlled Robot With Videostreaming

by PawełJ17 in Circuits > Robots

6782 Views, 102 Favorites, 0 Comments

SpyBot - Internet-controlled Robot With Videostreaming

57fbaea62e7fb6d37a001ae7.jpeg
SpyBot - Internet controlled mobile robot with videostream
SpyBot - Internet controlled mobile robot with videostream

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

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.

Assembly

P60929-131644.jpg
P60929-131730.jpg
P60929-131129.jpg
P60929-133245.jpg
P60929-133451.jpg
P61010-094707.jpg
IMG_0357.JPG
P61010-100718.jpg
IMG_0351.JPG

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.

Circuit Diagram

schemat10.10-01.jpg

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

Code

interface2.PNG
Camera.PNG

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.