raspberry pi and concept board building home automation with … automation.pdf · 2015-01-03 ·...

16
Globalcode – Open4education Building Home Automation with Arduino, Raspberry Pi and Concept Board

Upload: others

Post on 21-May-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

Building Home Automation with Arduino, Raspberry Pi and Concept Board

Page 2: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

Home Automation

Page 3: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

Internet of Things (IoT)

Page 4: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

Home Automation

● Control Thingsa. Gates, lamps, shades, music..

● Monitor Thingsa. temperature, humidity, presence

● We need controllers...

Page 5: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

Home Automation

● Small Computer = Microcomputer○ Low energy consumption○ Limited Resources○ Do somethings at the same time

● Very small computer = Microcontroller○ Very low energy consumption○ Very Limited Resources○ Do a few things at the same time

Page 6: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

Today

● Control home any appliance using:

○ Arduino: very small computer

○ Concept Board: small computer + cell phone

○ Raspberry Pi: medium size computer

Page 7: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

Basic Control: on / off

● Turn on / off home appliance is a nice start!

● We can use a relay to turn on / off energy;

● We need to control this relay!

Page 8: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

Relay Board

Computer

ArduinoRaspberryConcept

Home Appliance

Wall SocketSwitch Plug

Page 9: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

1. Arduino

● Very small computer: 2KB memory, 16mhz clock● Very low energy consumption● Large do it yourself (D.I.Y.) community● Can control things and monitor sensors● One program per time● Wiring language based on C / C++ Language

Page 10: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

1. Arduino

Page 11: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

1. Arduino code

void setup() {pinMode(13, OUTPUT);

}

void loop() {digitalWrite(13, HIGH);delay(1000);

digitalWrite(13, LOW);delay(1000);

}

Page 12: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

Raspberry Pi

● Credit card size computer

Page 13: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

Raspberry Pi

● Runs Linux

● Educational proposal

● Medium size computer (700mhz, 512MB RAM)

● GPIO: allows you to plug sensors and control things

● Uses SD Card as hard-disk

Page 14: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

Raspberry Pi

Page 15: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

Gemalto Concept Board

● Between Arduino and Raspberry Pi

● 3G Support

● Compatible with Arduino

Page 16: Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 · Building Home Automation with Arduino, Raspberry Pi and Concept Board. Globalcode

Globalcode – Open4education

Gemalto Lab: call4fun

● Plug your relay following instructions

● Insert your phone SIM card

● Call your board!