Difference between revisions of "Sensor-IR Sensor"

From Microduino Wiki
Jump to: navigation, search
(Created page with "{{Language|Microduino-IR transmitter}} {| style="width: 800px;" |- | 400px|thumb|right| Microduino-IR-transmitter Microduino-IR-transm...")
 
Line 26: Line 26:
 
**Ir: 1~3 µm  
 
**Ir: 1~3 µm  
 
*Size
 
*Size
**Size of LED: 5mm*5mm,
+
**Size of LED: 5mm*5mm
 
**Size of board: 20mm*20mm
 
**Size of board: 20mm*20mm
 
**1.27mm-spacing 4Pin interface  
 
**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 fucntion to drive it. And you can connect it to the pin 6 of Sensor-hub, and the corresponding pin is D6.
+
**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.
 
[[file:mCookie-sensorhub_rule.JPG|thumb|800px|center]]
 
[[file:mCookie-sensorhub_rule.JPG|thumb|800px|center]]
 
[[File: Microduino-IR-transmitter_rule1.jpg|600px|thumb|center]]
 
[[File: Microduino-IR-transmitter_rule1.jpg|600px|thumb|center]]
Line 46: Line 46:
 
**2.Adopt [[Microduino-Core]] or [[Microduino-Core+]], and you also need [[Microduino-USBTTL]] to download program.  
 
**2.Adopt [[Microduino-Core]] or [[Microduino-Core+]], and you also need [[Microduino-USBTTL]] to download program.  
 
===Program===
 
===Program===
*Open the program “IRsendDemo” in the library.  
+
*Open the program "IRsendDemo" in the library.  
 
[[file:mCookie-IRsendDemo.JPG|thumb|800px|center]]
 
[[file:mCookie-IRsendDemo.JPG|thumb|800px|center]]
 
*include <IRremote.h>      Call the infrared library function.
 
*include <IRremote.h>      Call the infrared library function.
Line 59: Line 59:
 
[[mCookie-Hub]]
 
[[mCookie-Hub]]
 
[[file:mCookie-sensorhub_D3.PNG|thumb|400px|center]]
 
[[file:mCookie-sensorhub_D3.PNG|thumb|400px|center]]
*Connect Sensorhub with LED, and connect them to the computer with USB cable. U
+
*Connect Sensorhub with LED, and connect them to the computer with USB cable.  
 
*Select the right board card and COM port, and download directly after compiling. You can refer to[[AVR Core: Getting Started]]
 
*Select the right board card and COM port, and download directly after compiling. You can refer to[[AVR Core: Getting Started]]
 
[[file:upload.JPG|thumb|800px|center]]
 
[[file:upload.JPG|thumb|800px|center]]

Revision as of 09:57, 28 September 2016

Language: English  • 中文
Microduino-IR-transmitter

Microduino-IR-transmitter is infrared emission sensor module.


Instruction of Sensor Pin

Sensor backpin.png
  • Pins of the sensor:
    • PIN1: GND
    • PIN2: VCC
    • General signal pins:
      • PIN3(IO1): digital/analog signal
      • PIN4(IO2): NC(null)
    • Special signal pins:
      • If it is IIC: IO1/IO2 are respectively SDA/SCL.
      • If it is soft serial port: IO1/IO2 are respectively tx/rx.
  • Special to Sensor-IR Sensor sensor pins
    • PIN1: GND
    • PIN2: VCC
    • PIN3(IO1): Digital signal input(pwm)
    • PIN4(IO2): NC


Microduino sensor can communicate with core module through the connection with Microduino-Module Sensor Hub.

Features

  • With small power and high sensitivity.


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
    • 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.
MCookie-sensorhub rule.JPG

Document


Development

Preparation

Program

  • Open the program "IRsendDemo" in the library.
MCookie-IRsendDemo.JPG
  • include <IRremote.h> Call the infrared library function.
  • IRsend irsend; Define the infrared sending object.
  • irsend.sendSony(0xa90, 12); Send the infrared coding.


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.

Microduino-Sensorhub

Microduino-sensorhub D3.PNG

mCookie-Hub

MCookie-sensorhub D3.PNG
  • Connect Sensorhub with LED, and connect them to the computer with USB cable.
  • Select the right board card and COM port, and download directly after compiling. You can refer toAVR Core: Getting Started
Upload.JPG
  • 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

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
Microduino-IR-transmitter Front
  • Back
Microduino-IR-transmitter Back