๋ถ๋ฅ ์ ์ฒด๋ณด๊ธฐ208 ๋ฌด์์ ์จ์ผํ ์ง ๋ชจ๋ฅด๊ฒ ์ง๋ง ์ฐ๋ ๊ธ ํฐ์คํ ๋ฆฌ๋ฅผ ์์ํ ๋๋ ๊ธฐ์ ๋ธ๋ก๊ฑฐ๊ฐ ๋๊ฒ ๋ค๋ ์กฐ๊ทธ๋งํ ์๋ง์ด ์์๋๋ฐ ์ญ์๋ ๊พธ์คํจ์ ์ ๋ง๋ก ์ด๋ ค์ด ๋ฒ์ด๋ค. ์๋ ๋ง์ ์ด ๊ธ ์ดํ๋ก๋ ๋์ด์ ์ ๋ฐ์ดํธ๊ฐ ๋๊ณ ์์ง ์๋ค. ๋ธ๋ก๊น ์ ํด์ผ๊ฒ ๋ค๊ณ ๋ง์์ ๋จน์ง๋ง ๋ง์ ๊ธ์ ์ฐ๊ธฐ์๋ ๋๋ฌด๋ ๊ท์ฐฎ๊ณ ์ด๋ ต๊ณ , ์ปดํจํฐ ์์ ์์๋ ๊ด์๋ฆฌ ํ์ ํ ์ฐ๋ผ์ ๋ด์ค๋ง ์ฝ๊ณ ์๋ ๋๋ฅผ ๋ฐ๊ฒฌํ๋ค. ๊ทธ๋ฌ๋ค ์ด์ ์ง์ธ๋ค๊ณผ ๊ฐ์ง ๋ชจ์์์ ๋ธ๋ก๊ทธ๋ฅผ ์ฐ๋ ์ฌ๋ฌ๊ฐ์ง ์ด์ ๋ฅผ ์ ํ๊ณ , ๋ง์ฐํ๊ฒ๋๋ง ๋๋ ์์ํ๊ฒ ๊ธ์ ์ข ์ฐ๊ณ ์ถ๋ค๋ ์๊ฐ๊ณผ ํจ๊ป ๋ด ํฐ์คํ ๋ฆฌ๋ฅผ ํ์ฉํด์ผ๊ฒ ๋ค๊ณ ๊ฒฐ์ฌํ๋ค. ์ต๊ทผ์๋ '์ ์ฌ์๋น'์ด๋ผ๋ ์ ํ๋ฒ์ ์ฑ๋์ ์ฌ๋ผ์จ ์์์ ๋ณด๊ณค ๋์ ๊ฐ๋ฐ ๊ฒฝ๋ ฅ์ ๊ฐ์ง๊ณ ์ ์์ฑ ์ ๋ด๋ณผ๊น? ๋ผ๊ณ ์๊ฐ์ด ๋ค์๋ค. ํผ์งํ ์ฃผ์ ๋ค์ ์ ํ๊ณ ๋ค์ด๊ฐ๋ ๊ธ๊ณผ ๋ํ์ํ๊ณผ ๊ด๋ จํด์ ๊ธ์ ์ผ์ง๋ง ์๊ฐ๋ณด๋ค ๊ธ ์ฐ๋.. 2020. 8. 23. Dataframe ์๊ฐ๋ณ๋ก ํ๊ท ๋ด๊ธฐ ํ์ฌ dataframe.info() RangeIndex: 9736 entries, 0 to 9735 Data columns (total 8 columns): updatetime 9736 non-null object temperature 9736 non-null float64 humidity 9736 non-null float64 water 9736 non-null int64 light 9736 non-null int64 dust 9736 non-null float64 co2 9736 non-null int64 tvoc 9736 non-null int64 dtypes: float64(3), int64(4), object(1) memory usage: 608.6+ KB updatetime์ด ํ์ฌ object.. 2019. 11. 26. ๋น์ ๋ฐ๊ธฐ์ ๋ฐ๋ฅธ ์ค๋ธ์ ํธ ํฌ๊ธฐ ๋ณ๊ฒฝ flow ์๋์ด๋ ธ์ ๋ผ์ดํธ ์ผ์๋ฅผ ์ฐ๊ฒฐํ์ฌ ๊ฐ์ ํ์ธํจ. ์ผ์์ ๊ฐ์ ์๋ฆฌ์ผํต์ ์ผ๋ก ์ ์ก processing์์ ์ผ์์ ๊ฐ์ parsingํจ ์ผ์์ ๊ฐ์ด ์ปค์ง์๋ก ์ ์ก๋ฉด์ฒด์ ํฌ๊ธฐ๊ฐ ์ปค์ง ์๋์ด๋ ธ code int light = 0; void setup() { // put your setup code here, to run once: Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: light = analogRead(A1); Serial.print(light); Serial.print(","); delay(500); } processing code import processing.serial.*; Serial .. 2019. 11. 26. RS-485 master/slave ํต์ ํ๊ธฐ - ์์ค์ฝ๋ ํฌํจ https://yonglimlee.tistory.com/entry/485-Serial-%ED%86%B5%EC%8B%A0%ED%95%98%EA%B8%B0?category=734072 485 Serial ํต์ ํ๊ธฐ 1. ์ค๋น๋ฌผ (1) TTL to RS485 ์๋ ํ๋ฆ์ ์ด ์ปจ๋ฒํฐ ๋ชจ๋ [SZH-CVBE-010] (2) ์๋์ด๋ ธ ๋๋ ธ (Slave#1 ์ญํ ) (3) ์๋์ด๋ ธ ๋ฉ๊ฐ (Slave#2 ์ญํ ) (4) ๋ผ์ฆ๋ฒ ๋ฆฌํ์ด (Master ์ญํ ) ์๋์ ์ฌ์ง์ TTL to RS485 ์ปจ๋ฒํฐ.. yonglimlee.tistory.com 1. ํต์ ๋ฐฉ๋ฒ - RS-485 2. ๊ตฌ์ฑ - master node 1๊ฐ - slave node 2๊ฐ 3. master์ธก ์์ค #include "Definition.h" //๊ตฌ์กฐ์ฒด๊ฐ ์ ์ธ.. 2019. 10. 17. ์ด์ 1 ยทยทยท 46 47 48 49 50 51 52 ๋ค์