Mini Infrared Unit Module IR Remote Controller Reflective Sensor with Receiver and Transmitter GPIO GROVE Conn

Mini Infrared Unit Module IR Remote Controller Reflective Sensor with Receiver and Transmitter GPIO GROVE Conn

  • R 212.91
    Unit price per 
  • Save R 212.91
Tax included.

SKU:

Description:

IR  is an pair of infrared photoelectric. Also from M5Go Kit, Contains 1x infrared emitter and 1x receiver.

IR remote control is widely used in consumer electronics,it can be used to operate devices such as a television set, DVD player, or other home appliance, from a short distance. Since this unit comes with emitter and receiver, you can practice not only on IR encode but also on IR decode.

Product Features:

  • 1x infrared emitter
  • 1x infrared receiver
  • Distance ran ge: < 5m
  • Software Development Platform: for , UIFlow(Blockly,Python)
  • Two Le go-compatible holes
  • Product Size: 32.2mm x 24.2mm x 8.9mm
  • Product weight: 4.3g

Package Included:

  • 1x IR Unit
  • 1x Grove Cable

EasyLoader

<blockquote style="box-sizing: border-box; font-size: 16px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-size-adjust: none; margin: 2em 0px; overflow: visible; padding: 1.5em; border-width: var(--blockquote-border-width, 0); border-style: var(--blockquote-border-style); border-color: var(--blockquote-border-color); border-radius: var(--blockquote-border-radius); background: var(--blockquote-background); color: rgb(33, 37, 41); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;; quotes: &quot;

1.EasyLoader is a simple and fast program burner, and each product page has a product-related case program for EasyLoader.

2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click "Burn" to start burning.

3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. Click here to view the driver installation tutorial

Example:

1. for IDE

The code below is incomplete. TO get the complete code, please click here.

  #include <M5Stack.h>    // declaration  int cur_recv_value = 0;    // initialization  M5.begin();  pinMode(ir_recv_pin, INPUT);// receiver pin  pinMode(ir_send_pin, OUTPUT);// transmitter pin  digitalWrite(ir_send_pin, 1);// send infrared light    // read data  cur_recv_value = digitalRead(ir_recv_pin);// read the status of receiver


2. UIFlow

To get the complete code, please click here.


Schematic:
 


PinMap:
 

M5Core(GROVE B) GPIO36 GPIO26 5V GND
IR Unit Receiver Pin Transmitter Pin 5V GND