모바일 오유 바로가기
http://m.todayhumor.co.kr
분류 게시판
베스트
  • 베스트오브베스트
  • 베스트
  • 오늘의베스트
  • 유머
  • 유머자료
  • 유머글
  • 이야기
  • 자유
  • 고민
  • 연애
  • 결혼생활
  • 좋은글
  • 자랑
  • 공포
  • 멘붕
  • 사이다
  • 군대
  • 밀리터리
  • 미스터리
  • 술한잔
  • 오늘있잖아요
  • 투표인증
  • 새해
  • 이슈
  • 시사
  • 시사아카이브
  • 사회면
  • 사건사고
  • 생활
  • 패션
  • 패션착샷
  • 아동패션착샷
  • 뷰티
  • 인테리어
  • DIY
  • 요리
  • 커피&차
  • 육아
  • 법률
  • 동물
  • 지식
  • 취업정보
  • 식물
  • 다이어트
  • 의료
  • 영어
  • 맛집
  • 추천사이트
  • 해외직구
  • 취미
  • 사진
  • 사진강좌
  • 카메라
  • 만화
  • 애니메이션
  • 포니
  • 자전거
  • 자동차
  • 여행
  • 바이크
  • 민물낚시
  • 바다낚시
  • 장난감
  • 그림판
  • 학술
  • 경제
  • 역사
  • 예술
  • 과학
  • 철학
  • 심리학
  • 방송연예
  • 연예
  • 음악
  • 음악찾기
  • 악기
  • 음향기기
  • 영화
  • 다큐멘터리
  • 국내드라마
  • 해외드라마
  • 예능
  • 팟케스트
  • 방송프로그램
  • 무한도전
  • 더지니어스
  • 개그콘서트
  • 런닝맨
  • 나가수
  • 디지털
  • 컴퓨터
  • 프로그래머
  • IT
  • 안티바이러스
  • 애플
  • 안드로이드
  • 스마트폰
  • 윈도우폰
  • 심비안
  • 스포츠
  • 스포츠
  • 축구
  • 야구
  • 농구
  • 바둑
  • 야구팀
  • 삼성
  • 두산
  • NC
  • 넥센
  • 한화
  • SK
  • 기아
  • 롯데
  • LG
  • KT
  • 메이저리그
  • 일본프로야구리그
  • 게임1
  • 플래시게임
  • 게임토론방
  • 엑스박스
  • 플레이스테이션
  • 닌텐도
  • 모바일게임
  • 게임2
  • 던전앤파이터
  • 마비노기
  • 마비노기영웅전
  • 하스스톤
  • 히어로즈오브더스톰
  • gta5
  • 디아블로
  • 디아블로2
  • 피파온라인2
  • 피파온라인3
  • 워크래프트
  • 월드오브워크래프트
  • 밀리언아서
  • 월드오브탱크
  • 블레이드앤소울
  • 검은사막
  • 스타크래프트
  • 스타크래프트2
  • 베틀필드3
  • 마인크래프트
  • 데이즈
  • 문명
  • 서든어택
  • 테라
  • 아이온
  • 심시티5
  • 프리스타일풋볼
  • 스페셜포스
  • 사이퍼즈
  • 도타2
  • 메이플스토리1
  • 메이플스토리2
  • 오버워치
  • 오버워치그룹모집
  • 포켓몬고
  • 파이널판타지14
  • 배틀그라운드
  • 기타
  • 종교
  • 단어장
  • 자료창고
  • 운영
  • 공지사항
  • 오유운영
  • 게시판신청
  • 보류
  • 임시게시판
  • 메르스
  • 세월호
  • 원전사고
  • 2016리오올림픽
  • 2018평창올림픽
  • 코로나19
  • 2020도쿄올림픽
  • 게시판찾기
  • 오유인페이지
    개인차단 상태
    키슈님의
    개인페이지입니다
    가입 : 10-03-27
    방문 : 1185회
    닉네임변경 이력
    회원차단
    회원차단해제
    게시물ID : computer_129039
    작성자 : 키슈
    추천 : 14
    조회수 : 6226
    IP : 111.91.***.56
    댓글 : 71개
    등록시간 : 2013/11/20 17:45:56
    http://todayhumor.com/?computer_129039 모바일
    라즈베리파이로 집안 보일러 제어하기 feat Nodejs
    <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5"> </span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">요새 날씨가 부쩍 추워졌습니다. 이제 정말 겨울이 다가오고 있나 봅니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">날씨가 추워지면 따뜻한 방바닥에 누워 TV를 보는게 최고 아닐까요?</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">하지만 퇴근하고 집에 들어가면 아무도 없어 썰렁합니다. ㅠㅠ</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">그렇다고 하루 종일 보일러를 틀어 놓고 출근할 수도 없지요.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">그래서 만들어 봤습니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">스마트폰으로 집에 있는 보일러 제어하기!!!</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">세줄요약:</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">1. 날씨가 춥다. 집이 썰렁하다</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">2. 스마트폰으로 보일러를 제어해야 겠다. 한번 만들어 볼까?</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">3. 성공했다. 따뜻한 겨울 나야지...</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">-------</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><b><span style="font-size: 10pt">1. 컨셉</span></b></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">뭔가 보일러를 제어할수 있는 컨트롤러가 있어야 합니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">이 컨트롤러는 집에 있는 공유기에 무선인터넷으로 연결되어 있어야 하고,</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">보일러 제어장치(보일러를 키고 끄는 장치 거실 벽에 달려 있는 장치)와도 연결되 있어야 합니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><br /></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">스마트 폰으로 집에 있는 공유기를 통해 컨트롤러에 접속해서</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">보일러의 전원을 키고 끄게 신호를 날리는 것입니다!!!</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"></p> <div style="text-align: left"><img src="http://thimg.todayhumor.co.kr/upfile/201311/1384936861ce8yleddQPrLmpJc215zh4m6MtBXa.png" width="550" height="204" alt="이미지 001.png" style="border: none" /></div> <div style="text-align: left"><br /></div> <p></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><b><span style="font-size: 10pt">2. 무엇이 필요할까?</span></b></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">컨트롤러는 와이파이로 공유기에 연결돼 있어야 하고, 보일러의 전원을 제어하는 장치도 필요합니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">요즘 아두이노가 하드웨어를 제어할 수 있다는 것을 들은적이 있어 일단 검색해 봤습니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"></p> <div style="text-align: left"><img src="http://thimg.todayhumor.co.kr/upfile/201311/1384936911BFsShlNU4MRCwCJ68QaSxzCUg31R.png" width="216" height="171" alt="이미지 002.png" style="border: none" /></div><br /> <p></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">오~ 가격은 3만원대.</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">여기에 뭔가 막 프로그래밍하면 마치 보일러를 제어 할 수 있을 것만 같은 느낌이 들었습니다.</span> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">어떻게 프로그래밍 하면 되는지 무선랜에는 어떻게 연결하면 되는지 더 찾아 봤습니다.</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5"> </span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">그런데 문제가 생겼습니다.</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">아두이노 자체로는 무선랜에 연결할 수 없고, 확장 보드를 구매해 장착해야 한답니다.</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5"> </span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"></p> <div style="text-align: left"><img src="http://thimg.todayhumor.co.kr/upfile/201311/1384936925ZMbNlu5h.png" width="618" height="170" alt="이미지 003.png" style="border: none" /></div><br /> <p></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5"> </span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">이 무선랜 모듈이 무려 12만원입니다. 비싸서 포기..ㅋㅋ</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">또 어디서 들은게 있어서 라즈베리 파이를 알아봅니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"></p> <div style="text-align: left"><img src="http://thimg.todayhumor.co.kr/upfile/201311/1384936938ySSFmu13x.png" width="413" height="300" alt="이미지 004.png" style="border: none" /></div><br /> <p></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><br /></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">오~ 뭔가 이더넷 포트도 있고 USB도 있어 당장 쓸 수 있을 것 같습니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">가격도 4만원대로 착하네요.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">스펙을 살펴보니 유선랜은 기본 지원이나 무선랜은 지원하지 않는다고 합니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">그래서 USB에 무선랜카드를 달면 되지 않을까 검색해 봅니다. </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5"></span></p> <div style="text-align: left"><img src="http://thimg.todayhumor.co.kr/upfile/201311/1384936954swsrkUmAwIUfUIte7qR5OH.png" width="239" height="214" alt="이미지 005.png" style="border: none" /></div> <p></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">오호~ 깜찍하기도 해라. 요런 무선랜카드를 USB에 끼워 넣으면 바로 무선랜을 쓸 수 있다고 하네요. ㅋ</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">그런데 라즈베리파이에서 하드웨어를 제어 할 수 있을까요?</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">뭔가 저 왼쪽 위에 달려 있는 GPIO라 불리는 핀들이 인터페이스 역할을 할 것 같습니다. 또 검색해 봅니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">GPIO는 General Purpose Input/Output의 약자로 입출력 신호를 제어할 수 있는 인터페이스라고 합니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">SPI, I2C, UART 같은 (듣도 보도 못한)통신 등도 가능하다고 하네요.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">각각의 GPIO 핀은 아래와 같은 역할을 한다고 합니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">또한 GPIO를 제어하기 위한 C/C++, Python, Nodejs 기반의 라이브러리가 있다고 하니,</span> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">프로그래밍도 어느 정도 가능할 듯 합니다.</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5"> </span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"></p> <div style="text-align: left"><img src="http://thimg.todayhumor.co.kr/upfile/201311/1384936967BkEAAJkrOK.png" width="357" height="235" alt="이미지 006.png" style="border: none" /></div><br /> <p></p> <div style="font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">대충 리서치가 다 끝났습니다.</span></div> <div style="font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">라즈베리파이 + 무선랜 + 데비안 + GPIO + Nginx + Nodejs 요렇게 구성해 볼랍니다.</div> <div style="font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </div> <div style="font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><b><span style="font-size: 10pt">3. 구매</span></b></div> <div style="font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">컨셉은 간단해 보여도 고민해야 할 것들이 많았습니다.</div> <div style="font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">테스트는 어떻게 할 것이며, 전원은 어떻게 제어할 것이며...</div> <div style="font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">라즈베리파이 하나만 산다고 될 일이 아니었습니다.</div> <div style="font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </div> <div style="font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">가장 큰 고민은 전원제어 장치였는데요,</div> <div style="font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">이래저래 검색하다가 릴레이 모듈이라는 걸 발견했습니다.</div> <div style="font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </div> <div style="font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> <div style="text-align: left"><img src="http://thimg.todayhumor.co.kr/upfile/201311/1384936980RhrLtWaz7lh2.png" width="148" height="137" alt="이미지 007.png" style="border: none" /></div></div> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">이놈의 원리는 간단합니다. 특정 시그널이 들어오면 스위치를 닫아 주는 역할이지요.</span> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">보일러 전원을 이 릴레이여 연결하고 라즈베리파이의 GPIO를 통해 시그널을 날려 주면 스위치를 켜 주게 되는 것입니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"></p> <div style="text-align: left"><img src="http://thimg.todayhumor.co.kr/upfile/201311/1384936992fI5V2MikgD2KjIJmrv7q.png" width="433" height="248" alt="이미지 008.png" style="border: none" /></div><br /> <p></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">이게 릴레이모듈의 회로도인데요,</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">처음엔 뭣도 모르고 그냥 되겠지 했는데 <span style="font-size: 9pt; line-height: 1.5">이거 잘 이해해야 릴레이 모듈을 GPIO와 연동 할 수 있습니다.</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">저도 그냥 이해 될 때까지 회로도만 바라 보았습니다. 몇일 계속 보다 보니 이해가 되드라구요..ㅠㅠ</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">참고로 </span><a target="_blank" href="http://www.youtube.com/watch?v=b6ZagKRnRdM" target="_blank" style="background-color: transparent">http://www.youtube.com/watch?v=b6ZagKRnRdM</a> <-- 요 동영상에 잘 설명되어 있습니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">어쨌든 릴레이모듈과 테스트를 위한 LED, 각종 점퍼케이블, 브레드 보드까지 모두 구매합니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"></p> <div style="text-align: left"><img src="http://thimg.todayhumor.co.kr/upfile/201311/1384937007Zi5Aw9ypGqTBp3BFqG7lgFw4TB.png" width="425" height="747" alt="이미지 009.png" style="border: none" /></div><br /> <p></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><b><span style="font-size: 10pt">4. 개발</span></b></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">라즈베리파이에 OS를 올리는 건 쉽게 됐습니다. 라즈베리파이 홈페이지에서 제공하는 데비안 기반의 라즈비안 이미지를 SD카드에 넣고 끼워주면 끝.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">한가지 까다로웠던 것은 데비안에서 무선랜을 설정하는 것이 였는데요, 이건 뭐 이런 저런 삽질 하다 보니 어찌 어찌 됐습니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">웹페이지를 통해 제어하기로 하고, nginx를 설치합니다. 쉽게 됩니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">nodejs도 설치 합니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">GPIO를 제어하기 위한 nodejs 패키지도 설치합니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">찾아보니 'onoff'라는 패키지가 제일 많이 쓰이는 듯 하네요.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif">https://github.com/fivdi/onoff </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">웹페이지를 제작합니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">nodejs의 exporess를 기반으로 하고</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">다 개발하려면 시간이 많이 걸리니 UI프레임워크를 사용합니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif"><a target="_blank" href="http://expressjs.com/" target="_blank" style="background-color: transparent">http://expressjs.com/</a> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif"><a target="_blank" href="http://www.lungo.tapquo.com/" target="_blank" style="background-color: transparent">http://www.lungo.tapquo.com/</a> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">개발된 화면은 다음과 같습니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">로직은 간단합니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">페이지가 로딩 될 때 보일러의 현재 상태를 가져와 화면에 보여주고</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">'on'버튼을 누르면 nodejs의 onoff 패키지의 메소드를 통해</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">특정 GPIO 핀에 시그널을 보내는 것입니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"></p> <div style="text-align: left"><img src="http://thimg.todayhumor.co.kr/upfile/201311/1384937021UZ49MZp1YKvHlyudok6.png" width="219" height="326" alt="이미지 010.png" style="border: none" /></div><br /> <p></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><b><span style="font-size: 10pt">5. 테스트</span></b></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">실제로 보일러제어 장치를 뜯어 내기 전에 제대로 동작하는지 브레드보드에 릴레이와 LED를 연결해 확인합니다.</p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"></p> <div style="text-align: left"><img src="http://thimg.todayhumor.co.kr/upfile/201311/1384937030457HmPExfgSuSrFsK8ylh37xMWOF6JeA.png" width="300" height="226" alt="이미지 011.png" style="border: none" /></div><br /> <p></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><b><span style="font-size: 10pt">6. 보일러에 연결</span></b></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">보일러제어장치를 뜯어 전원선을 릴레이에 연결합니다.</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5"> </span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"></p> <div style="text-align: left"><img src="http://thimg.todayhumor.co.kr/upfile/201311/1384937042ihNKH5epYV.png" width="282" height="392" alt="이미지 012.png" style="border: none" /></div><br /> <p></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5"> </span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5"> </span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">다음 영상으로 확인 가능합니다.</span> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><br /></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><br /></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><iframe width="420" height="315" src="//www.youtube.com/embed/aGg_XX7Jyvo" frameborder="0" allowfullscreen=""></iframe></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5"><b><span style="font-size: 10pt">7. 앞으로 할일</span></b></span> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">온도 센서를 달 생각입니다.</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">특정 온도 이하로 떨어지면 보일러를 1시간동안 켜기 같은 기능을 추가할 예정입니다.</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5"> </span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">시간 설정 기능도 추가할 예정입니다.</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">몇시부터 몇시까지 켠다거나 끄는 기능을 넣을 생각입니다.</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"> </p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt">긴 글 읽어주셔서 <span style="font-size: 9pt; line-height: 1.5">감사합니다!</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5">모두들 따뜻한 겨울나세요~</span></p> <p style="margin: 0px; padding: 0px; font-family: 나눔고딕, NanumGothic, sans-serif; font-size: 9pt"><span style="font-size: 9pt; line-height: 1.5"> </span></p> <div><span style="font-size: 9pt; line-height: 1.5"><br /></span></div>

    이 게시물을 추천한 분들의 목록입니다.
    [1] 2013/11/20 17:49:46  121.183.***.110  버블드래곤  162835
    [2] 2013/11/20 17:54:11  14.48.***.247  오유발굴단  459931
    [3] 2013/11/20 18:08:15  223.62.***.69  손연재♥  308516
    [4] 2013/11/20 18:12:52  121.144.***.146  E_Sukmean  293448
    [5] 2013/11/20 18:30:21  58.151.***.154  신밧드의보험  1586
    [6] 2013/11/20 18:50:57  119.198.***.8  인민에어  346503
    [7] 2013/11/20 18:56:35  112.160.***.101  TalesParty  137344
    [8] 2013/11/20 18:56:39  59.7.***.26  작은돼지  140557
    [9] 2013/11/20 19:06:54  124.198.***.131  한영사전  51909
    [10] 2013/11/20 19:07:09  211.36.***.23  해떠따  81330
    푸르딩딩:추천수 3이상 댓글은 배경색이 바뀝니다.
    (단,비공감수가 추천수의 1/3 초과시 해당없음)

    죄송합니다. 댓글 작성은 회원만 가능합니다.

    번호 제 목 이름 날짜 조회 추천
    10
    보일러 켜 주는 로봇! 쉽게 만들어 봅시다~ 창작글 키슈 18/07/22 12:32 47 1
    9
    2018.05 라양라양 다이빙 [1] 창작글 키슈 18/06/02 01:49 35 1
    8
    [실시간-종료] 베트남여행기 - 아바타아님 [21] 창작글 키슈 17/04/28 20:29 63 7
    7
    2016.05. 교토, 오사카 창작글 키슈 16/05/20 10:44 39 1
    6
    시파단 다이빙.youtube 창작글 키슈 15/11/08 22:27 15 2
    5
    시파단 실시간 여행기 [12] 창작글 키슈 15/10/25 12:28 28 2
    4
    낙성대역에서 보스 이어폰 잃어버리신 분 키슈 15/09/23 22:16 46 1
    3
    실시간 이집트 여행기 4.30 ~ 5.22 [52] 키슈 15/04/30 13:29 100 11
    2
    몰디브 다이빙 투어 [3] 키슈 14/05/14 16:33 34 0
    라즈베리파이로 집안 보일러 제어하기 feat Nodejs [3] 키슈 13/11/20 17:45 87 5
    [1]
    단축키 운영진에게 바란다(삭제요청/제안) 운영게 게시판신청 자료창고 보류 개인정보취급방침 청소년보호정책 모바일홈