2011年9月24日 星期六

Arduino:我的遙控器

1.紅外線發射器 x 1
2.Arduino x 1
3.Arduino 網路模組 x 1
4.Android 手機 x 1
5.226歐姆 x 1




Arduino控制紅外線發射器

 















撰寫Android手機程式送出訊息到Arduino
 

Arduino:紅外線發射器

參考:http://coopermaa2nd.blogspot.com/2011/04/22-keypad.html

紅外線發射器長腳為正極,短腳為負極

紅外線發射器


Arduino + 紅外線發射器
 


Arduino + 紅外線發射器接線圖

Arduino:紅外線接收器

參考:http://coopermaa2nd.blogspot.com/2011/04/22-keypad.html

接收結果 .....如下:

音量大聲
Protocol: SONY
irCode: 490,  bits: 12
Protocol: SONY
irCode: 490,  bits: 12
Protocol: SONY
irCode: 490,  bits: 12

音量小聲
Protocol: SONY
irCode: C90,  bits: 12
Protocol: SONY
irCode: C90,  bits: 12

電視開關
Protocol: SONY
irCode: A90,  bits: 12
Protocol: SONY
irCode: A90,  bits: 12
Protocol: SONY
irCode: A90,  bits: 12

頻道選上
Protocol: SONY
irCode: 90,  bits: 12
Protocol: SONY
irCode: 90,  bits: 12

頻道選下
irCode: 890,  bits: 12
Protocol: SONY
irCode: 890,  bits: 12

[1]
Protocol: SONY
irCode: 10,  bits: 12
Protocol: SONY
irCode: 10,  bits: 12

[2]
Protocol: SONY
irCode: 810,  bits: 12
Protocol: SONY
irCode: 810,  bits: 12
Protocol: SONY
irCode: 810,  bits: 12

[3]
Protocol: SONY
irCode: 410,  bits: 12
Protocol: SONY
irCode: 410,  bits: 12
Protocol: SONY
irCode: 410,  bits: 12

[4]
Protocol: SONY
irCode: C10,  bits: 12
Protocol: SONY
irCode: C10,  bits: 12

[5]
Protocol: SONY
irCode: 210,  bits: 12
Protocol: SONY
irCode: 210,  bits: 12

[6]
Protocol: SONY
irCode: A10,  bits: 12
Protocol: SONY
irCode: A10,  bits: 12
Protocol: SONY
irCode: A10,  bits: 12

[7]
Protocol: SONY
irCode: 610,  bits: 12
Protocol: SONY
irCode: 610,  bits: 12
Protocol: SONY
irCode: 610,  bits: 12

[8]
Protocol: SONY
irCode: E10,  bits: 12
Protocol: SONY
irCode: E10,  bits: 12
Protocol: SONY
irCode: E10,  bits: 12

[9]
Protocol: SONY
irCode: 110,  bits: 12
Protocol: SONY
irCode: 110,  bits: 12
Protocol: SONY
irCode: 110,  bits: 12

[0]
Protocol: SONY
irCode: 910,  bits: 12
Protocol: SONY
irCode: 910,  bits: 12
Protocol: SONY
irCode: 910,  bits: 12

[MUTE]
irCode: 290,  bits: 12
Protocol: SONY
irCode: 290,  bits: 12
Protocol: SONY
irCode: 290,  bits: 12

[Enter]
irCode: D10,  bits: 12
Protocol: SONY
irCode: D10,  bits: 12
Protocol: SONY
irCode: D10,  bits: 12


紅外線接收器




Arduino + 紅外線接收器