Two-way infrared transmitter module [S095]
https://www.youtube.com/watch?v=PGZuG8FwpmE
*GitHub : https://github.com/rdiot/rdiot-s095.git
* Specs
This is an infrared transmitter very useful for any IR communication for your project. Infrared is a common, inexpensive, and easy to use wireless communication technology.
the module is ready to be connected to an MCU such as an Arduino.
It has two led transmitter to add visibility and an indicator led that shows when the module is transmitting.
Item Weight: 5 g
Boxed-product Weight: 5 g
* Contents
- Library : https://github.com/shirriff/Arduino-IRremote/
- Use : IRsendDemo
- Connect
DAT ----- D3
VCC ----- 5V
GND ----- GND
- Power Off Dump Code
Encoding : SAMSUNG
Code : E0E040BF (32 bits)
Timing[67]:
+4400, -4400 + 600, -1650 + 550, -1650 + 600, -1600
+ 600, - 500 + 550, - 550 + 550, - 550 + 550, - 550
+ 550, - 550 + 550, -1650 + 550, -1650 + 600, -1650
+ 600, - 500 + 600, - 500 + 600, - 450 + 600, - 500
+ 600, - 500 + 600, - 550 + 550, -1600 + 650, - 500
+ 550, - 550 + 550, - 550 + 550, - 550 + 550, - 500
+ 600, - 500 + 600, -1600 + 600, - 500 + 600, -1650
+ 600, -1600 + 600, -1600 + 600, -1650 + 600, -1600
+ 600, -1600 + 600
- Key Code
#include <IRremote.h>
//* An IR LED must be connected to Arduino PWM pin 3.
IRsend irsend;
void loop() {
int khz = 38; // 38kHz carrier frequency for the NEC protocol
unsigned int rawData[67] = {4500,4400, 600,1650, 550,1650, 650,1600, 600,550, 550,550, 550,550, 550,550, 550,550, 550,1650, 600,1650, 550,1650, 600,550, 550,550, 550,550, 550,550, 550,550, 600,500, 600,1600, 600,550, 550,550, 550,550, 550,550, 550,550, 550,550, 600,1600, 600,550, 550,1650, 600,1650, 550,1650, 600,1650, 600,1650, 550,1650, 600}; // SAMSUNG E0E040BF
unsigned int data = 0xE0E040BF;
irsend.sendRaw(rawData, sizeof(rawData) / sizeof(rawData[0]), khz); //Note the approach used to automatically calculate the size of the array.
delay(5000); //In this example, the signal will be repeated every 5 seconds, approximately.
}
'2) Sensor > IR' 카테고리의 다른 글
Keyes Infrared Receiver Module (KY-022) [S014] (0) | 2016.09.17 |
---|---|
Infrared Receiver VS1838 (VS1838B) [S013] (0) | 2016.09.17 |
4 Head Infrared Transmitter Module [S180] (0) | 2016.09.17 |
Keyes Infrared Transmitter Module (KY-005) [S015] (0) | 2016.09.17 |
IR Transmitter Module [S066] (0) | 2016.09.17 |