XCTU https www digi comproductsxbeerfsolutionsxctusoftwarexctu www helloapps co
설정 프로그램 다운로드 XCTU 프로그램 다운로드 https: //www. digi. com/products/xbee-rf-solutions/xctu-software/xctu 헬로앱스 (www. helloapps. co. kr) 3
장치 추가 헬로앱스 (www. helloapps. co. kr) 19
Fuction Set 선택 헬로앱스 (www. helloapps. co. kr) 21
Fuction Set 선택 헬로앱스 (www. helloapps. co. kr) 22
Fuction Set 선택 Router Coordinator 헬로앱스 (www. helloapps. co. kr) 23
Router 송신 모듈 소스 void setup() { Serial. begin(9600); Lcd. Back. Light() Lcd. Clear() Lcd. Home() delay(5000); Lcd. Print("Ready") } int flag = 0; int cnt = 0; void loop() { int d 2 = digital. Read(2); if (d 2 == 1) { if (flag == 0) { Serial. print("ON"); cnt++; Lcd. Clear() Lcd. Home() Lcd. Print(cnt) } flag = 1; } else flag = 0; delay(100); 헬로앱스 (www. helloapps. co. kr) } 27
Coordinator 수신 모듈 소스 void setup() { Serial. begin(9600); Lcd. Back. Light() Lcd. Clear() Lcd. Home() delay(5000); Lcd. Print("Ready") } void loop() { if (Serial. available()) { String s = Serial. read. String(); if (s == "ON") { digital. Write(13, HIGH); delay(1000); digital. Write(13, LOW); } } } 헬로앱스 (www. helloapps. co. kr) 28
- Slides: 28