Difference between revisions of "Sensor-IR Sensor"

From Microduino Wiki
Jump to: navigation, search
(Instruction of Sensor Pin)
 
(6 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
|-
 
|-
 
|
 
|
[[File: Microduino-IR_transmitter.jpg|400px|thumb|right| Microduino-IR-transmitter]]
+
[[File: Microduino-IR_transmitter.jpg|400px|thumb|right| Sensor-IR-Sensor]]
 +
The product number of Sensor-IR Sensor is: '''MSDI21'''
  
Microduino-IR-transmitter is infrared emission sensor module.  
+
Sensor-IR Sensor is infrared emission sensor module.  
  
  
 
==Instruction of Sensor Pin==
 
==Instruction of Sensor Pin==
{{Sensor_explain
+
{{ST_Pinout
|nameA=[[Sensor-IR Sensor]]
+
|st_name=IR Transmitter
|modeA=Digital signal input(pwm)
+
|pin3=Analog Output (PWM)
|modeB=NC
 
 
}}
 
}}
  
 
==Features==
 
==Features==
 
*With small power and high sensitivity.
 
*With small power and high sensitivity.
 +
*With small size which is easy to install.
  
 +
==Specification==
 +
*Voltage
 +
**3.3V~5V working voltage
 +
 +
*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 parameter:
 +
**Infrared spectrum: 1~3 µm
  
==Specification==
 
*Electric specification
 
**3.3V~5V working voltage
 
**Output device
 
*Technical parameters
 
**Ir: 1~3 µm
 
*Size
 
**Size of LED: 5mm*5mm
 
**Size of board: 20mm*20mm
 
**1.27mm-spacing 4Pin interface
 
 
*Connection
 
*Connection
**Instruction of pins: GND, VCC, signal output, NC(null), and the input signal is digital signal, so you need to use the digital interface with PWM function to drive it. And you can connect it to the pin 6 of Sensor-hub, and the corresponding pin is D6.
+
**This sensor can be connected to the following interfaces of core:
[[file:mCookie-sensorhub_rule.JPG|thumb|800px|center]]
+
***For [[Microduino-Core]]: '''D3'''(swap the positions of the I01/IO2 signal wires on one end of the sensor cable)
[[File: Microduino-IR-transmitter_rule1.jpg|600px|thumb|center]]
+
***For [[Microduino-Core+]]: '''D8'''
 +
***For [[Microduino-CoreUSB]]: '''D6'''
 +
***For [[Microduino-CoreRF]]: '''D5'''
  
 
==Document==
 
==Document==
  
*Schematic diagram: '''[[File: Microduino_IR-transmitter.Zip]]'''
+
*Schematic diagram: '''[[File: Sensor-IR Sensor.Zip]]'''
 
+
*Main chip: '''[[File:TSAL6200_datasheet.pdf ]]'''
  
 
==Development==
 
==Development==
===Preparation===
+
===Program Download===
*Confirm that you has set up the development environment of Microduino, otherwise please refer to : [[Microduino Getting started]]
+
*Download and unzip the program '''[[File:Sensor-IR Sensor_Test.zip]]'''
*Core choose
 
**1.Adopt [[Microduino-CoreUSB]] or [[mCookie-CoreUSB]] as the core directly.
 
**2.Adopt [[Microduino-Core]] or [[Microduino-Core+]], and you also need [[Microduino-USBTTL]] to download program.
 
===Program===
 
*Open the program "IRsendDemo" in the library.
 
[[file:mCookie-IRsendDemo.JPG|thumb|800px|center]]
 
*include <IRremote.h>      Call the infrared library function.
 
*IRsend irsend;      Define the infrared sending object.
 
*irsend.sendSony(0xa90, 12);    Send the infrared coding.
 
  
 +
===Programming===
 +
{{Upload
 +
|nameA=[[Microduino-Core]], [[Microduino-USBTTL]]
 +
|nameB=[[Microduino-USBTTL]]
 +
|boardName=Microduino/mCookie-Core(328p), Atmega328P@16M,5V
 +
|fileName=Sensor-IR-Sensor Test.ino
 +
}}
  
 
===Hardware Setup===
 
===Hardware Setup===
*Stack all modules together, and connect the interface on the back of IR-transmitter and the digital port (D3) of Sensorhub with dupont line.
+
*Referring to the following diagram, connect the Sensor-IR Sensor to digital pin D3 of '''[[Microduino-Sensorhub]]'''.
[[Microduino-Sensorhub]]
+
<br>
[[file:Microduino-sensorhub_D3.PNG|thumb|400px|center]]
+
[[file:Microduino-sensorhub__IR-transmitter.JPG|thumb|400px|left]]
[[mCookie-Hub]]
+
<br style="clear: left"/>
[[file:mCookie-sensorhub_D3.PNG|thumb|400px|center]]
+
 
*Connect Sensorhub with LED, and connect them to the computer with USB cable.
+
===Result===
*Select the right board card and COM port, and download directly after compiling. You can refer to[[AVR Core: Getting Started]]
+
*After download, you can open the serial monitor.  
[[file:upload.JPG|thumb|800px|center]]
+
*Input a random value on the serial monitor, and you will see the LED on IR Sensor flash once, representing the IR signal has been sent.
*Open Arduino IDE, choose File→Examples→Microcuino→Sensor_IRremote→IRsendDemo the sample program, select the right board card in Tools→Board, and then compile.
 
*After compiling, choose the right port in Tools→Serial Port of Arduino IDE, adn then download the program directly.  
 
*After downloading, you can open the serial monitor, and you can see the LED on IR emitter module twinkles once after input any value to the control panel, saying the infrared signal has been sent.
 
  
 
==Application==
 
==Application==
Line 79: Line 78:
  
 
*Front
 
*Front
[[file: Microduino-IR-transmitter-F.JPG|thumb|600px|center|Microduino-IR-transmitter Front]]
+
[[file: Microduino-IR-transmitter-F1.JPG|thumb|600px|center|Sensor-IR-transmitter Front]]
 
*Back
 
*Back
[[file: Microduino-IR-transmitter -b.JPG|thumb|600px|center|Microduino-IR-transmitter Back]]
+
[[file: Microduino-IR-transmitter -b1.JPG|thumb|600px|center|Sensor-IR-transmitter Back]]
 
|}
 
