ARDUINO YÙN
Federico Croce
INTRODUCTION
Let me introduce you Arduino – Yùn, the perfect
IoT arduino board
Federico Croce - Pervasive Systems 2017
2
SCHEMA
Federico Croce - Pervasive Systems 2017
3
SPECIFICATION
A lot more than a Arduino.
Two boards in one !
Federico Croce - Pervasive Systems 2017
4
The same
microcontroller you
can find on a Arduino
Leonardo board...
Federico Croce - Pervasive Systems 2017
5
Plus a MIPS microprocessor
equipped with WiFi, USB and a
card reader
Federico Croce - Pervasive Systems 2017
6
Oh, did I mention that there is also a custom OpenWrt Linux
distribution called Linino, at your service?
Federico Croce - Pervasive Systems 2017
7
HOW TO USE IT?
 Classical Arduino IDE sketches
 Extensive usage of the Bridge
library
 It is possible to upload the sketch
through WiFi
Federico Croce - Pervasive Systems 2017
8
 You can check out
configurations through a web
panel
Federico Croce - Pervasive Systems 2017
9
 And open a ssh session for the
full power of the Linux terminal
Federico Croce - Pervasive Systems 2017
10
PRACTICAL EXAMPLE
change_state
read_state
update_state
refresh_state
Federico Croce - Pervasive Systems 2017
11
 The website shows the internal state of the board.
 The user is able to modify the state of both analog and digital
outputs
 The page is refreshed asynchronously by the browser
 Each user spawns his own thread on the board: the web server
is able to ensure simple concurrency
Federico Croce - Pervasive Systems 2017
12
Federico Croce - Pervasive Systems 2017
13
 Basic Arduino sketches functions: setup, loop
 Example function for the digital command
DEMO
PRACTICAL EXAMPLE - 2
Federico Croce - Pervasive Systems 2017
16
Motion
detection
send_alarmstream
capture
 The Linino OS offers the drivers for the USB camera (kmod-video-
uvc)
 The library motion is used for the motion detection
 Very detailed configurations into /etc/motion.conf
 Offline storage of pictures as a proof of movement
Federico Croce - Pervasive Systems 2017
17
Federico Croce - Pervasive Systems 2017
18
 Basic Arduino sketches functions
Alarm on
Alarm off
PYTHON UTILITIES
DEMO
●
https://github.com/Renferal/YunExample
Federico Croce - Pervasive Systems 2017
22

Arduino yùn