목차
[WAT-S034] IR 송신 모듈
본 제품은 [WAT-SK114]중요한 아두이노 센서키트(초급) 중 34번째 모듈로 IR 송신 모듈입니다.
핀 번호
핀 번호 | 핀명 | I/O | 기능 |
---|---|---|---|
1 | x | TX | 송신 신호 |
2 | x | x | x |
3 | x | GND | GROUND |
WAT-Arduino128 예제
핀 연결
번호 | I/O | WAT-Arduino128 |
---|---|---|
1 | S | PB5 |
2 | + | x |
3 | – | GROUND |
소스코드
최신 소스코드는 [파일]=>[예제]=>[WhiteAT]=> [Sensor37] => [34_IR_Send] 에 있으며
라이브러리는 아두이노 개발환경 을 참조하세요
/* 중요한 아두이노 센서키트 37종 예제 중 34 번째 WAT-Arduino128 과 IR 송신 예제입니다. WAT-Arduino128 : https://kit128.com/goods/view?no=64 37종 센서: https://kit128.com/goods/view?no=114 출처: http://whiteat.com/Arduino */ #include <W_IRremote.h> IRsend irsend; // 프로그램 시작 - 초기화 작업 void setup() { Serial.begin(115200); // 시리얼 통신 초기화 Serial.println("Arduino Examples - IR Send Module"); Serial.println(" https://docs.whiteat.com/?p=1294"); } int i= 10; void loop() { irsend.sendNEC(i++,32); delay(1000); irsend.sendNEC(i++,32); delay(1000); irsend.sendNEC(i++,32); delay(1000); irsend.sendNEC(i++,32); delay(1000); }
결과 화면
IR 수신 센서에서 확인할 수 있습니다.
(https://docs.whiteat.com/?p=1296)
Arduino UNO R3 예제
핀 연결
번호 | I/O | UNO R3 |
---|---|---|
1 | S | 9 |
2 | + | x |
3 | – | GROUND |
소스코드
최신 소스코드는 [파일]=>[예제]=>[WhiteAT UNO]=> [Sensor37] => [34_IR_Send] 에 있으며
라이브러리는 아두이노 개발환경 을 참조하세요
/* 중요한 아두이노 센서키트 37종 예제 중 34 번째 UNO 와 IR 송신 예제입니다. UNO R3 : https://kit128.com/goods/view?no=337 37종 센서: https://kit128.com/goods/view?no=114 출처: http://whiteat.com/Arduino */ #include <W_IRremote.h> IRsend irsend; // 프로그램 시작 - 초기화 작업 void setup() { Serial.begin(115200); // 시리얼 통신 초기화 Serial.println("Arduino Examples - IR Send Module"); Serial.println(" https://docs.whiteat.com/?p=1294"); } int i= 10; void loop() { irsend.sendNEC(i++,32); delay(1000); irsend.sendNEC(i++,32); delay(1000); irsend.sendNEC(i++,32); delay(1000); irsend.sendNEC(i++,32); delay(1000); }
결과 화면
IR 수신 센서에서 확인할 수 있습니다. (https://docs.whiteat.com/?p=1296)
제품 구매
[WAT-SK114]중요한 아두이노 센서키트(초급)은 https://kit128.com/goods/view?no=114 에서
[WAT-S034] IR 송신 모듈은 https://kit128.com/goods/view?no=434 에서 구매하실 수 있습니다.