Take off

블로그 이미지
by 안.들
  • Total hit
  • Today hit
  • Yesterday hit

'IoT'에 해당되는 글 21건

  1. 2017.06.14
    BOB-12758 사용방법
  2. 2017.05.14
    인체감지센서
  3. 2017.05.13
    아듀이노, LCD 디스플레이와 온도센서(LM35) 를 이용한 온도계 만들기.
  4. 2017.04.29
    아두이노 웹서버만들기 1
  5. 2017.04.17
    iotmakers
  6. 2017.03.15
    NodeJS + MongoDB Web Server Raspberry Pi
  7. 2017.03.15
    라즈베리파이+restful API 이용하기
  8. 2017.03.15
    라즈베리파이+모션센서
  9. 2017.03.03
    thingplus dropbox 사진연동 error 확인
  10. 2017.02.19
    ubuntu에 arduino설치하기

https://learn.sparkfun.com/tutorials/electret-mic-breakout-board-hookup-guide

제조업체 SparkFun Electronics 

부품 번호 BOB-12758

AND
센서감도와 delay시간 조절하여
인체감지시 led on/off


감지 전


감지 후


좌: delay시간조절
우: 센서 감도조절


GND / signal / VCC



스케치코드))

 

int ledPin = 13; // LED 연결핀

int inputPin = 2; // 센서 시그널핀

int pirState = LOW; // PIR 초기상태

int val = 0; // Signal 입력값


int LED_PIN = 4;


 

void setup() {

    pinMode(ledPin, OUTPUT); // LED Output 설정

    pinMode(inputPin, INPUT); // 센서 Input 설정

    pinMode(LED_PIN, OUTPUT);


 

    Serial.begin(9600);

}

 

void loop(){

    val = digitalRead(inputPin); // 센서값 읽기

    if (val == HIGH) { // 인체감지시

        digitalWrite(ledPin, HIGH); // LED ON

        digitalWrite(LED_PIN, LOW); 

           

        if (pirState == LOW) {

        // 시리얼모니터에 메시지 출력

        Serial.println("Motion detected!");

        pirState = HIGH;

        }

    } else {

        digitalWrite(ledPin, LOW); // LED OFF

        digitalWrite(LED_PIN, HIGH);

        

        if (pirState == HIGH){        

            // 시리얼모니터에 메시지 출력            

            Serial.println("Motion ended!");

            pirState = LOW;

        }

    }

}






AND

아듀이노, LCD 디스플레이와 온도센서(LM35) 를 이용한 온도계 만들기.


준비물 : 브레드보드, 포텐시오미터, 16x2 LCD, LM35, 아두이노 uno



참고 url)

http://mechasolutionwiki.com/index.php?title=%EB%94%94%EC%A7%80%ED%84%B8_%EC%98%A8%EB%8F%84%EA%B3%84_%EB%A7%8C%EB%93%A4%EA%B8%B0


'IoT > 아두이노' 카테고리의 다른 글

BOB-12758 사용방법  (0) 2017.06.14
인체감지센서  (0) 2017.05.14
아두이노 웹서버만들기  (1) 2017.04.29
ubuntu에 arduino설치하기  (0) 2017.02.19
아듀이노 radar  (0) 2017.01.14
AND


아듀이노 ide의
예제) Ethernet 을 이용하여 테스트
Mac Addresss는 임의로 지정하여 세팅함. 기존 local PC의 번호및 ip 참고함.
SD카드는 파일저장, 이미지저장소 등으로 이용가능함.
프로그램으로 해당경로의 이미지를 불러와서 웹서버의 html 에 이미지 표현가능함.

참고 url) http://www.instructables.com/id/Arduino-Ethernet-Shield-Tutorial/


AND
AND


+NodeJS + MongoDB Web Server Raspberry Pi Tutorial


http://raspberrypituts.com/nodejs-mongodb-web-server-raspberry-pi-tutorial/

http://andyfelong.com/2016/03/using-python-with-mongodb-on-raspberry-pi-2/

'IoT > 라즈베리파이' 카테고리의 다른 글

iotmakers  (0) 2017.04.17
라즈베리파이+restful API 이용하기  (0) 2017.03.15
라즈베리파이+모션센서  (0) 2017.03.15
thingplus dropbox 사진연동 error 확인  (0) 2017.03.03
PCA9685 Driver (16 채널) 에 대해서  (0) 2016.10.06
AND



http://www.robert-drummond.com/2013/05/08/how-to-build-a-restful-web-api-on-a-raspberry-pi-in-javascript-2/

'IoT > 라즈베리파이' 카테고리의 다른 글

iotmakers  (0) 2017.04.17
NodeJS + MongoDB Web Server Raspberry Pi  (0) 2017.03.15
라즈베리파이+모션센서  (0) 2017.03.15
thingplus dropbox 사진연동 error 확인  (0) 2017.03.03
PCA9685 Driver (16 채널) 에 대해서  (0) 2016.10.06
AND




https://codefooo.gitbooks.io/raspberry-experiments/content/%EC%8B%A4%ED%97%987-%EB%AA%A8%EC%85%98-%EC%84%BC%EC%84%9C.html


http://blog.naver.com/agapeuni/220275640761



https://diyhacking.com/raspberry-pi-gpio-control/



모션 sensor detect => 사진찍기


