SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Implementation of an
Arduino Remote Laboratory
with Raspberry Pi
MANUEL CASTRO
MCASTRO@IEEC.UNED.ES
https://es.slideshare.net/mmmcastro
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
The importance of remote labs in the current environment
How to use this labs
Show lab architecture of Arduino base on Raspberry PI
Use case and example about Arduino in IoT
Why is necessary a remote lab?
Lab Architecture
Type of experiments
Arduino in IoT
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
• Be able to get an experimentation environment accessible from anywhere
• Create unattended labs and students can be auto-sufficient
• There are three goals:
 Increase student autonomy
 Better performance of the infrastructure deployment
 Cut down operation exposure
• Deploy labs with wide functionality and low cost
Why is necessary a remote lab?
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
Lab architecture - Diagram
WebCam
Wireless
Rainbow
Raspberry
Arduino Mega 2560
Crane
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
• Raspberry PI is a low cost simple board computer (SBC) which has been
developed in by Foundation Raspberry PI
• Be born with the objectives of learning computer science of schools.
• Main characteristics of Raspberry Pi 2 Model B
 Processor: Quad-Core Cortex A7 to 900 MHz
 RAM: 1 GB
 Ports: 4 x USB 2.0. 1 x 40 GPIO pin. 1 X HDMI. 1 x Ethernet. 1 x Mix
audio/mic. 1 x Camera interface (CSI) 1 X Display interface (DSI) 1 x
Micro SD. 1 x Graphic core 3D
Lab architecture – Elements – Raspberry Pi
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
• It was born in 2005 as a students project in the Institute INVRE in Invre
(Italy)
• The born reason was high cost, over 100 €, of BASIC Stamp board
• Once and for all platform was done (hardware and software),
researchers worked in getting more economical, lighter and available for
open source community (open hardware and source code)
• The first release had a cost less 30 € and worked in all platforms (Linux,
Windows and MacOSX)
Lab architecture – Elements – Arduino (1/3)
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
• Easy use of IDE.
• Programming language very similar to C. This fact helps that learning
curve for users who know this language is very high.
• There is a ecosystem belong producer, development and consumer all of
them generate great synergies
• Digital and analogical outputs and interruptions management which offer
a wide variety of connection possibility
• Be able to connect all type of sensors:
 Movement
 Light
 Distance
 etc.
Lab architecture – Elements – Arduino (2/3)
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
• Characteristics of Arduino Mega 2560:
 Microcontroller ATmega2560
 Input voltage – 7-12V
 54 digital pines of Input/Out (14 of them are output PWM)
 16 analog input
 256 k flash memory
Lab architecture – Elements – Arduino (3/3)
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
• Rainbow Cube is a cube 3D with LEDs of three colors: red, green and
blue (RGB) in order to create colors design
• 3D cube is made up of 64 LED of 8 mm. The layout is tridimensional
4x4x4
• Cube is built for operate with 3.3 V/AAMP LDO very useful to operate
independent way
• Compatible with Xbee socket which can be connected with PC or
Arduino without wires
Lab architecture – Elements – Rainbow
Cube
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
• Be able to do remote compilations with Arduino code
• Load binary file to Arduino board or Rainbow Cube
• Watch experiment through to web cam
• Possible to connect Raspberry board some Arduinos and students can
choose in execution time the board which would like to compile and load
the binary file
Type to experiments to do
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
First step, the student must choose source file which he
would compile and he chooses the device where he
would load binary file
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
Second step, the system transforms the source file with
InoToSource Java tool and copies in the work directory
with another Java utility, DirectoryDump
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
In this second step, compile, link and creation of
executable file are done
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
In the last step, the binary file is loaded in the device,
the system is blocked during three minutes in order to
the student can check the result of the experiment
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
• Arduino MKR1000 are compounding with three main blocks:
 SAMD21 Cortex-M0+ 32 bit low power ARM MCU
 WINC1500 low power 2,4 GHz IEEE® 802.11 b/g/n Wi-Fi
 ECC508 CryptoAuthentication
