Intel Edison supports the MJPEG camera data via USB acquisition and publish the video stream via WIFI. User can use browser to achieve remote monitoring the video stream and send control instructions to Edison. Edison will transmit the control instructions to Makeblock Orion board via serial port, then achieve the function of WIFI video car.
1. Set the serial ports on Edison, they will be connected to the serial ports of Makeblock Orion board and achieve communication.
2. Add the Edison on the Makeblock Orion board via studs and 3D printing bracket.
3. The servo will control the camera achieve upper and lower rotation.
4. Add the main control board (Edison with Orion) and servo part (servo and camera) on Makeblock starter kit respectively.
5. Makeblock Orion board provides at least 7V power supply. The serial port pins of Edison and servo will be connected to Me RJ Adapter. (the Edison serial port with Me RJ Adapter should be connected to the port4 or port5 on Orion board, the servo part should be connected to port6)
6. Add the camera on the USB Host interface of Edison via USB cable, the 7.4V lithium battery should be connected to the power interface of Orion board.
1. Install system of Intel Edison according to the official guide.
2. Configure Edi-Cam
(1) We can use SSH log in Edison system via serial port or WiFi network. Before log in make sure Edison and your computer are in the same Wifi network. Then input the following command in the terminal:
$ ssh firstname.lastname@example.org@myedison.local's password:root@myedison:~#
Use your Edison name replace myedison. Then input the password when configure Edison.
(2) Set the third-part repository, add the following codes into /etc/opkg/base-feeds.conf:
(3) Opkg update
(4) Opkg install git
(5) Install UVC driver (if it is the latest Edison Yocto system, don’t need to install)
(6) Install ffmpeg
Back to “bin” of “Git”, execute./install_ffmeg.sh
(7)Install Node.js application package
Enter web/robotjs, execute npm install
(1) Open web/robotjs/client/index.html, update wsUrl point to the network position of Edison as shown below：
// CHANGE THIS TO THE APPROPRIATE WS ADDRESS
var wsUrl = 'ws://myedison.local:8084/';
(2) Run Node.js server
Execute node server.js.
The terminal can see the startup information:
WebSocket server listening on port 8084
HTTP server listening on port 8080
Listening for video stream on port 8082
Stream Connected: 127.0.0.1:52995 size: 640x480
Viewing the video stream
(3) Enter http://myedison.local:8080 via browser, it will display the video and control interface.