AND

root@doitforyou.co.kr:/opt/thingplus/openhardware/raspberrypi/camera# ./thingplus_device.sh status

stopped

root@doitforyou.co.kr:/opt/thingplus/openhardware/raspberrypi/camera# ./thingplus_device.sh restart

thingplus device started


root@doitforyou.co.kr:/opt/thingplus/openhardware/raspberrypi/camera# 

TypeError: Cannot call method 'replace' of undefined

    at Request._callback (/opt/thingplus/openhardware/raspberrypi/camera/dropbox-driect-url.js:14:32)

    at Request.self.callback 

===============================


dropbox-driect-url.js

이 js파일은 무슨용도인가?

url로 바로 업로드된 이미지를 볼수 있는 경로를 리턴하는것 같은데.

리턴해서 어디서 이 값을 받아 쓰는가?


에러의 원인은

var redirectUrl = response.headers.location;

location으로 값을 못가져와서 replace 명령이 오류가 발생한 것..

console.log(JSON.stringify(response.headers)); 로 찍으면 아래처럼 나오는데.

최초작성의도였던 "response.headers.location" 이 값을 가져오려면 어떤 명령어를 쓰면 될까? 


-------------------------------------- 

header:{"server":"nginx","date":"Sat, 04 Mar 2017 13:01:56 GMT","content-type":"text/html; charset=utf-8","transfer-encoding":"chunked","connection":"keep-alive","vary":"Accept-Encoding","cache-control":"no-cache","content-security-policy":"script-src 'unsafe-eval' https://www.dropbox.com/static/compiled/js/ https://www.dropbox.com/static/javascript/ https://www.dropbox.com/static/api/ https://cfl.dropboxstatic.com/static/compiled/js/ https://www.dropboxstatic.com/static/compiled/js/ https://cfl.dropboxstatic.com/static/javascript/ https://www.dropboxstatic.com/static/javascript/ https://cfl.dropboxstatic.com/static/api/ https://www.dropboxstatic.com/static/api/ https://www.google.com/recaptcha/api/ 'unsafe-inline' 'nonce-11LVKubJAI8Zmn0pJmmW' ; default-src 'none' ; worker-src blob: ; style-src https://* 'unsafe-inline' 'unsafe-eval' ; connect-src https://* ws://127.0.0.1:*/ws ; child-src https://www.dropbox.com/static/serviceworker/ blob: ; form-action 'self' https://dl-web.dropbox.com/ https://photos.dropbox.com/ https://accounts.google.com/ https://api.login.yahoo.com/ https://login.yahoo.com/ ; base-uri 'self' api-stream.dropbox.com https://showbox-tr.dropbox.com ; report-uri https://www.dropbox.com/log/csp_enforced ; img-src https://* data: blob: ; frame-ancestors 'self' ; frame-src https://* carousel://* dbapi-6://* dbapi-7://* dbapi-8://* itms-apps://* itms-appss://* ; object-src https://cfl.dropboxstatic.com/static/ https://www.dropboxstatic.com/static/ 'self' https://flash.dropboxstatic.com https://swf.dropboxstatic.com https://dbxlocal.dropboxstatic.com ; media-src https://* blob: ; font-src https://* data:","dropbox-streaming":"V=1","pragma":"no-cache","set-cookie":["locale=en; Domain=dropbox.com; expires=Thu, 03 Mar 2022 13:01:56 GMT; Path=/; secure","gvc=MTkxOTI2ODEyODcxNjQ4NzQ1NzM2NzkwNDM4MzY1OTgxODcwOTMz; expires=Thu, 03 Mar 2022 13:01:56 GMT; httponly; Path=/; secure","puc=; expires=Sat, 04 Mar 2017 13:01:56 GMT; httponly; Path=/; secure","seen-sl-signup-modal=VHJ1ZQ%3D%3D; expires=Mon, 03 Apr 2017 13:01:56 GMT; httponly; Path=/; secure","t=CeKHNZPQqaFb8CNrhjGdR-1G; Domain=dropbox.com; expires=Tue, 03 Mar 2020 13:01:56 GMT; httponly; Path=/; secure","__Host-js_csrf=CeKHNZPQqaFb8CNrhjGdR-1G; expires=Tue, 03 Mar 2020 13:01:56 GMT; Path=/; secure"],"x-content-type-options":"nosniff","x-dropbox-http-protocol":"None","x-dropbox-request-id":"1092b42b3f65a203ce9ed233bb62d77a","x-frame-options":"DENY","x-robots-tag":"noindex, nofollow, noimageindex","x-xss-protection":"1; mode=block","strict-transport-security":"max-age=15552000; includeSubDomains"}


result  ==> thingplus로부터  .js 파일받아 진행. update 안된 버전으로 테스트되어 에러 발생했음.

AND

참고)

https://www.arduino.cc/en/guide/linux#toc2


AND

ARTICLE CATEGORY

분류 전체보기 (66)
금융 (0)
관제 (4)
Unix (1)
Android (6)
Windows (2)
Java (4)
oracle (3)
web (3)
English (3)
Physics (1)
Books (6)
요리 (1)
Deep Learning (6)
IoT (21)
to-do list (0)
Music (1)

RECENT ARTICLE

RECENT COMMENT

CALENDAR

«   2025/08   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

ARCHIVE