• Price 30,99 € (IVA included)
Arduino – IoT: Connecting Arduino to
Web (1/7)
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
• For staring, it is necessary to install the WIFI101 library
• In the source code, you should do the next step:
 Include the library
Arduino – IoT: Connecting Arduino to
Web (2/7)
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
 Declare variable for connection configuration
 In the setup() function does the connection:
Arduino – IoT: Connecting Arduino to
Web (3/7)
WL_CONNECT_FAILED
WL_CONNECTED
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
 Examples
Arduino – IoT: Connecting Arduino to
Web (4/7)
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
 So that Arduino can become an IoT element, it must be able to send
information to cloud. How does it do?
 Define server
 Time interval to send information to server
Arduino – IoT: Connecting Arduino to
Web (5/7)
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
 Reading sensors data in the loop function
Arduino – IoT: Connecting Arduino to
Web (6/7)
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
 Example of send information in a function
Arduino – IoT: Connecting Arduino to
Web (7/7)
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
• There are platforms such as Temboo o IFTTT which allow publishing
information of:
 Twitter
 Facebook
 Google Drive
 Send push notifications
Arduino – IoT: Interacting with web services
Implementation of an Arduino
Remote Laboratory with Raspberry Pi
Implementation of an
Arduino Remote Laboratory
with Raspberry Pi
MANUEL CASTRO
MCASTRO@IEEC.UNED.ES
https://es.slideshare.net/mmmcastro
QUESTIONS?

Weitere ähnliche Inhalte

Was ist angesagt? (7)

Arduino i rremote 1112
Arduino i rremote 1112Arduino i rremote 1112
Arduino i rremote 1112
 
Arduino1.0 RC
Arduino1.0 RCArduino1.0 RC
Arduino1.0 RC
 
Raspberry Pi e-Course for Beginners
Raspberry Pi e-Course for BeginnersRaspberry Pi e-Course for Beginners
Raspberry Pi e-Course for Beginners
 
Embedded Web Server based Home Automation using Raspberry PI
Embedded Web Server based Home Automation using Raspberry PIEmbedded Web Server based Home Automation using Raspberry PI
Embedded Web Server based Home Automation using Raspberry PI
 
Arduino vs Raspberry Pi
Arduino vs Raspberry PiArduino vs Raspberry Pi
Arduino vs Raspberry Pi
 
Why You Cannot Use Neural Engine to Run Your NN Models on A11 Devices?
Why You Cannot Use Neural Engine to Run Your NN Models on A11 Devices?Why You Cannot Use Neural Engine to Run Your NN Models on A11 Devices?
Why You Cannot Use Neural Engine to Run Your NN Models on A11 Devices?
 
IoT with Arduino
IoT with ArduinoIoT with Arduino
IoT with Arduino
 

Ähnlich wie 11_04_2019 EDUCON Award: "Implementation of an arduino remoto laboratory with Raspberry Pi", UNED

ch4-Software is Everywhere
ch4-Software is Everywherech4-Software is Everywhere
ch4-Software is Everywhere
ssuser06ea42
 
Academic Modular Seminar
Academic Modular SeminarAcademic Modular Seminar
Academic Modular Seminar
Jason Reid
 
ISI_Report_(Repaired) (4) (1)
ISI_Report_(Repaired) (4) (1)ISI_Report_(Repaired) (4) (1)
ISI_Report_(Repaired) (4) (1)
Indranil Roy
 

Ähnlich wie 11_04_2019 EDUCON Award: "Implementation of an arduino remoto laboratory with Raspberry Pi", UNED (20)

Taller IoT en la Actualidad
Taller IoT en la ActualidadTaller IoT en la Actualidad
Taller IoT en la Actualidad
 
ch4-Software is Everywhere
ch4-Software is Everywherech4-Software is Everywhere
ch4-Software is Everywhere
 
Republic of IoT 2018 - ESPectro32 and NB-IoT Workshop
Republic of IoT 2018 - ESPectro32 and NB-IoT WorkshopRepublic of IoT 2018 - ESPectro32 and NB-IoT Workshop
Republic of IoT 2018 - ESPectro32 and NB-IoT Workshop
 
