Download presentation
Presentation is loading. Please wait.
Published byWarren McCoy Modified over 8 years ago
1
Robotics Grant Agreement No 518656-LLP-1-2011-1-UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology
2
Server setup of cloud laboratory with Arduino – Lesson 9 Grant Agreement No 518656-LLP-1-2011-1-UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology
3
Server setup of cloud laboratory with Arduino Task Distribution on multiple servers based on an Apache2 and Mysql platform
4
Server setup of cloud laboratory with Arduino Initial Design Apache2 and Mysql Server (PC) Arduino Microcontroller Sensors Motors Displays User VLC webcam Video Stream … Webcam
5
Server setup of cloud laboratory with Arduino Initial Design – Server Tasks Apache2 and Mysql Server (PC) Hosting Visual Base Writing code to File System commands to run the Makefile Hosting VLC Video Stream Reading Serial Data from Board Hosting Mysql Database Resolving Scheduling, Login and other functions
6
Server setup of cloud laboratory with Arduino Current Design Local Server Nr. 1 (Raspberry Pi/PC) Arduino Microcontroller Sensors Motors Displays User Motion Video Stream Apache2 and Mysql Cloud Server (PC) Webcam Local Server Nr. n (Raspberry Pi/PC) Arduino Microcontroller Sensors Motors Displays Motion Video Stream Webcam … …
7
Server setup of cloud laboratory with Arduino Current Design – Server Tasks Hosting Visual Base Writing code to File System commands to run the Makefile Hosting Motion Video Stream Reading Serial Data from Board Hosting Mysql Database Resolving Scheduling, Login and other functions Local Server Nr. 1 (Raspberry Pi/PC) Apache2 and Mysql Cloud Server (PC) Sending Code and Adjacent Command Receiving Video Stream, Compilation and Upload Results
8
Server setup of cloud laboratory with Arduino MySQL Database user id Username Password Firstname Lastname Picture Permission User_code code id Name Code station contact id Userid email schedule id Userid Schedule Board_id station id Name Description IP
9
Server setup of cloud laboratory with Arduino Video Streaming - Motion Based on the Linux based service “Motion” Modifications Needed: webcam_port 8081 videodevice /dev/video0 webcam_localhost off target_dir /tmp/motion output_normal off framerate 40 webcam_motion 20 webcam_localhost off webcam_maxrate 25 webcam_limit 0 minimum_frame_time 0
10
Server setup of cloud laboratory with Arduino System Commans to run the Makefile and Results Setting the directory to server directory: system("cd /var/www/arduino/"); Compiling.ino file and time output to output_t.txt: exec("time -o output_t.txt make -d"); Attempts to upload created hex file onto board, writes result to variable $result: $upload=system("make upload",$result);
11
Server setup of cloud laboratory with Arduino Reading Serial Data from Board Displayed Using Iframe File Read protocol used on serial stream Cold Start Driver for Reading serial from Arduino
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.