# IoT_IR Internet of Things Infrared Remote
This folder contains a sample implementation of an Internet of things IR remote using Adafruit Feather M0 Wi-Fi and Arduino MKR 1000.
Recommended that you familiarize yourself with the board before proceeding with this example. For the Adafruit Feather M0 Wi-Fi the tutorial at
https://learn.adafruit.com/adafruit-feather-m0-wifi-atwinc1500?view=all
For the Arduino MKR 1000 see the guide at
https://www.arduino.cc/en/Guide/MKR1000
Go through all of the Wi-Fi examples in that tutorial to make sure that your board is working. You will have to edit the "arduino_secrets.h" file to include your Wi-Fi name and password.
There are two sample pages included in this folder. The file "adafruit_remote.html" emulates the Adafruit Mini Remote https://www.adafruit.com/product/389
The other sample page is "cable_and_tv.html" which has codes for a BrightHouse/Spectrum cable box using the Panasonic_Old protocol and a Samsung TV using NECx protocol.
You can simply open these files in your computer without actually hosting on a Web server. It has been tested with Internet Explorer, Google Chrome, Mozilla Firefox, and Opera Browser. Explorer will require you to click on a button to enable active X controls but the others do not. Note also Explorer will automatically resize and dock the webpage but the others do not implement that feature.
You will have to edit the source of the html pages to configure your IP address for your device.
You can edit the codes for any remote supported by IRLib2. Each button is defined by 4 values in the table beginning at line 26. For example the first button in the Adafruit remote example reads:
[1,0xfd00ff,0, "Vol-",189],
The first value is the protocol number. The next value is the actual code to be transmitted in hex. The next value is the number of bits which is ignored in the case of NEC protocol 1 but may be important depending on your protocol. The fourth value is the string of text to be displayed on the remote. The file value is a keystroke code which can be used to activate the button in addition to clicking on it with the mouse. In this case code 189 corresponds to the "minus sign" keyboard code. The webpage will display keyboard codes as you press them so if you want to implement a new code just press the key and the webpage will tell you is code.
Note that the display text can include HTML such as span, linebreaks using br and other formatting as you can see in the examples.
You also have to edit the URL in the webpage outline 21 so that it matches your device.
If you press the escape key, the webpage will toggle between the symbols that you defined and an indication of which keyboard characters you have assigned to that particular button.
We have implemented both a mouseclick and a keyboard press capability into this webpage so that it is easier to be used with voice control software such as Dragon Naturally Speaking. For example when I control my cable box I can speak the words "press G" to call up the on-screen guide and then I can say "Move Right 5" to move the cursor along the guide. This makes this implementation and especially useful piece of assistive technology for the disabled.
We will be writing an extensive tutorial in the Adafruit learning system about this particular project very soon.
没有合适的资源?快使用搜索试试~ 我知道了~
使用Arduino接收、解码和发送红外信号的库_C++_C_下载.zip
共95个文件
h:33个
ino:15个
txt:14个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 45 浏览量
2023-04-26
11:23:45
上传
评论
收藏 4.31MB ZIP 举报
温馨提示
使用Arduino接收、解码和发送红外信号的库_C++_C_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
使用Arduino接收、解码和发送红外信号的库_C++_C_下载.zip (95个子文件)
IRLib2-master
IRLibProtocols
IRLibSendBase.h 1KB
COPYRIGHT.txt 3KB
IRLibProtocols.h 1KB
IRLib_P05_Panasonic_Old.h 2KB
LICENSE.txt 34KB
IRLib_P09_GICable.h 2KB
IRLib_P06_JVC.h 3KB
IRLib_HashRaw.h 3KB
unsupported
IRLib_P90_Tutorial.h 2KB
IRLib_P90_Unsupported.h 3KB
IRLibSAMD21.cpp 6KB
IRLib_P11_RCMM.h 5KB
IRLib_P99_Additional.h 2KB
library.properties 867B
IRLibHardware.cpp 2KB
IRLibSAMD21.h 9KB
IRLib_P04_RC6.h 6KB
IRLibSendBase.cpp 5KB
IRLib_P10_DirecTV.h 5KB
IRLib_P03_RC5.h 4KB
IRLibProtocols.cpp 1KB
IRLib_P02_Sony.h 3KB
IRLibSAMD51.h 4KB
IRLib_P12_CYKM.h 14KB
IRLib_P07_NECx.h 3KB
IRLib_P01_NEC.h 4KB
IRLib_P08_Samsung36.h 5KB
IRLibCombo.h 7KB
IRLibSAMD51.cpp 5KB
IRLibHardware.h 15KB
COPYRIGHT.txt 3KB
.gitattributes 378B
LICENSE.txt 34KB
readme.md 2KB
IRLibFreq
IRLibFreq.cpp 3KB
IRLibFreq.h 1KB
COPYRIGHT.txt 3KB
LICENSE.txt 34KB
library.properties 470B
CHANGELOG.txt 4KB
IRLibRecv
COPYRIGHT.txt 3KB
LICENSE.txt 34KB
IRLibRecv.h 1KB
IRLibRecv.cpp 7KB
library.properties 501B
IRLib2
IRLibDecodeBase.h 5KB
IRLibRecvBase.cpp 10KB
COPYRIGHT.txt 3KB
LICENSE.txt 34KB
IRLib2.h 1KB
readme.md 2KB
examples
autoResume
autoResume.ino 1KB
record
record.ino 4KB
servo
servo.ino 3KB
analyze
analyze.ino 6KB
dumpFreq
dumpFreq.ino 2KB
rawRecv
rawRecv.ino 1KB
pattern
pattern.ino 5KB
rawSend
rawSend.ino 1KB
dump
dump.ino 986B
send
send.ino 1KB
comboDump
comboDump.ino 1KB
serialRemote
click.wav 19KB
remotebg.png 48KB
serialRemote.ino 2KB
POV-Ray
remotebg.pov 2KB
serialRemote.py 5KB
freq
freq.ino 2KB
Iot_IR
cable_and_tv.html 7KB
readme.md 3KB
IoT_IR
WiFi101_Util.h 2KB
arduino_secrets.h 47B
IoT_IR.ino 2KB
adafruit_remote.html 6KB
hashDecode
hashDecode.ino 2KB
IRLibRecvLoop.h 1KB
library.properties 595B
CHANGELOG.txt 4KB
IRLibAll.h 2KB
IRLibDecodeBase.cpp 7KB
IRLibRecvBase.h 4KB
IRLibGlobals.h 8KB
IRLibRecvLoop.cpp 2KB
manuals
IRLibReference.docx 809KB
User's Manual for IRLib2 - Chris Young.pdf 1.13MB
Users Manual for IRLib2 - Chris Young.epub 480KB
IRLibReference.pdf 873KB
User's Manual for IRLib2 - Chris Young.docx 807KB
User's Manual for IRLib2 - Chris Young.epub 550KB
.gitignore 649B
IRLibRecvPCI
COPYRIGHT.txt 3KB
LICENSE.txt 34KB
IRLibRecvPCI.cpp 6KB
library.properties 491B
IRLibRecvPCI.h 2KB
共 95 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功