Eclipse Kura Shoot a-pi
Eclipse Kura Shoot a-piEclipse Kura Shoot a-pi
Eclipse Kura Shoot a-pi
 
Academic Modular Seminar
Academic Modular SeminarAcademic Modular Seminar
Academic Modular Seminar
 
ON.LAB Mininet
ON.LAB MininetON.LAB Mininet
ON.LAB Mininet
 
Developing IoT Applications Using Intel® System Studio | Eclipse IoT Day Sant...
Developing IoT Applications Using Intel® System Studio | Eclipse IoT Day Sant...Developing IoT Applications Using Intel® System Studio | Eclipse IoT Day Sant...
Developing IoT Applications Using Intel® System Studio | Eclipse IoT Day Sant...
 
IoT Session Thomas More
IoT Session Thomas MoreIoT Session Thomas More
IoT Session Thomas More
 
Cc internet of things @ Thomas More
Cc internet of things @ Thomas MoreCc internet of things @ Thomas More
Cc internet of things @ Thomas More
 
Null mumbai-iot-workshop
Null mumbai-iot-workshopNull mumbai-iot-workshop
Null mumbai-iot-workshop
 
IoT Workshop in Macao
IoT Workshop in MacaoIoT Workshop in Macao
IoT Workshop in Macao
 
IoT Workshop in Macao
IoT Workshop in MacaoIoT Workshop in Macao
IoT Workshop in Macao
 
Talk at the Landelijk Architecure Congress (NL)
Talk at the Landelijk Architecure Congress (NL)Talk at the Landelijk Architecure Congress (NL)
Talk at the Landelijk Architecure Congress (NL)
 
Unit 6 - PART2.pptx
Unit 6 - PART2.pptxUnit 6 - PART2.pptx
Unit 6 - PART2.pptx
 
Connecting Hardware to Flex (360MAX)
Connecting Hardware to Flex (360MAX)Connecting Hardware to Flex (360MAX)
Connecting Hardware to Flex (360MAX)
 
Overview of the Intel® Internet of Things Developer Kit
Overview of the Intel® Internet of Things Developer KitOverview of the Intel® Internet of Things Developer Kit
Overview of the Intel® Internet of Things Developer Kit
 
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
Elyra - a set of AI-centric extensions to JupyterLab Notebooks.
 
ISI_Report_(Repaired) (4) (1)
ISI_Report_(Repaired) (4) (1)ISI_Report_(Repaired) (4) (1)
ISI_Report_(Repaired) (4) (1)
 
Raspberry pi overview
Raspberry pi overview Raspberry pi overview
Raspberry pi overview
 
Robots conf microcontroller and iot survey
Robots conf   microcontroller and iot surveyRobots conf   microcontroller and iot survey
Robots conf microcontroller and iot survey
 

Mehr von eMadrid network

Mehr von eMadrid network (20)

Recognizing Lifelong Learning Competences: A Report of Two Cases - Edmundo Tovar
Recognizing Lifelong Learning Competences: A Report of Two Cases - Edmundo TovarRecognizing Lifelong Learning Competences: A Report of Two Cases - Edmundo Tovar
Recognizing Lifelong Learning Competences: A Report of Two Cases - Edmundo Tovar
 
A study about the impact of rewards on student's engagement with the flipped ...
A study about the impact of rewards on student's engagement with the flipped ...A study about the impact of rewards on student's engagement with the flipped ...
A study about the impact of rewards on student's engagement with the flipped ...
 
Assessment and recognition in technical massive open on-line courses with and...
Assessment and recognition in technical massive open on-line courses with and...Assessment and recognition in technical massive open on-line courses with and...
Assessment and recognition in technical massive open on-line courses with and...
 
Recognition of learning: Status, experiences and challenges - Carlos Delgado ...
Recognition of learning: Status, experiences and challenges - Carlos Delgado ...Recognition of learning: Status, experiences and challenges - Carlos Delgado ...
Recognition of learning: Status, experiences and challenges - Carlos Delgado ...
 