|}

Latest revision as of 23:29, 30 March 2017

Language: English  • 中文
Sensor-IR-Sensor

The product number of Sensor-IR Sensor is: MSDI21

Sensor-IR Sensor is infrared emission sensor module.


Instruction of Sensor Pin

Sensor backpin.png

IR Transmitter
General Pin Out Sensor / Trinket's Pin Out
PIN1 (GND) GND
PIN2 (VCC) VCC
PIN3 (SIGNAL-A) Analog Output (PWM)
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

  • With small power and high sensitivity.
  • With small size which is easy to install.

Specification

  • Voltage
    • 3.3V~5V working voltage
  • 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 parameter:
    • Infrared spectrum: 1~3 µm

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-Sensor 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 Sensor to digital pin D3 of Microduino-Sensorhub.


Microduino-sensorhub IR-transmitter.JPG


Result

  • After download, you can open the serial monitor.
  • Input a random value on the serial monitor, and you will see the LED on IR Sensor flash once, representing the IR signal has been sent.

Application

It can be used in infrared remote controller to control various household appliances. At first, you need to confirm the infrared signal type and the protocol format.


Projects

Purchase

History

Gallery

  • Front
File:Microduino-IR-transmitter-F1.JPG
Sensor-IR-transmitter Front
  • Back
File:Microduino-IR-transmitter -b1.JPG
Sensor-IR-transmitter Back
Retrieved from "https://wiki.microduinoinc.com/index.php?title=Sensor-IR_Sensor&oldid=14537"