라즈베리 파이 Node.js 설치

http://rockycha.tistory.com/19


라즈베리 파이 고정 IP 설정

http://kgu0724.tistory.com/33

udo nano /etc/dhcpcd.conf     # Setting은 여기서 진행합니다.

netstat -nr      # router를 확인 하기 위한 값



interface wlan0

static ip_address=192.168.100.60/24     <--------- 고정 ip로 만들고 싶은 값

static routers=192.168.100.1    <-------- netstat -nr을 통해 확인한 값

static domain_name_servers=192.168.100.1     <---------- 위의 값과 동일 


라즈베리 파이 부팅후 자동 실행

http://fishpoint.tistory.com/2370

pi@raspberrypi:/etc/profile.d $ sudo nano bash_completion.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Check for interactive bash and that we haven't already been sourced.
if [ -n "$BASH_VERSION" -a -n "$PS1" -a -z "$BASH_COMPLETION_COMPAT_DIR" ]; then
# Check for recent enough version of bash.
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
if [ $bmajor -gt 4 ] || [ $bmajor -eq 4 -a $bminor -ge 1 ]; then
    [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] && \
        . "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion"
    if shopt -q progcomp && [ -r /usr/share/bash-completion/bash_completion ]; $
        # Source completion code.
        . /usr/share/bash-completion/bash_completion
    fi
fi
unset bash bmajor bminor
fi
#
#여기에 실행 파일을 넣어준다. 형태는 위에서 설명한 rc.local 에 적는 모양과 동일하다.
#       


http://www.ktman.pe.kr/RaspberryPi/60640


https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_IP_%ED%99%95%EC%9D%B8

by 나숑 2018. 9. 27. 22:29


by 나숑 2017. 11. 8. 13:36

Arduino.zip


ArduinoServer.zip


ArduinoClient.zip


by 나숑 2017. 3. 29. 17:59

Arduino.zip

Arduino_mac.zip


by 나숑 2017. 2. 21. 17:01

Arduino.zip

ArduinoClient.zip

ArduinoServer.zip



DHTlibrary.zip

hercules_3-2-8.exe

mosquitto-1.4.10-install-win32.exe

openssl-1.0.1f_vc_default_build.zip

pthreadVC2.dll

pubsubclient-master.zip

Win32OpenSSL_Light-1_1_0c.exe


by 나숑 2016. 12. 23. 16:38

https://www.wemos.cc/


https://www.wemos.cc/product/d1-mini.html

Description: The D1 mini is a mini wifi board based on ESP-8266EX.

Features:

  • 11 digital input/output pins, all pins have interrupt/pwm/I2C/one-wire supported(except D0)

  • 1 analog input(3.2V max input)

  • a Micro USB connection

  • Compatible with Arduino

  • Compatible with nodemcu

Tutorial:

 

Technical specs
MicrocontrollerESP-8266EX
Operating Voltage3.3V
Digital I/O Pins11
Analog Input Pins1(Max input: 3.2V)
Clock Speed80MHz/160MHz
Flash4M bytes
Length34.2mm
Width25.6mm
Weight10g

 

Pin
PinFunctionESP-8266 Pin
TXTXDTXD
RXRXDRXD
A0Analog input, max 3.3V inputA0
D0IOGPIO16
D1IO, SCLGPIO5
D2IO, SDAGPIO4
D3IO, 10k Pull-upGPIO0
D4IO, 10k Pull-up, BUILTIN_LEDGPIO2
D5IO, SCKGPIO14
D6IO, MISOGPIO12
D7IO, MOSIGPIO13
D8IO, 10k Pull-down, SSGPIO15
GGroundGND
5V5V-
3V33.3V3.3V
RSTResetRST



D1 mini V2 

Mini NodeMcu 4M bytes Lua WIFI Internet of Things development board based ESP8266 by WeMos

US $4.00 / piece

https://www.aliexpress.com/store/product/D1-mini-Mini-NodeMcu-4M-bytes-Lua-WIFI-Internet-of-Things-development-board-based-ESP8266/1331105_32529101036.html?spm=2114.12010608.0.0.gxaqnk

by 나숑 2016. 12. 16. 09:17

Arduino_20161208.zip


by 나숑 2016. 12. 8. 17:26

ArduinoServer.zip


Arduino (2).zip


ArduinoClient.zip





<MQTT>

mosquitto_sub -t "arduino" -h 192.168.0.23 -p 1883


mosquitto_pub -t "arduino" -m "Hello!!" -h 192.168.0.23


https://github.com/knolleary/pubsubclient



<MongoDB>

c:\mongodb

mongod -dbpath c:\mongodb\var

> db.scores.find();

> db.scores.find({i:3});

> db.scores.find({i:{$gt:3}});

> db.scores.find({i:{$gt:3,$lt:6}});

> db.scores.find({$or:[{i:{$lte:3}},{i:{$gte:7}}]});

> db.scores.find({i:{$in:[2,3,4]}});

> db.scores.find({i:{$nin:[2,3,4]}});

> db.scores.find({a:{$exists:true}});

> db.scores.find({}, {_id:0});

> db.users.update({name:'Johnny'},{$pull:{languages:'scalr'}});

> db.users.update({name:'Johnny'},{$push:{languages:'scalar'}});

> db.users.update({name:'Sue'},{$set:{age:20}});

> db.users.update({name:'Sue'},{$unset:{age:20}});

> db.users.update({name:'Hong'},{name:'Park',languages:['english']});

> db.users.remove({name:'Sue'});

> db.users.remove({});

> db.users.drop();

by 나숑 2016. 11. 10. 09:02

Arduino.zip


by 나숑 2016. 10. 25. 16:46
Arduino_20160928.zip


* 블루투스 모듈 초기화

AT

AT+NAMEAnn

AT+PIN1111

AT+BAUD4


* PC용 시리얼 통신 프로그램

http://www.hw-group.com/products/hercules/index_en.html


* mosquitto 실행시, ssleay32.dll 없다고 오류 뜰때 대응

openssl-1.0.1f_vc_default_build.zip

압축풀고 bin폴더

libeay32.dll

ssleay32.dll

mosquitto 설치 폴더에 복사


* 스마트폰 앱

1) 블루투스 테스트 

Android : bluetooth spp tools pro

iOS : BluTerm


2) MQTT 테스트

Android:MQTT Client

iOS:MQTTClient


Arduino_20160929..zip

HelloWorld.zip


- Mosquitto Server를 이용하여 아두이노로부터 온도/습도, 조도 센서 정보 수집하여 DB에 저장 및 조회 하는 기능

- 아두이노 상의 웹 서버를 이용하여 간단하게 부저 켜고 끄기


ArduinoClient.zip

quiz.zip



by 나숑 2016. 9. 28. 17:37
| 1 2 |