Difference between revisions of "Infrared transmission"

From Microduino Wiki
Jump to: navigation, search
(Outline)
(Major Edits)
Line 3: Line 3:
 
|
 
|
 
==Outline==
 
==Outline==
Microduino-IR-Transmitter can emit infrared signal through LED and then receive signal with [[Infrared receiver]]. Like a remote controller, the infrared transmitter can also control home appliances such as TV, air conditioner, water heater and refrigerator. Its maximum transmission distance is 10m.
+
The Microduino IR LED can emit infrared signals just like a remote control. Couple this with an infrared receiver and you can control projects from a distance. The maximum transmission distance for the emitter is 10 meters.
  
 
==Specification==
 
==Specification==
*Electrical specification
+
*Electrical Specifications
**Operation voltage: 3.3V~5V
+
**Operation Voltage: 3.3V~5V
*Tech parameters
+
**This is an Output Device
**Sensing distance:10m
+
*Technical Specifications
*Size
+
**Emitting Distance: 10 meters
**Size of the LED:  5mm,
+
**Emitting Angle: 25 degrees
** 10mm*20mm
+
**Wavelength: 940nm
**1.27mm-pitch 4PIN interface
+
*Dimensions
*Connection Method 
+
**LED:  5mm
**GND, VCC, D6,NC.  Modules must adopt D6 interface.
+
**Board: 10mm x 20mm
 +
**Connector: 4-Pin, 1.27mm-pitch  
 +
*Connector Interface
 +
**Pins: D6 (on Hub), VCC (power), GND (ground) and NC (Not Connected)
 +
**NOTE: To emit at the proper frequency for remote control (38KHz), the sensor must be connected to pin D6 on the Sensor Hub
 
==Development==
 
==Development==
 
===Equipment===
 
===Equipment===
Line 42: Line 46:
 
* Select the right board and COM port, compile and download.  You can refer to [[AVR Core:Getting started]]  
 
* Select the right board and COM port, compile and download.  You can refer to [[AVR Core:Getting started]]  
 
[[file:upload.JPG|thumb|800px|center]]
 
[[file:upload.JPG|thumb|800px|center]]
*include <IRremote.h>     Use infrared library function
+
*include <IRremote.h> - Imports the IRremote library and allows you to use all functions.
*IRsend irsend;     Define infrared receiving object
+
*IRsend irsend; - Declares an object for the infrared transmitter to use IR functions.
*irsend.sendSony(0xa90, 12);     Send infrared code
+
*irsend.sendSony(0xa90, 12); - Sends an infrared code using a Sony remote protocol.
* You can open the serial monitor. Input any values at the console and you'll see the LED on the IR-transmitter blinks once, meaning the infrared signal has been sent.
+
* Once you open the Serial Monitor, you can input any values into the console. The LED on the transmitter will blink once the infrared signal has been sent.

Revision as of 18:16, 15 August 2016

Outline

The Microduino IR LED can emit infrared signals just like a remote control. Couple this with an infrared receiver and you can control projects from a distance. The maximum transmission distance for the emitter is 10 meters.

Specification

  • Electrical Specifications
    • Operation Voltage: 3.3V~5V
    • This is an Output Device
  • Technical Specifications
    • Emitting Distance: 10 meters
    • Emitting Angle: 25 degrees
    • Wavelength: 940nm
  • Dimensions
    • LED: 5mm
    • Board: 10mm x 20mm
    • Connector: 4-Pin, 1.27mm-pitch
  • Connector Interface
    • Pins: D6 (on Hub), VCC (power), GND (ground) and NC (Not Connected)
    • NOTE: To emit at the proper frequency for remote control (38KHz), the sensor must be connected to pin D6 on the Sensor Hub

Development

Equipment

Module Number Function
mCookie-CoreUSB 1 Core board
mCookie-Hub 1 Sensor pin board
Microduino-IR Transmitter 1 Infrared transmission

Preparation

Setup 1:Connect the IR transmitter's interface with the Hub's D6 digital port.

  • Setup 2:Connect the core, Hub and IR transmitter to a computer with a USB cable.
MCookie-strandtext-pc.JPG

Debugging

  • Open " IRsendDemo " program in the libraries.
MCookie-IRsendDemo.JPG
Upload.JPG
  • include <IRremote.h> - Imports the IRremote library and allows you to use all functions.
  • IRsend irsend; - Declares an object for the infrared transmitter to use IR functions.
  • irsend.sendSony(0xa90, 12); - Sends an infrared code using a Sony remote protocol.
  • Once you open the Serial Monitor, you can input any values into the console. The LED on the transmitter will blink once the infrared signal has been sent.