Waveshare AlphaBot User Manual page 48

Table of Contents

Advertisement

share awesome hardware
AlphaBot User Manual
Enter the directory of magpi-cambot, which contains the source code for
controlling the robot.
cd ~/AlphaBot/mjpg-AlphaBot/mjpg-AlphaBot
Modify the file index.html:
sudo nano index.html
You should modify the html tag according to the IP of Raspberry Pi in used.
<img width="320" height="240" src="http://192.168.1.16:8080/?action=stream">
In here, "src" is followed by the IP address of RPi: 192.168.1.16 and the port
number: 8080 (This port is used for transmitting stream).
Start up the cambot program:
cd ~/AlphaBot/mjpg-AlphaBot/mjpg-AlphaBot
sudo webiopi -c config
Then, open the browser, and enter the IP address of RPi and the port number: 8000
into the address bar. (Notices: the port number here is 8000, other than 8080.)
The image captured by the camera will be shown in the website. Clicking the
direction icon on the website can control the action of the robot.
48

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Waveshare AlphaBot

Table of Contents