![Waveshare AlphaBot 2 User Manual Download Page 30](http://html1.mh-extra.com/html/waveshare/alphabot-2/alphabot-2_user-manual_3873491030.webp)
AlphaBot 2 User Manual
30
share awesome hardware
Expectation result::The servo will move to left and right, and its rotational range
can reach 180 degree.
mjpg-streamer software real-time monitoring
"MJPG-streamer" takes JPGE from the web camera, and streams them over an
IP-based network to various types of viewers.
a)
Run the command raspi-config to start up the camera before using it:
sudo raspi-config
Select
Enable Camera
b)
For the camera with CSI interface, the system may be unable to find out the
device under the directory of /dev/video0. In this case, you should add a line,
bcm2835-v4l2, into the file /etc/modules.
sudo nano /etc/modules
Add the line: bcm2835-v4l2
c)
After reboot, the system will load the module name stored in this file, and find
out the device video0 under the directory of /dev. (Please take a notice that the
letter l in the command bcm2835-v4l2 is the lower case of L.)
Explanation: After performing the steps a), b) and c), if you still cannot find out the
device video0 under the directory of /dev, and all the operations and commands
are correct, you should run the command: rpi-update.