查看“Infrared receiver”的源代码
←
Infrared receiver
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{| style="width: 800px;" |- | ==Outline== Microduino-IR receiver is used to receive infrared signal from [[Infrared Transmission]]. It can receive infrared signal within 10m. ==Specification== *Electrical specification **Operation voltage: 3.3V~5V *Tech parameters **Sensing distance:10m *Size **Size of the LED: 5mm, ** Size of the board: 10mm*20mm **1.27mm-pitch 4PIN interface *Connection Method **GND, VCC, signal port and NC. The signal port can be defined by users. ==Development== ===Equipment=== {|class="wikitable" |- |Module||Number||Function |- |[[mCookie-CoreUSB]]||1||Core board |- |[[mCookie-Hub]]||1||Sensor pin board |- |[[Microduino-IR Receiver]]||1||Infrared receiving |} [[File:IR receiver-module.jpg|center|600px]] ===Preparation=== Setup 1:Connect the IR receiver's interface with the Hub's D10 digital port. [[file:mCookie-IR receiver-sensor.JPG|600px|center]] *Setup 2:Connect the core, Hub and IR receiver to a computer with a USB cable. [[file:mCookie-strandtext-pc.JPG|600px|center]] ===Debugging=== *Open " IRsendDemo " program in the libraries. [[file:mCookie-IRrecvDemo.JPG|thumb|800px|center]] * Select the right board and COM port, compile and download. You can refer to [[AVR Core:Getting started]] [[file:upload.JPG|thumb|800px|center]] *include <IRremote.h> Use infrared library function *int RECV_PIN = 10; Define the infrared receiving pin as 10, which can also be changed by users. (For example: Change " RECV_PIN = 11" in the program examples to " RECV_PIN = 10". ) *IRrecv irrecv(RECV_PIN); Define infrared receiving object *irrecv.enableIRIn(); Start infrared receiving *Receive infrared signal and output if (irrecv.decode(&results)) { Serial.println(results.value, HEX); irrecv.resume(); } * 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== 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. |}
返回至
Infrared receiver
。
导航菜单
个人工具
创建账户
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
Welcome
首页
创客大赛
大赛详情
3D打印
安装月球车
图形化编程
操控月球车
升级月球车
编程工具下载
软件下载
Arduino
Processing
Mixly
Scratch
模块套件
Microduino 102
mCookie 102
mCookie 202
mCookie 302
IBC
其他
应用套件
四轴飞行器
平衡车
小车CUBE
音乐播放器
刷卡音乐播放器
wifi气象站
彩虹音乐触摸灯
分贝检测仪
迎门汇报
LED点阵时钟
LED点阵屏幕
硬件
mCookie
Sensor
Microduino
MicroWrt
MicroNux
MicroRobot-Core
MicroRobot-CoreESP
ideaBoard
ideaBox
MicroMV
MicroAI
帮助
常见问题
帮助
工具
链入页面
相关更改
特殊页面
页面信息