Difference between revisions of "Sensor-IR Receiver"

From Microduino Wiki
Jump to: navigation, search
(Hardware Buildup)
 
(11 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
|
 
|
 
[[File: Microduino-IR_receiver.jpg|400px|thumb|right| Microduino-IR-receiver]]
 
[[File: Microduino-IR_receiver.jpg|400px|thumb|right| Microduino-IR-receiver]]
 +
The product number of Sensor-IR-receiver is: '''MSDI22'''
  
Microduino-IR-receiver is an infrared receiving sensor.  
+
Sensor-IR-receiver is an infrared receiving sensor.  
 
 
Microduino-IR-Receiver is a semiconductor device, which can turn the infrared light signal into electrical signal. Its core part is a PN junction with special material. Compared with the ordinary diode, it adopts great change in structure with a larger infrared receiving area, which makes the current increase accordingly. 
 
 
 
 
 
  
 +
Sensor-IR-Receiver contains a semiconductor device, which can turn the infrared light signal into electrical signal. Its core part is a PN junction with special material. Compared with the ordinary diode, it adopts great change in structure with a larger infrared receiving area, which makes the current increase accordingly. 
  
 +
==Introduction of Sensor Pins==
 +
{{ST_Pinout
 +
|st_name=IR Receiver
 +
|pin3=Digital Input
 +
}}
  
 
==Features==
 
==Features==
 
*Pulse type;  
 
*Pulse type;  
*Long receiving distance and strong anti-interference ability;  
+
*Long receiving distance and strong anti-interference ability;
 
+
*With small size which is easy to install
  
 
==Specification==
 
==Specification==
*Electrical specification 
+
*Voltage
**3.3V~5V operation voltage;
+
**3.3V~5V working voltage  
**Input device
+
*Electronic specification
*Tech parameters 
+
**Working current: 15uA
**Wave length: 0.76~1.5μm
+
**Working temperature: -20~85℃
 
*Size  
 
*Size  
**Size of the receiver 5mm*5mm
+
**Size of the board: 23.5mm*13mm
**Size of the board: 20mm*10mm
+
**1.27mm-spacing 4Pin interface connected with sensorhub
**1.27mm-pitch 4PIN interface 
+
**The CAD drawing of the sensor: '''[[File:Sensor_CAD.zip]]'''
*Connection method
+
*Technical parameters
** Pin description: GND, VCC, signal output and NC(empty). Since the output signal is digital, it needs to use digital interface to detect (D0~D13). Microduino-IR-Receiver can be connected to the pins (3~10) of the Sensorhub with the corresponding pins(D0,D2,D4,D6,D8,D10,D12).
+
**The wave length is between 0.76~1.5μm
 
+
*Connection  
[[file:mCookie-sensorhub_rule.JPG|thumb|800px|center]]
+
**This sensor can be connected to the following interfaces of the core: '''D2~D13''','''A0~A7'''
[[File: Microduino-IR-receiver_rule1.jpg|600px|thumb|center]]
 
  
 
==Document==
 
==Document==
  
*Schematic: '''[[File: Microduino_IR-receiver.Zip]]'''
+
*Schematic diagram: '''[[File: Sensor-IR Receiver.Zip]]'''
 +
*Main chip: '''[[File:FM-8138SM-5DN_datasheet.pdf ]]'''
  
 
==Development==
 
==Development==
===Preparation===
+
===Program Download===
*Make sure you build Microduino IDE or refer to: [[Microduino Getting started]]
+
*Download and unzip the program '''[[File:Sensor-IR Receiver_Test.zip]]'''
*Core selection
 
**1. Adopt [[Microduino-CoreUSB]] or [[mCookie-CoreUSB]] as the core.  
 
**2. Adopt [[Microduino-Core]] or [[Microduino-Core+]] as the core plus [[Microduino-USBTTL]] as the program download module.
 
  
===Program===
+
===Programming===
*Open " IRrecvDemo " program in the libraries. 
+
{{Upload
[[file:mCookie-IRrecvDemo.JPG|thumb|800px|center]]
+
|nameA=[[Microduino-Core]], [[Microduino-USBTTL]]
*include <IRremote.h>      Use infrared library function
+
|nameB=[[Microduino-USBTTL]]
*int RECV_PIN = 10;      Define infrared receiving pin as 10, which can also be changed by users according to personal needs. (For example: Change " RECV_PIN = 11" in the program examples to " RECV_PIN = 10")
+
|boardName=Microduino/mCookie-Core(328p), Atmega328P@16M,5V
*IRrecv irrecv(RECV_PIN);    Define infrared receiving object
+
|fileName=Sensor-IR Receiver Test.ino
*irrecv.enableIRIn();      Start infrared receiving
+
}}
*Receive and output 
 
  if (irrecv.decode(&results)) {     
 
    Serial.println(results.value, HEX);
 
    irrecv.resume();
 
  }
 
  
===Hardware Buildup===
+
===Hardware Setup===
*Connect the interface on the back of the IR-receiver with D10 digital port of the Sensorhub;
+
*Referring to the following diagram, connect the Sensor-IR Receiver to digital pin D6 of '''[[Microduino-Sensorhub]]'''
*Please refer to: [[Microduino-Sensorhub]]
+
<br>
[[file:Microduino-sensorhub_D10.PNG|thumb|400px|center]]
+
[[file:Microduino-sensorhub_Crash.JPG|thumb|400px|left]]
* Please refer to: [[mCookie-Hub]]
+
<br style="clear: left"/>
[[file:mCookie-sensorhub_D10.PNG|thumb|400px|center]]
 
  
* Connect the core, Sensorhub and the IR-receiver to a computer with a USB cable.
+
===Result===
* Select the right board and COM port, compile and download.  You can refer to [[AVR Core:Getting started]]
+
*After download, open the serial monitor.
[[file:upload.JPG|thumb|800px|center]]
+
*Send IR signal to the IR receiver with IR remote control, and you can see the LED on the IR Receiver flash once, representing that the IR Receiver has received the IR signal, and the decoded data will be printed out in the serial monitor at the same time.
*After download, you can open the serial monitor and use the infrared remote controller to send signals to the infrared receiving head. When you see the LED light on the IR-receiver blinks once, it means the receiving head has gotten the signals while the serial console will print decoded data.
 
  
 
==Application==
 
==Application==
Microduino-IR-receiver can be used in infrared remote control, which is able to be matched with all kinds of infrared remote controller. You need to make sure the infrared signal type and protocol format before using.
+
It can be used in infrared remote control, which is able to be matched with all kinds of infrared remote controller. You need to make sure the infrared signal type and protocol format before using.
 
 
==Purchase==
 
  
 
==History==
 
==History==
Line 79: Line 70:
 
==Pictures==
 
==Pictures==
  
*Front
+
 
[[file: Microduino-IR-receiver-F.JPG|thumb|600px|center|Microduino-IR-receiver Front]]
+
[[file: Microduino-IR-receiver-F1.JPG|thumb|600px|center|Sensor-IR-receiver Front]]
*Back
+
 
[[file: Microduino-IR-receiver -b.JPG|thumb|600px|center|Microduino-IR-receiver Back]]
+
[[file: Microduino-IR-receiver -b1.JPG|thumb|600px|center|Sensor-IR-receiver Back]]
 
|}
 
