Video Streaming Robot

Site: GoLabs
Course: Video Streaming Robot
Book: Video Streaming Robot
Printed by: Guest user
Date: Friday, 3 February 2023, 9:05 AM

Description

A robot which can stream live video and be controlled from the browser.

1. Introduction

This is an advanced project with the GoPiGo to create a browser streaming robot which can stream live video to a browser and can be controlled from the browser too.

In this example we use a the Raspberry Pi Camera with the GoPiGo. You can control the robot using the joysticks that appear on the browser and can see the live feed directly on the browser too. The video quality is very good and there is very little latency so this project can be ideal for live video streaming robot projects.



2. Hardware Needed


3. Connecting the Camera

Attach the Raspberry Pi Camera to the CSI port behind the ethernet port. For more details on how to attach the camera, refer to the official Raspberry Pi tutorial here.

4. Setting Up the GoPiGo

Make sure that the GoPiGo is set up properly and you have the updated software and firmware. If you are not sure about this, follow the guide here.

If the GoPiGo is properly set up, connect to the GoPiGo via SSH or VNC and open terminal.


5. Running the Example

1. Go to the Browser streaming example folder:


2. Make the robot_web_server program as executable:




3. Start the robot_web_server.py to start streaming the video from the camera:



4. Now open the browser and enter dex.local in the browser and hit enter to start streaming. You’ll also see some activity in the terminal.




5. You can also stream it on a mobile device. Make sure that the device is connected on the same WiFi network. Open the browser and enter the IP Address of the Raspberry Pi to start streaming the video.

Finding out the IP address of the GoPiGo using “ifconfig” to stream on a mobile device.

You can easily adapt this example to make a streaming project with the GoPiGo and the Raspberry Pi Camera.




6. Questions?

Have a question? Go check out our support page here or post it on the forums here.