Bootstrapping serious games to assess learning through analytics - Baltasar F...
Bootstrapping serious games to assess learning through analytics - Baltasar F...Bootstrapping serious games to assess learning through analytics - Baltasar F...
Bootstrapping serious games to assess learning through analytics - Baltasar F...
 
Meta-review of recognition of learning in LMS and MOOCs - Ruth Cobos
Meta-review of recognition of learning in LMS and MOOCs - Ruth CobosMeta-review of recognition of learning in LMS and MOOCs - Ruth Cobos
Meta-review of recognition of learning in LMS and MOOCs - Ruth Cobos
 
Best paper Award - Miguel Castro
Best paper Award - Miguel CastroBest paper Award - Miguel Castro
Best paper Award - Miguel Castro
 
eMadrid Gaming4Coding - Possibilities of game learning analytics for coding l...
eMadrid Gaming4Coding - Possibilities of game learning analytics for coding l...eMadrid Gaming4Coding - Possibilities of game learning analytics for coding l...
eMadrid Gaming4Coding - Possibilities of game learning analytics for coding l...
 
Seminario eMadrid_Curso MOOC_Antonio de Nebrija_Apología del saber.pptx.pdf
Seminario eMadrid_Curso MOOC_Antonio de Nebrija_Apología del saber.pptx.pdfSeminario eMadrid_Curso MOOC_Antonio de Nebrija_Apología del saber.pptx.pdf
Seminario eMadrid_Curso MOOC_Antonio de Nebrija_Apología del saber.pptx.pdf
 
eMadrid-Opportunities and Design Challenges in the Gaming4Coding Project_Pete...
eMadrid-Opportunities and Design Challenges in the Gaming4Coding Project_Pete...eMadrid-Opportunities and Design Challenges in the Gaming4Coding Project_Pete...
eMadrid-Opportunities and Design Challenges in the Gaming4Coding Project_Pete...
 
Open_principles_and_co-creation_for_digital_competences_for_students.pdf
Open_principles_and_co-creation_for_digital_competences_for_students.pdfOpen_principles_and_co-creation_for_digital_competences_for_students.pdf
Open_principles_and_co-creation_for_digital_competences_for_students.pdf
 
Competencias_digitales_del_profesorado_universitario_para_la_educación_abiert...
Competencias_digitales_del_profesorado_universitario_para_la_educación_abiert...Competencias_digitales_del_profesorado_universitario_para_la_educación_abiert...
Competencias_digitales_del_profesorado_universitario_para_la_educación_abiert...
 
eMadrid_KatjaAssaf_DigiCred.pdf
eMadrid_KatjaAssaf_DigiCred.pdfeMadrid_KatjaAssaf_DigiCred.pdf
eMadrid_KatjaAssaf_DigiCred.pdf
 
Presentazione E-Madrid - 12-01-2023 Ruth Kerr.pdf
Presentazione E-Madrid - 12-01-2023 Ruth Kerr.pdfPresentazione E-Madrid - 12-01-2023 Ruth Kerr.pdf
Presentazione E-Madrid - 12-01-2023 Ruth Kerr.pdf
 
EDC-eMadrid_20230113 Ildikó Mázár.pdf
EDC-eMadrid_20230113 Ildikó Mázár.pdfEDC-eMadrid_20230113 Ildikó Mázár.pdf
EDC-eMadrid_20230113 Ildikó Mázár.pdf
 
2022_12_16 «“La informática en la educación escolar en Europa”, informe Euryd...
2022_12_16 «“La informática en la educación escolar en Europa”, informe Euryd...2022_12_16 «“La informática en la educación escolar en Europa”, informe Euryd...
2022_12_16 «“La informática en la educación escolar en Europa”, informe Euryd...
 
2022_12_16 «Informatics – A Fundamental Discipline for the 21st Century»
2022_12_16 «Informatics – A Fundamental Discipline for the 21st Century»2022_12_16 «Informatics – A Fundamental Discipline for the 21st Century»
2022_12_16 «Informatics – A Fundamental Discipline for the 21st Century»
 
