라즈베리파이 홈 오토메이션

12
Raspberry Pi 로 로로로 로 로로로로로

Upload: juhyeon-yeom

Post on 23-Jun-2015

872 views

Category:

Technology


0 download

DESCRIPTION

Pi Home

TRANSCRIPT

Page 1: 라즈베리파이 홈 오토메이션

Raspberry Pi 로 만드는홈 오토메이션

Page 2: 라즈베리파이 홈 오토메이션

Device Home

Pi Home

Hmm…

Page 3: 라즈베리파이 홈 오토메이션

Raspberry Pi

• 2006 년 초기 컨셉이 시작됨 (Eben Upton)• 2012 년 2 월 말 판매 시작• 2012 년 4 월 부터 구매자에게 배송 시작• 2013 년 초에 1,000,000 대 판매• 2013 년 2 월부터 Model A 버전을 개발 판매

시작

( 라즈베리파이 B+)

Page 4: 라즈베리파이 홈 오토메이션

Raspberry Pi

Page 5: 라즈베리파이 홈 오토메이션

Raspberry Pi

• 오픈소스 = 다양한 커뮤니티• 저전력 (A 버전 = 2.5w, B 버전 = 3.5w)• OS 탑재• 다양한 언어 지원• 가성비

( 라즈베리파이 B+)

Page 6: 라즈베리파이 홈 오토메이션

Device Home

Pi Home

Page 7: 라즈베리파이 홈 오토메이션

Groove - Re-lay

멀티탭

유선랜

1.0mm 전선

합판

점퍼선 , 리드선

빵판

더 나아가

• 유선랜 -> 무선랜

• SD -> Micro or B+ 구입

• 빵판 -> 만능기판 납땜

전등 ON!!!

Pi Home Component

Page 8: 라즈베리파이 홈 오토메이션

• Device Version : B (512MB)

• OS : 라즈비안

• Language : Python, html

• Library : Webiopi

Raspberry Pi

Page 9: 라즈베리파이 홈 오토메이션

http://라즈베리파이ip:8000

User name : webiopiPassword: raspberry

Webiopi

Page 10: 라즈베리파이 홈 오토메이션

webiopi().ready(function() {

var content, button; content = $("#content");

// Control Heating Pad for GPIO 18button = webiopi().createGPIOButton(18, "전등 ");

content.append(button); //append button to content div

webiopi().refreshGPIO(true);

button = webiopi().createGPIOButton(23, "장판” );content.append(button);

webiopi().refreshGPIO(true); });

Index.html

GPIO = webiopi.GPIO

LAMP = 18HEATSIT = 23

def setup(): webiopi.debug("Script with macros - Setup") # Setup GPIOs GPIO.setFunction(LAMP, GPIO.OUT) GPIO.setFunction(HEATSIT, GPIO.OUT)def loop():

webiopi.sleep(1)

def destroy():GPIO.digitalWrite(LAMP, GPIO.LOW)GPIO.digitalWrite(HEATSIT, GPIO.LOW)

Script.py

Page 11: 라즈베리파이 홈 오토메이션

In Future

Page 12: 라즈베리파이 홈 오토메이션

Q&A