SlideShare a Scribd company logo
1 of 21
Download to read offline
University of Messina
Department of Engineering
Course in Engineering and Computer Science (ECS)
B.Sc. CASALE GIUSEPPE
Project for Embedded System
System Security with Arduino Yún:
“ Stay Away From Me! ”
peppecasale@virgilio.it
Use scenario:
Pedestal in an exhibition
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
● Short messages are displayed on the LCD according to the area of interest.
● In “Allarme”, an Alert is sent by e-mail through the Temboo service.
START
Welcome Message
Sensors Calibration
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
Motion
Detected?
SI
In which Direction?
I Orient the Servo
I Calculate the Distance
and Act Accordingly
END
Anyway, I Calculate
the Distance from a
Possible Object
No
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
DIAGRAM OF OPERATION...PROJECT
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
DIAGRAM OF OPERATION...TEMBOO
Source: https://temboo.com/
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
● 1x Board Arduino Yún rel. 4;
● 1x Breadboard;
● 2x HC-SR501 PIR;
● 2x 10 Kohms Resistor with +/- 5% tolerance;
● 1x 2004A LCD Display with 20x4 characters available;
● 1x 220 ohms Resistor with +/- 5% tolerance;
● 1x Potentiometer;
● 1x SG90 Servo-motor;
● 1x 100 μF Condenser;
● 1x HC-SR04 Ultrasonic Sensor;
● Different wires;
Components Used:
ARDUINO YúN
Heart of the entire system!!!
Provided with: Microcontroller, Microprocessor, wired or wireless network
connectivity, pins to communicate with the outside world, micro-SD and much more...
Source:
http://arduino.cc/en/Main/ArduinoBoardYun
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
PIR SENSOR (Pyroelectric InfraRed)
How does it work? It detects, through 2 slots, the infrared emission produced by an object!
Datasheet:
http://www.datasheet-pdf.info/entry/HC-SR501-Datasheet-PDF
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
The magic happens with the Fresnel lens.
The Principle: How it happens: How we see it!
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
https://it.wikipedia.org/wiki/Lente_di_Fresnel
20x4 LCD Display
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
● Interaction with the external environment through messages;
● To write a character you need to:
1. Make sure the cursor is at the point where you want to print the
character;
2. Set to 1 the R / S pin and to 0 the R / W pin;
3. Send the corresponding ASCII character code;
4. Set to 1 the E pin for at least 450 nanoseconds and then
back to 0.
● Do you want it to be easy???
Use the liquidCrystal LIBRARY
[ https://www.arduino.cc/en/Reference/LiquidCrystal ]
20x4 LCD Display
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
Time of sensors calibration: do I see the countdown???
Please...I use the ALIEN!!!
How can I make animation on a text display???
TAITO’S ALIEN
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
Easy:
I draw the Pixels...
...I recall them to make an ANIMATION!
The ultrasonic sensor: HC-SR04
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
When the sound waves encounter the separation interface between two material
means, they give rise to phenomena such as refraction and reflection.
The ultrasonic sensor: HC-SR04
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
It uses the concept of sonar to determine the distance to an object,
as bats or dolphins.
Datasheet: https://docs.google.com/document/d/1Y-yZnNhMYy7rwhAgyL_pfa39RsB-x2qR4vP8saG73rE/edit.
SG90 Servo
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
Within the servomotors, there are several mechanical and electronic parts. Here's a list:
● DC Motor -> Moves the wheels;
● Potentiometer -> Generates a resistive value proportional to the angle of the current position;
● Control electronics (feedback system) -> decides the direction of the rotation;
● Motor driver (power stage) -> Feeds the motor correctly;
● Set of gears and gear reduction mechanism -> These are used to increase the accuracy, reduce
the inertia and increase the torque;
SG90 9g Micro Servo:
http://www.micropik.com/PDF/SG90Servo.pdf
COMPLETE REALIZATION OF THE CIRCUIT
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
TEMBOO x E-MAIL
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
● It provides a unified access to more than 100 web services,
including the ability to send emails;
● Key words: TembooChoreo and SendEmailChoreo;
● Input Parameters for the Choreo:
1. (“Username”, GMAIL_USER_NAME): this is the username of the Gmail
account, which also corresponds to the email address of the Sender,
formatted as a full email address;
2. (“Password”, GMAIL_APP_PASSWORD): this allows a user that uses
the two-step verification to access to his/her Google Account through
unofficial applications. It is generated automatically, immediately after
entering the security code provided by the Google Authenticator App [ ], in
the Auth phase of the creation of the application;
3. (“ToAddress”, TO_EMAIL_ADDRESS): this is the email address of the
Recipient;
4. (“Subject”, “Testo_Personalizzabile”): it represents the voice OBJECT in the
header of an email. The User can insert the text he/she prefers instead of
Testo_Personalizzabile;
5. (“MessageBody”, “Testo_Personalizzabile” ): the text inserted by the User
will be the BODY of the email instead of Testo_Personalizzabile;
“TembooAccount.h”
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
● Key word: SECURITY!!!
● External file for sensitive data of the
Temboo and Gmail Account;
● Parameters:
1. TEMBOO_ACCOUNT: this is the name
associated to the Temboo account;
2. TEMBOO_APP_KEY_NAME: this is the
name of the key associated to the project, in
this case “TiHoVisto” (I’ve Seen You);
3. TEMBOO_APP_KEY: this is the univocal
key generated by Temboo for the particular
App;
4. GMAIL_USER_NAME: this is the username,
formatted as a complete email address, of
the Gmail account of the sender;
5. GMAIL_APP_PASSWORD: this is the
password of the sender’s account codified
in base64;
6. TO_EMAIL_ADDRESS: this is the email
address of the recipient of the Alert;
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
REFERENCE
[1] Arduino Yun official page: http://arduino.cc/en/Main/ArduinoBoardYun.
[2] Wikipedia page: Breadboard: https://it.wikipedia.org/wiki/Breadboard.
[3] Datasheet PIR HC-SR501 sensor: http://www.datasheet-pdf.info/entry/HC-SR501-Datasheet-PDF.
[4] Shenzhen Eone Electronics CO.,LTD. Specification For LCD Module 2004A:
https://www.beta-estore.com/download/rk/RK-10290_410.pdf
[5] Micropic.com - SG90 9g Micro Servo: http://www.micropik.com/PDF/SG90Servo.pdf.
[6] Cytron Technology. Product User’s Manual – HC-SR04 Ultrasonic Sensor:
https://docs.google.com/document/d/1Y-yZnNhMYy7rwhAgyL_pfa39RsB-x2qR4vP8saG73rE/edit.
[7] Arduino official page. http://arduino.cc/
[8] Wiring official page. http://wiring.org.co/ .
[9] Processing official page. https://processing.org/ .
[10] Community Arduino official page: https://forum.arduino.cc/
[11] Dario Bruneo. Embedded Systems slide part 3: The Arduino Yún Board, 2014.
[12] 8-bit avr microcontroller with 16/32k bytes of isp ash and usb controller. ATmega16U4 and ATmega32U4:
http://www.atmel.com/Images/Atmel-7766-8-bit-AVR-ATmega16U4-32U4_Datasheet.pdf.
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
[13] Datasheet for Qualcomm Atheros AR9331:
https://www.atheros-drivers.com/qualcomm-atheros-download-datasheets-nr-110-with-code-4351.html .
[14] OpenWrt official page: https://openwrt.org/ .
[15] Linino official page: http://www.linino.org/ .
[16] cURL official page: http://curl.haxx.se/ .
[17] Python scripting language official page. https://www.python.org/ .
[18] Bridge Library official page. http://arduino.cc/en/Tutorial/Bridge/ .
[19] EEPROM Library official page. https://www.arduino.cc/en/Reference/EEPROM/ .
[20] Wire Library official page. http://arduino.cc/en/Reference/Wire/ .
[21] SPI Library official page. http://arduino.cc/en/Reference/SPI/ .
[22] LiquidCrystal Library official page. https://www.arduino.cc/en/Reference/LiquidCrystal/ .
[23] Wikipedia page on HD44780: https://it.wikipedia.org/wiki/HD44780/ .
[24] Servo Library official page: https://www.arduino.cc/en/Reference/Servo/ .
[25] NewPing Library official page: http://playground.arduino.cc/Code/NewPing/ .
[26] Wikipedia page on Taito’s Space Invaders: https://it.wikipedia.org/wiki/Space_Invaders/ .
CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
Credits:
Dr. Giuseppe Casale
E-mail: peppecasale@virgilio.it
Tel.: 340.095.33.86
Fb.com/Giuseppe.Casale01
https://youtu.be/1IioQDRjlNA

More Related Content

Viewers also liked

124815-340471-1-SM
124815-340471-1-SM124815-340471-1-SM
124815-340471-1-SMTesema Elias
 
Bab 2 Membuat Presentasi
Bab 2 Membuat PresentasiBab 2 Membuat Presentasi
Bab 2 Membuat PresentasiDafarifqi
 
Princess On The Road ppt
Princess On The Road pptPrincess On The Road ppt
Princess On The Road ppthermine123
 
OpenStack Network-as-a-Service - Neutron
OpenStack Network-as-a-Service - NeutronOpenStack Network-as-a-Service - Neutron
OpenStack Network-as-a-Service - NeutronGiuseppe Casale
 
Bab 4 Menambah Animasi, Sound, Dan Movies
Bab 4 Menambah Animasi, Sound, Dan MoviesBab 4 Menambah Animasi, Sound, Dan Movies
Bab 4 Menambah Animasi, Sound, Dan MoviesDafarifqi
 
Power harappa practicum
Power harappa practicumPower harappa practicum
Power harappa practicumsaranyaps1234
 
Calendario 1ª fase 2015 2016
Calendario 1ª fase 2015 2016Calendario 1ª fase 2015 2016
Calendario 1ª fase 2015 2016Alberto Aguilera
 
Service design: innovation for the employed "A better A&E in hospitals"
Service design: innovation for the employed "A better A&E in hospitals"Service design: innovation for the employed "A better A&E in hospitals"
Service design: innovation for the employed "A better A&E in hospitals"ESF Vlaanderen
 
Chicago artist coalition- Brand Alignment Plan
Chicago artist coalition- Brand Alignment PlanChicago artist coalition- Brand Alignment Plan
Chicago artist coalition- Brand Alignment PlanYu-Ning (Eileen) Hung
 
Attachement 4: General innovation
Attachement 4: General innovationAttachement 4: General innovation
Attachement 4: General innovationESF Vlaanderen
 
Pakuranga Library Trip
Pakuranga Library TripPakuranga Library Trip
Pakuranga Library Tripsusieallen14
 
Welcome To Source A Tech
Welcome To Source A TechWelcome To Source A Tech
Welcome To Source A TechAdair Grover
 
Shaping Sexuality - Joannette van der Veer - Beforeplay
Shaping Sexuality - Joannette van der Veer - BeforeplayShaping Sexuality - Joannette van der Veer - Beforeplay
Shaping Sexuality - Joannette van der Veer - BeforeplayFirmaVruchtvlees
 
Thai Temple in North Hollywood
Thai Temple in North Hollywood Thai Temple in North Hollywood
Thai Temple in North Hollywood jasming95
 

Viewers also liked (17)

124815-340471-1-SM
124815-340471-1-SM124815-340471-1-SM
124815-340471-1-SM
 
Bab 2 Membuat Presentasi
Bab 2 Membuat PresentasiBab 2 Membuat Presentasi
Bab 2 Membuat Presentasi
 
Jacqueline rojas
Jacqueline rojasJacqueline rojas
Jacqueline rojas
 
Princess On The Road ppt
Princess On The Road pptPrincess On The Road ppt
Princess On The Road ppt
 
Pralatihan excel
Pralatihan excelPralatihan excel
Pralatihan excel
 
OpenStack Network-as-a-Service - Neutron
OpenStack Network-as-a-Service - NeutronOpenStack Network-as-a-Service - Neutron
OpenStack Network-as-a-Service - Neutron
 
Meanings mob
Meanings mobMeanings mob
Meanings mob
 
Bab 4 Menambah Animasi, Sound, Dan Movies
Bab 4 Menambah Animasi, Sound, Dan MoviesBab 4 Menambah Animasi, Sound, Dan Movies
Bab 4 Menambah Animasi, Sound, Dan Movies
 
Power harappa practicum
Power harappa practicumPower harappa practicum
Power harappa practicum
 
Calendario 1ª fase 2015 2016
Calendario 1ª fase 2015 2016Calendario 1ª fase 2015 2016
Calendario 1ª fase 2015 2016
 
Service design: innovation for the employed "A better A&E in hospitals"
Service design: innovation for the employed "A better A&E in hospitals"Service design: innovation for the employed "A better A&E in hospitals"
Service design: innovation for the employed "A better A&E in hospitals"
 
Chicago artist coalition- Brand Alignment Plan
Chicago artist coalition- Brand Alignment PlanChicago artist coalition- Brand Alignment Plan
Chicago artist coalition- Brand Alignment Plan
 
Attachement 4: General innovation
Attachement 4: General innovationAttachement 4: General innovation
Attachement 4: General innovation
 
Pakuranga Library Trip
Pakuranga Library TripPakuranga Library Trip
Pakuranga Library Trip
 
Welcome To Source A Tech
Welcome To Source A TechWelcome To Source A Tech
Welcome To Source A Tech
 
Shaping Sexuality - Joannette van der Veer - Beforeplay
Shaping Sexuality - Joannette van der Veer - BeforeplayShaping Sexuality - Joannette van der Veer - Beforeplay
Shaping Sexuality - Joannette van der Veer - Beforeplay
 
Thai Temple in North Hollywood
Thai Temple in North Hollywood Thai Temple in North Hollywood
Thai Temple in North Hollywood
 

Similar to Stay away from me

Distance Measurement Using Ultrasonic Sensor and Nodemcu
Distance Measurement Using Ultrasonic Sensor and NodemcuDistance Measurement Using Ultrasonic Sensor and Nodemcu
Distance Measurement Using Ultrasonic Sensor and NodemcuIRJET Journal
 
csc project .docx
csc project .docxcsc project .docx
csc project .docxvorsv
 
3d printer electronics engineering live projects abstracts @1000KV Technologi...
3d printer electronics engineering live projects abstracts @1000KV Technologi...3d printer electronics engineering live projects abstracts @1000KV Technologi...
3d printer electronics engineering live projects abstracts @1000KV Technologi...1000kv technologies
 
Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397Editor IJARCET
 
Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397Editor IJARCET
 
FIRE ALARM SYSTEM BASED ON MCU FOR INDUSTRY APPLICATION
FIRE ALARM SYSTEM BASED ON MCU FOR INDUSTRY APPLICATIONFIRE ALARM SYSTEM BASED ON MCU FOR INDUSTRY APPLICATION
FIRE ALARM SYSTEM BASED ON MCU FOR INDUSTRY APPLICATIONIRJET Journal
 
Ijmsr 2016-02
Ijmsr 2016-02Ijmsr 2016-02
Ijmsr 2016-02ijmsr
 
IoT Based Anti-Theft Detection and Alarm System Using NodeMCU and Blynk Appli...
IoT Based Anti-Theft Detection and Alarm System Using NodeMCU and Blynk Appli...IoT Based Anti-Theft Detection and Alarm System Using NodeMCU and Blynk Appli...
IoT Based Anti-Theft Detection and Alarm System Using NodeMCU and Blynk Appli...IRJET Journal
 
FFicili_Curriculum - v1.3 - 07092014 - ENG
FFicili_Curriculum - v1.3 - 07092014 - ENGFFicili_Curriculum - v1.3 - 07092014 - ENG
FFicili_Curriculum - v1.3 - 07092014 - ENGFrancesco Ficili
 
Three-Axis Auto Stabilizing Video Camera Platform
Three-Axis Auto Stabilizing Video Camera PlatformThree-Axis Auto Stabilizing Video Camera Platform
Three-Axis Auto Stabilizing Video Camera PlatformEklavya Sharma
 
Smart Surveillance Bot with Low Power MCU
Smart Surveillance Bot with Low Power MCUSmart Surveillance Bot with Low Power MCU
Smart Surveillance Bot with Low Power MCUIRJET Journal
 
IRJET - Smart Doorbell System
 IRJET - Smart Doorbell System IRJET - Smart Doorbell System
IRJET - Smart Doorbell SystemIRJET Journal
 
Home Security System using ESP32-CAM and Telegram Application
Home Security System using ESP32-CAM and Telegram ApplicationHome Security System using ESP32-CAM and Telegram Application
Home Security System using ESP32-CAM and Telegram ApplicationIRJET Journal
 
IoT Based Smart Surveillance System
IoT Based Smart Surveillance SystemIoT Based Smart Surveillance System
IoT Based Smart Surveillance SystemIRJET Journal
 
Gas leakage detection system
Gas leakage detection systemGas leakage detection system
Gas leakage detection systemAashiq Ahamed N
 
IRJET- Intruder Detection Security System
IRJET- Intruder Detection Security SystemIRJET- Intruder Detection Security System
IRJET- Intruder Detection Security SystemIRJET Journal
 

Similar to Stay away from me (20)

Distance Measurement Using Ultrasonic Sensor and Nodemcu
Distance Measurement Using Ultrasonic Sensor and NodemcuDistance Measurement Using Ultrasonic Sensor and Nodemcu
Distance Measurement Using Ultrasonic Sensor and Nodemcu
 
csc project .docx
csc project .docxcsc project .docx
csc project .docx
 
3d printer electronics engineering live projects abstracts @1000KV Technologi...
3d printer electronics engineering live projects abstracts @1000KV Technologi...3d printer electronics engineering live projects abstracts @1000KV Technologi...
3d printer electronics engineering live projects abstracts @1000KV Technologi...
 
Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397
 
Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397Ijarcet vol-2-issue-7-2389-2397
Ijarcet vol-2-issue-7-2389-2397
 
THIRD EYE FOR BLIND
THIRD EYE FOR BLINDTHIRD EYE FOR BLIND
THIRD EYE FOR BLIND
 
FIRE ALARM SYSTEM BASED ON MCU FOR INDUSTRY APPLICATION
FIRE ALARM SYSTEM BASED ON MCU FOR INDUSTRY APPLICATIONFIRE ALARM SYSTEM BASED ON MCU FOR INDUSTRY APPLICATION
FIRE ALARM SYSTEM BASED ON MCU FOR INDUSTRY APPLICATION
 
Ijmsr 2016-02
Ijmsr 2016-02Ijmsr 2016-02
Ijmsr 2016-02
 
IoT Based Anti-Theft Detection and Alarm System Using NodeMCU and Blynk Appli...
IoT Based Anti-Theft Detection and Alarm System Using NodeMCU and Blynk Appli...IoT Based Anti-Theft Detection and Alarm System Using NodeMCU and Blynk Appli...
IoT Based Anti-Theft Detection and Alarm System Using NodeMCU and Blynk Appli...
 
FFicili_Curriculum - v1.3 - 07092014 - ENG
FFicili_Curriculum - v1.3 - 07092014 - ENGFFicili_Curriculum - v1.3 - 07092014 - ENG
FFicili_Curriculum - v1.3 - 07092014 - ENG
 
Fire fighting robot
Fire fighting robotFire fighting robot
Fire fighting robot
 
Three-Axis Auto Stabilizing Video Camera Platform
Three-Axis Auto Stabilizing Video Camera PlatformThree-Axis Auto Stabilizing Video Camera Platform
Three-Axis Auto Stabilizing Video Camera Platform
 
Smart Surveillance Bot with Low Power MCU
Smart Surveillance Bot with Low Power MCUSmart Surveillance Bot with Low Power MCU
Smart Surveillance Bot with Low Power MCU
 
IRJET - Smart Doorbell System
 IRJET - Smart Doorbell System IRJET - Smart Doorbell System
IRJET - Smart Doorbell System
 
Home Security System using ESP32-CAM and Telegram Application
Home Security System using ESP32-CAM and Telegram ApplicationHome Security System using ESP32-CAM and Telegram Application
Home Security System using ESP32-CAM and Telegram Application
 
IoT Based Smart Surveillance System
IoT Based Smart Surveillance SystemIoT Based Smart Surveillance System
IoT Based Smart Surveillance System
 
Autonomous temperature sensor
Autonomous temperature sensor Autonomous temperature sensor
Autonomous temperature sensor
 
Gas leakage detection system
Gas leakage detection systemGas leakage detection system
Gas leakage detection system
 
IRJET- Intruder Detection Security System
IRJET- Intruder Detection Security SystemIRJET- Intruder Detection Security System
IRJET- Intruder Detection Security System
 
abstract
abstractabstract
abstract
 

Recently uploaded

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 

Recently uploaded (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

Stay away from me

  • 1. University of Messina Department of Engineering Course in Engineering and Computer Science (ECS) B.Sc. CASALE GIUSEPPE Project for Embedded System System Security with Arduino Yún: “ Stay Away From Me! ” peppecasale@virgilio.it
  • 2. Use scenario: Pedestal in an exhibition CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it ● Short messages are displayed on the LCD according to the area of interest. ● In “Allarme”, an Alert is sent by e-mail through the Temboo service.
  • 3. START Welcome Message Sensors Calibration CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it Motion Detected? SI In which Direction? I Orient the Servo I Calculate the Distance and Act Accordingly END Anyway, I Calculate the Distance from a Possible Object No
  • 4. CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it DIAGRAM OF OPERATION...PROJECT
  • 5. CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it DIAGRAM OF OPERATION...TEMBOO Source: https://temboo.com/
  • 6. CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it ● 1x Board Arduino Yún rel. 4; ● 1x Breadboard; ● 2x HC-SR501 PIR; ● 2x 10 Kohms Resistor with +/- 5% tolerance; ● 1x 2004A LCD Display with 20x4 characters available; ● 1x 220 ohms Resistor with +/- 5% tolerance; ● 1x Potentiometer; ● 1x SG90 Servo-motor; ● 1x 100 μF Condenser; ● 1x HC-SR04 Ultrasonic Sensor; ● Different wires; Components Used:
  • 7. ARDUINO YúN Heart of the entire system!!! Provided with: Microcontroller, Microprocessor, wired or wireless network connectivity, pins to communicate with the outside world, micro-SD and much more... Source: http://arduino.cc/en/Main/ArduinoBoardYun CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
  • 8. PIR SENSOR (Pyroelectric InfraRed) How does it work? It detects, through 2 slots, the infrared emission produced by an object! Datasheet: http://www.datasheet-pdf.info/entry/HC-SR501-Datasheet-PDF CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
  • 9. The magic happens with the Fresnel lens. The Principle: How it happens: How we see it! CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it https://it.wikipedia.org/wiki/Lente_di_Fresnel
  • 10. 20x4 LCD Display CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it ● Interaction with the external environment through messages; ● To write a character you need to: 1. Make sure the cursor is at the point where you want to print the character; 2. Set to 1 the R / S pin and to 0 the R / W pin; 3. Send the corresponding ASCII character code; 4. Set to 1 the E pin for at least 450 nanoseconds and then back to 0. ● Do you want it to be easy??? Use the liquidCrystal LIBRARY [ https://www.arduino.cc/en/Reference/LiquidCrystal ]
  • 11. 20x4 LCD Display CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it Time of sensors calibration: do I see the countdown??? Please...I use the ALIEN!!! How can I make animation on a text display???
  • 12. TAITO’S ALIEN CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it Easy: I draw the Pixels... ...I recall them to make an ANIMATION!
  • 13. The ultrasonic sensor: HC-SR04 CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it When the sound waves encounter the separation interface between two material means, they give rise to phenomena such as refraction and reflection.
  • 14. The ultrasonic sensor: HC-SR04 CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it It uses the concept of sonar to determine the distance to an object, as bats or dolphins. Datasheet: https://docs.google.com/document/d/1Y-yZnNhMYy7rwhAgyL_pfa39RsB-x2qR4vP8saG73rE/edit.
  • 15. SG90 Servo CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it Within the servomotors, there are several mechanical and electronic parts. Here's a list: ● DC Motor -> Moves the wheels; ● Potentiometer -> Generates a resistive value proportional to the angle of the current position; ● Control electronics (feedback system) -> decides the direction of the rotation; ● Motor driver (power stage) -> Feeds the motor correctly; ● Set of gears and gear reduction mechanism -> These are used to increase the accuracy, reduce the inertia and increase the torque; SG90 9g Micro Servo: http://www.micropik.com/PDF/SG90Servo.pdf
  • 16. COMPLETE REALIZATION OF THE CIRCUIT CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it
  • 17. TEMBOO x E-MAIL CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it ● It provides a unified access to more than 100 web services, including the ability to send emails; ● Key words: TembooChoreo and SendEmailChoreo; ● Input Parameters for the Choreo: 1. (“Username”, GMAIL_USER_NAME): this is the username of the Gmail account, which also corresponds to the email address of the Sender, formatted as a full email address; 2. (“Password”, GMAIL_APP_PASSWORD): this allows a user that uses the two-step verification to access to his/her Google Account through unofficial applications. It is generated automatically, immediately after entering the security code provided by the Google Authenticator App [ ], in the Auth phase of the creation of the application; 3. (“ToAddress”, TO_EMAIL_ADDRESS): this is the email address of the Recipient; 4. (“Subject”, “Testo_Personalizzabile”): it represents the voice OBJECT in the header of an email. The User can insert the text he/she prefers instead of Testo_Personalizzabile; 5. (“MessageBody”, “Testo_Personalizzabile” ): the text inserted by the User will be the BODY of the email instead of Testo_Personalizzabile;
  • 18. “TembooAccount.h” CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it ● Key word: SECURITY!!! ● External file for sensitive data of the Temboo and Gmail Account; ● Parameters: 1. TEMBOO_ACCOUNT: this is the name associated to the Temboo account; 2. TEMBOO_APP_KEY_NAME: this is the name of the key associated to the project, in this case “TiHoVisto” (I’ve Seen You); 3. TEMBOO_APP_KEY: this is the univocal key generated by Temboo for the particular App; 4. GMAIL_USER_NAME: this is the username, formatted as a complete email address, of the Gmail account of the sender; 5. GMAIL_APP_PASSWORD: this is the password of the sender’s account codified in base64; 6. TO_EMAIL_ADDRESS: this is the email address of the recipient of the Alert;
  • 19. CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it REFERENCE [1] Arduino Yun official page: http://arduino.cc/en/Main/ArduinoBoardYun. [2] Wikipedia page: Breadboard: https://it.wikipedia.org/wiki/Breadboard. [3] Datasheet PIR HC-SR501 sensor: http://www.datasheet-pdf.info/entry/HC-SR501-Datasheet-PDF. [4] Shenzhen Eone Electronics CO.,LTD. Specification For LCD Module 2004A: https://www.beta-estore.com/download/rk/RK-10290_410.pdf [5] Micropic.com - SG90 9g Micro Servo: http://www.micropik.com/PDF/SG90Servo.pdf. [6] Cytron Technology. Product User’s Manual – HC-SR04 Ultrasonic Sensor: https://docs.google.com/document/d/1Y-yZnNhMYy7rwhAgyL_pfa39RsB-x2qR4vP8saG73rE/edit. [7] Arduino official page. http://arduino.cc/ [8] Wiring official page. http://wiring.org.co/ . [9] Processing official page. https://processing.org/ . [10] Community Arduino official page: https://forum.arduino.cc/ [11] Dario Bruneo. Embedded Systems slide part 3: The Arduino Yún Board, 2014. [12] 8-bit avr microcontroller with 16/32k bytes of isp ash and usb controller. ATmega16U4 and ATmega32U4: http://www.atmel.com/Images/Atmel-7766-8-bit-AVR-ATmega16U4-32U4_Datasheet.pdf.
  • 20. CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it [13] Datasheet for Qualcomm Atheros AR9331: https://www.atheros-drivers.com/qualcomm-atheros-download-datasheets-nr-110-with-code-4351.html . [14] OpenWrt official page: https://openwrt.org/ . [15] Linino official page: http://www.linino.org/ . [16] cURL official page: http://curl.haxx.se/ . [17] Python scripting language official page. https://www.python.org/ . [18] Bridge Library official page. http://arduino.cc/en/Tutorial/Bridge/ . [19] EEPROM Library official page. https://www.arduino.cc/en/Reference/EEPROM/ . [20] Wire Library official page. http://arduino.cc/en/Reference/Wire/ . [21] SPI Library official page. http://arduino.cc/en/Reference/SPI/ . [22] LiquidCrystal Library official page. https://www.arduino.cc/en/Reference/LiquidCrystal/ . [23] Wikipedia page on HD44780: https://it.wikipedia.org/wiki/HD44780/ . [24] Servo Library official page: https://www.arduino.cc/en/Reference/Servo/ . [25] NewPing Library official page: http://playground.arduino.cc/Code/NewPing/ . [26] Wikipedia page on Taito’s Space Invaders: https://it.wikipedia.org/wiki/Space_Invaders/ .
  • 21. CASALE GIUSEPPE - Engineering and Computer Science - ECS UNIME - peppecasale@virgilio.it Credits: Dr. Giuseppe Casale E-mail: peppecasale@virgilio.it Tel.: 340.095.33.86 Fb.com/Giuseppe.Casale01 https://youtu.be/1IioQDRjlNA