2022_12_16 «Efecto del uso de lenguajes basados en bloques en el aprendizaje ...
2022_12_16 «Efecto del uso de lenguajes basados en bloques en el aprendizaje ...2022_12_16 «Efecto del uso de lenguajes basados en bloques en el aprendizaje ...
2022_12_16 «Efecto del uso de lenguajes basados en bloques en el aprendizaje ...
 
2022_11_11 «AI and ML methods for Multimodal Learning Analytics»
2022_11_11 «AI and ML methods for Multimodal Learning Analytics»2022_11_11 «AI and ML methods for Multimodal Learning Analytics»
2022_11_11 «AI and ML methods for Multimodal Learning Analytics»
 
2022_11_11 «The promise and challenges of Multimodal Learning Analytics»
2022_11_11 «The promise and challenges of Multimodal Learning Analytics»2022_11_11 «The promise and challenges of Multimodal Learning Analytics»
2022_11_11 «The promise and challenges of Multimodal Learning Analytics»
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 

11_04_2019 EDUCON Award: "Implementation of an arduino remoto laboratory with Raspberry Pi", UNED

  • 1. Implementation of an Arduino Remote Laboratory with Raspberry Pi MANUEL CASTRO MCASTRO@IEEC.UNED.ES https://es.slideshare.net/mmmcastro
  • 2. Implementation of an Arduino Remote Laboratory with Raspberry Pi The importance of remote labs in the current environment How to use this labs Show lab architecture of Arduino base on Raspberry PI Use case and example about Arduino in IoT Why is necessary a remote lab? Lab Architecture Type of experiments Arduino in IoT
  • 3. Implementation of an Arduino Remote Laboratory with Raspberry Pi • Be able to get an experimentation environment accessible from anywhere • Create unattended labs and students can be auto-sufficient • There are three goals:  Increase student autonomy  Better performance of the infrastructure deployment  Cut down operation exposure • Deploy labs with wide functionality and low cost Why is necessary a remote lab?
  • 4. Implementation of an Arduino Remote Laboratory with Raspberry Pi Lab architecture - Diagram WebCam Wireless Rainbow Raspberry Arduino Mega 2560 Crane
  • 5. Implementation of an Arduino Remote Laboratory with Raspberry Pi • Raspberry PI is a low cost simple board computer (SBC) which has been developed in by Foundation Raspberry PI • Be born with the objectives of learning computer science of schools. • Main characteristics of Raspberry Pi 2 Model B  Processor: Quad-Core Cortex A7 to 900 MHz  RAM: 1 GB  Ports: 4 x USB 2.0. 1 x 40 GPIO pin. 1 X HDMI. 1 x Ethernet. 1 x Mix audio/mic. 1 x Camera interface (CSI) 1 X Display interface (DSI) 1 x Micro SD. 1 x Graphic core 3D Lab architecture – Elements – Raspberry Pi
  • 6. Implementation of an Arduino Remote Laboratory with Raspberry Pi • It was born in 2005 as a students project in the Institute INVRE in Invre (Italy) • The born reason was high cost, over 100 €, of BASIC Stamp board • Once and for all platform was done (hardware and software), researchers worked in getting more economical, lighter and available for open source community (open hardware and source code) • The first release had a cost less 30 € and worked in all platforms (Linux, Windows and MacOSX) Lab architecture – Elements – Arduino (1/3)
  • 7. Implementation of an Arduino Remote Laboratory with Raspberry Pi • Easy use of IDE. • Programming language very similar to C. This fact helps that learning curve for users who know this language is very high. • There is a ecosystem belong producer, development and consumer all of them generate great synergies • Digital and analogical outputs and interruptions management which offer a wide variety of connection possibility • Be able to connect all type of sensors:  Movement  Light  Distance  etc. Lab architecture – Elements – Arduino (2/3)
  • 8. Implementation of an Arduino Remote Laboratory with Raspberry Pi • Characteristics of Arduino Mega 2560:  Microcontroller ATmega2560  Input voltage – 7-12V  54 digital pines of Input/Out (14 of them are output PWM)  16 analog input  256 k flash memory Lab architecture – Elements – Arduino (3/3)
  • 9. Implementation of an Arduino Remote Laboratory with Raspberry Pi • Rainbow Cube is a cube 3D with LEDs of three colors: red, green and blue (RGB) in order to create colors design • 3D cube is made up of 64 LED of 8 mm. The layout is tridimensional 4x4x4 • Cube is built for operate with 3.3 V/AAMP LDO very useful to operate independent way • Compatible with Xbee socket which can be connected with PC or Arduino without wires Lab architecture – Elements – Rainbow Cube
  • 10. Implementation of an Arduino Remote Laboratory with Raspberry Pi • Be able to do remote compilations with Arduino code • Load binary file to Arduino board or Rainbow Cube • Watch experiment through to web cam • Possible to connect Raspberry board some Arduinos and students can choose in execution time the board which would like to compile and load the binary file Type to experiments to do
  • 11. Implementation of an Arduino Remote Laboratory with Raspberry Pi First step, the student must choose source file which he would compile and he chooses the device where he would load binary file
  • 12. Implementation of an Arduino Remote Laboratory with Raspberry Pi Second step, the system transforms the source file with InoToSource Java tool and copies in the work directory with another Java utility, DirectoryDump
  • 13. Implementation of an Arduino Remote Laboratory with Raspberry Pi In this second step, compile, link and creation of executable file are done
  • 14. Implementation of an Arduino Remote Laboratory with Raspberry Pi In the last step, the binary file is loaded in the device, the system is blocked during three minutes in order to the student can check the result of the experiment
  • 15. Implementation of an Arduino Remote Laboratory with Raspberry Pi • Arduino MKR1000 are compounding with three main blocks:  SAMD21 Cortex-M0+ 32 bit low power ARM MCU  WINC1500 low power 2,4 GHz IEEE® 802.11 b/g/n Wi-Fi  ECC508 CryptoAuthentication • Price 30,99 € (IVA included) Arduino – IoT: Connecting Arduino to Web (1/7)
  • 16. Implementation of an Arduino Remote Laboratory with Raspberry Pi • For staring, it is necessary to install the WIFI101 library • In the source code, you should do the next step:  Include the library Arduino – IoT: Connecting Arduino to Web (2/7)
  • 17. Implementation of an Arduino Remote Laboratory with Raspberry Pi  Declare variable for connection configuration  In the setup() function does the connection: Arduino – IoT: Connecting Arduino to Web (3/7) WL_CONNECT_FAILED WL_CONNECTED
  • 18. Implementation of an Arduino Remote Laboratory with Raspberry Pi  Examples Arduino – IoT: Connecting Arduino to Web (4/7)
  • 19. Implementation of an Arduino Remote Laboratory with Raspberry Pi  So that Arduino can become an IoT element, it must be able to send information to cloud. How does it do?  Define server  Time interval to send information to server Arduino – IoT: Connecting Arduino to Web (5/7)
  • 20. Implementation of an Arduino Remote Laboratory with Raspberry Pi  Reading sensors data in the loop function Arduino – IoT: Connecting Arduino to Web (6/7)
  • 21. Implementation of an Arduino Remote Laboratory with Raspberry Pi  Example of send information in a function Arduino – IoT: Connecting Arduino to Web (7/7)
  • 22. Implementation of an Arduino Remote Laboratory with Raspberry Pi • There are platforms such as Temboo o IFTTT which allow publishing information of:  Twitter  Facebook  Google Drive  Send push notifications Arduino – IoT: Interacting with web services
  • 23. Implementation of an Arduino Remote Laboratory with Raspberry Pi Implementation of an Arduino Remote Laboratory with Raspberry Pi MANUEL CASTRO MCASTRO@IEEC.UNED.ES https://es.slideshare.net/mmmcastro QUESTIONS?