|}

Latest revision as of 06:53, 4 August 2017

Language: English  • 中文
Microduino-IR-receiver

The product number of Sensor-IR-receiver is: MSDI22

Sensor-IR-receiver is an infrared receiving sensor.

Sensor-IR-Receiver contains a semiconductor device, which can turn the infrared light signal into electrical signal. Its core part is a PN junction with special material. Compared with the ordinary diode, it adopts great change in structure with a larger infrared receiving area, which makes the current increase accordingly.

Introduction of Sensor Pins

Sensor backpin.png

IR Receiver
General Pin Out Sensor / Trinket's Pin Out
PIN1 (GND) GND
PIN2 (VCC) VCC
PIN3 (SIGNAL-A) Digital Input
PIN4 (SIGNAL-B) Not Connected
  • General Pin Out is the standard pin out of a Sensor / Trinket connector.
  • Sensor / Trinket's Pin Out is this specific Sensor / Trinket's wiring in relation to the General Pin Out.
  • SIGNAL-A / SIGNAL-B are signals that could be digital input, digital output, analog input or analog output. Or special signals such as serial communication (SoftwareSerial, IIC (I2C), etc) or other special signals.
  • Not Connected refers to the Pin not being used for this particular Sensor / Trinket.
  • Read more about the hub module.

Features

  • Pulse type;
  • Long receiving distance and strong anti-interference ability;
  • With small size which is easy to install

Specification

  • Voltage
    • 3.3V~5V working voltage
  • Electronic specification
    • Working current: 15uA
    • Working temperature: -20~85℃
  • Size
    • Size of the board: 23.5mm*13mm
    • 1.27mm-spacing 4Pin interface connected with sensorhub
    • The CAD drawing of the sensor: File:Sensor CAD.zip
  • Technical parameters
    • The wave length is between 0.76~1.5μm
  • Connection
    • This sensor can be connected to the following interfaces of the core: D2~D13,A0~A7

Document

Development

Program Download

Programming

  • Follow the Software Getting Started Guide.
  • Select the Board, Processor and Port.
  • Click [File]->[Open], browse to the project program address, and click "Sensor-IR Receiver Test.ino" to open the program.
  • After confirming all these items are correct, click "→" to download the program to the development board.

Hardware Setup

  • Referring to the following diagram, connect the Sensor-IR Receiver to digital pin D6 of Microduino-Sensorhub


Microduino-sensorhub Crash.JPG


Result

  • After download, open the serial monitor.
  • Send IR signal to the IR receiver with IR remote control, and you can see the LED on the IR Receiver flash once, representing that the IR Receiver has received the IR signal, and the decoded data will be printed out in the serial monitor at the same time.

Application

It can be used in infrared remote control, which is able to be matched with all kinds of infrared remote controller. You need to make sure the infrared signal type and protocol format before using.

History

Pictures

File:Microduino-IR-receiver-F1.JPG
Sensor-IR-receiver Front
File:Microduino-IR-receiver -b1.JPG
Sensor-IR-receiver Back
Retrieved from "https://wiki.microduinoinc.com/index.php?title=Sensor-IR_Receiver&oldid=21500"