Raspberry Pi and Concept Board Building Home Automation with … Automation.pdf · 2015-01-03 ·...

Preview:

Citation preview

Globalcode – Open4education

Building Home Automation with Arduino, Raspberry Pi and Concept Board

Globalcode – Open4education

Home Automation

Globalcode – Open4education

Internet of Things (IoT)

Globalcode – Open4education

Home Automation

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

● Monitor Thingsa. temperature, humidity, presence

● We need controllers...

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

Globalcode – Open4education

Today

● Control home any appliance using:

○ Arduino: very small computer

○ Concept Board: small computer + cell phone

○ Raspberry Pi: medium size computer

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!

Globalcode – Open4education

Relay Board

Computer

ArduinoRaspberryConcept

Home Appliance

Wall SocketSwitch Plug

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

Globalcode – Open4education

1. Arduino

Globalcode – Open4education

1. Arduino code

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

}

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

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

}

Globalcode – Open4education

Raspberry Pi

● Credit card size computer

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

Globalcode – Open4education

Raspberry Pi

Globalcode – Open4education

Gemalto Concept Board

● Between Arduino and Raspberry Pi

● 3G Support

● Compatible with Arduino

Globalcode – Open4education

Gemalto Lab: call4fun

● Plug your relay following instructions

● Insert your phone SIM card

● Call your board!

Recommended