SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Arduino
     紅外線遙控

       Cooper Maa

德明 Arduino 開發經驗分享 - 2011
Arduino
          ARRRR, /
/ DWEE, just say "do we“ fast /
       / NO, as in no.


”ARRR-DWEE-NO”
What is Arduino?
• Open Source   + Software IDE + Community
  Hardware
What is for today?
•   接收紅外線訊號
•   A Simple DIY IR Decoder
•   發射紅外線訊號
•   DIY Keypad Remote Control
Infrared Remote Control
• 非常普遍使用的無線通訊
• 用於電視、冷氣、DVD Player、MP3 Player, 玩
  具遙控車等各種設備的控制
Arduino & IRRemote
• With Arduino & IRRemote Library, you can
  make your own infrared applications.
What you need?
• First, you need an Arduino board and an
  USB cable
What you need?
• Second, you need Arduino IDE to write
  program
What you need?
• Third, an infrared receiver and a 940 nm
  Infrared LED (a.k.a Infrared Emitter)
What you need?
• Last, download and install IRRemote
  Library: http://goo.gl/2HKLm
Make sure things work
• Load "File > Examples > 1.Basics > Blink"
Examples used in this opentalk
• For your convenience, the examples used
  in this opentalk has been uploaded to
  google doc, you can download the
  examples from the following url:

       http://goo.gl/KSOu6
What is for today?
•   接收紅外線訊號
•   A Simple DIY IR Decoder
•   發射紅外線訊號
•   DIY Keypad Remote Control
接收紅外線訊號
• The wiring:
接收紅外線訊號
• Load "File > Sketchbook > IRRemoteExamples > Example1_1"
接收紅外線訊號
• Try your remote:
接收紅外線訊號
• Open Serial Monitor and see the result:
Four steps to receive Infrared signals
 1. 引用 IRRemote 函式庫:
   #include <IRremote.h>

 2. 建立 IRrecv 物件及 decode_results變數:
   const int irReceiverPin = 2; // 紅外線接收器 VOUT 腳位
   IRrecv irrecv(irReceiverPin); // 用來接收紅外線訊號
   decode_results results;       // 用來存放解碼結果

 3. 啟動紅外線解碼:
   irrecv.enableIRIn();      // 啟動紅外線解碼

 4. 檢查有沒收到紅外線:
   if (irrecv.decode(&results)) { // 解碼成功…
decode_results structure
• The structure of decode_results
decode_results structure
• The structure of decode_results
顯示紅外線協定種類
• Load "File > Sketchbook > IRRemoteExamples > Example1_2"
顯示紅外線協定種類
• Open Serial Monitor and see the result:
Infrared LED Indicator
• Load "File > Sketchbook > IRRemoteExamples > Example1_3v2"
Infrared LED Indicator
• The infrared LED indicator will blink when
  infrared signal is received.
What is for today?
•   接收紅外線訊號
•   A Simple DIY IR Decoder
•   發射紅外線訊號
•   DIY Keypad Remote Control
A simple DIY IR Decoder
• http://coopermaa2nd.blogspot.com/2011/03/14-lcd-ir-decoder.html
• The Wiring:
A simple DIY IR Decoder
• Load from http://goo.gl/2qFfC
A simple DIY IR Decoder
• The result of decoded infrared signals will
  shown on the LCD:
What is for today?
•   接收紅外線訊號
•   A Simple DIY IR Decoder
•   發射紅外線訊號
•   DIY Keypad Remote Control
發射紅外線訊號
• The wiring (IR LED 一定要接在 pin 3):
發射紅外線訊號
• Load "File > Sketchbook > IRRemoteExamples > Example2_1"
Three steps to send Infrared signals
1. 引用 IRRemote 函式庫:
  #include <IRremote.h>

2. 建立 IRsend 物件:
  IRsend irsend;          // 定義 IRsend 物件來發射紅外線訊號

3. 呼叫對應的 sendXXX() 函式發射紅外線訊號:
  irsend.sendNEC(0x4FB48B7, 32); // 記得換成你的紅外線編碼
DIY Keypad Remote Control
• http://coopermaa2nd.blogspot.com/2011/04/22-keypad.html
• The Wiring:
DIY Keypad Remote Control
• Load from http://goo.gl/Tr4a7
DIY Keypad Remote Control
• Now you have made a simple Remote Control
  using Keypad and just a simple infrared LED:
Questions?
References
• IRRemote 紅外線遙控教學
• 紅外線遙控原理與 NEC IR Protocol
• WinLIRC 紅外線遙控電腦

Weitere ähnliche Inhalte

Was ist angesagt?

Home automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-ioHome automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Tran Minh Nhut
 

Was ist angesagt? (20)

Intro to Arduino.ppt
Intro to Arduino.pptIntro to Arduino.ppt
Intro to Arduino.ppt
 
Build WiFi gadgets using esp8266
Build WiFi gadgets using esp8266Build WiFi gadgets using esp8266
Build WiFi gadgets using esp8266
 
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-ioHome automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-io
 
Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]
 
Hacker's and painters Hardware Hacking 101 - 10th Oct 2014
Hacker's and painters Hardware Hacking 101 - 10th Oct 2014Hacker's and painters Hardware Hacking 101 - 10th Oct 2014
Hacker's and painters Hardware Hacking 101 - 10th Oct 2014
 
Interacting with Intel Edison
Interacting with Intel EdisonInteracting with Intel Edison
Interacting with Intel Edison
 
Intro arduino English
Intro arduino EnglishIntro arduino English
Intro arduino English
 
Esp8266 Workshop
Esp8266 WorkshopEsp8266 Workshop
Esp8266 Workshop
 
Arduino Forensics
Arduino ForensicsArduino Forensics
Arduino Forensics
 
Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!
 
Arduino technical session 1
Arduino technical session 1Arduino technical session 1
Arduino technical session 1
 
Remote tanklevelmonitor
Remote tanklevelmonitorRemote tanklevelmonitor
Remote tanklevelmonitor
 
Cassiopeia Ltd - ESP8266+Arduino workshop
Cassiopeia Ltd - ESP8266+Arduino workshopCassiopeia Ltd - ESP8266+Arduino workshop
Cassiopeia Ltd - ESP8266+Arduino workshop
 
Open Source Home Automation with LinkSprite.IO
Open Source Home Automation with LinkSprite.IOOpen Source Home Automation with LinkSprite.IO
Open Source Home Automation with LinkSprite.IO
 
NodeMCU with Blynk and Firebase
NodeMCU with Blynk and FirebaseNodeMCU with Blynk and Firebase
NodeMCU with Blynk and Firebase
 
Home Automation by ESP8266
Home Automation by ESP8266Home Automation by ESP8266
Home Automation by ESP8266
 
Arduino & NodeMcu
Arduino & NodeMcuArduino & NodeMcu
Arduino & NodeMcu
 
Programando o ESP8266 com Python
Programando o ESP8266 com PythonProgramando o ESP8266 com Python
Programando o ESP8266 com Python
 
Introduction to Arduino and Circuits
Introduction to Arduino and CircuitsIntroduction to Arduino and Circuits
Introduction to Arduino and Circuits
 
Getting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer KitGetting started with Intel IoT Developer Kit
Getting started with Intel IoT Developer Kit
 

Ähnlich wie Arduino i rremote 1112

Rhodes mobile Framework
Rhodes mobile FrameworkRhodes mobile Framework
Rhodes mobile Framework
Yoshi Sakai
 
Joxean Koret - Database Security Paradise [Rooted CON 2011]
Joxean Koret - Database Security Paradise [Rooted CON 2011]Joxean Koret - Database Security Paradise [Rooted CON 2011]
Joxean Koret - Database Security Paradise [Rooted CON 2011]
RootedCON
 

Ähnlich wie Arduino i rremote 1112 (20)

All about ir arduino - cool
All about ir   arduino - coolAll about ir   arduino - cool
All about ir arduino - cool
 
Advanced SOHO Router Exploitation XCON
Advanced SOHO Router Exploitation XCONAdvanced SOHO Router Exploitation XCON
Advanced SOHO Router Exploitation XCON
 
Spark - pre-#startathon Workshop 2014
Spark - pre-#startathon Workshop 2014Spark - pre-#startathon Workshop 2014
Spark - pre-#startathon Workshop 2014
 
Device inspection to remote root
Device inspection to remote rootDevice inspection to remote root
Device inspection to remote root
 
Republic of IoT 2018 - ESPectro32 and NB-IoT Workshop
Republic of IoT 2018 - ESPectro32 and NB-IoT WorkshopRepublic of IoT 2018 - ESPectro32 and NB-IoT Workshop
Republic of IoT 2018 - ESPectro32 and NB-IoT Workshop
 
Rhodes mobile Framework
Rhodes mobile FrameworkRhodes mobile Framework
Rhodes mobile Framework
 
Autonomous robotics based on simple sensor inputs.
Autonomous robotics based on simplesensor inputs.Autonomous robotics based on simplesensor inputs.
Autonomous robotics based on simple sensor inputs.
 
From printed circuit boards to exploits
From printed circuit boards to exploitsFrom printed circuit boards to exploits
From printed circuit boards to exploits
 
IOT Smart House
IOT Smart HouseIOT Smart House
IOT Smart House
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
Joxean Koret - Database Security Paradise [Rooted CON 2011]
Joxean Koret - Database Security Paradise [Rooted CON 2011]Joxean Koret - Database Security Paradise [Rooted CON 2011]
Joxean Koret - Database Security Paradise [Rooted CON 2011]
 
IoT Getting Started with Intel® IoT Devkit
IoT Getting Started with Intel® IoT DevkitIoT Getting Started with Intel® IoT Devkit
IoT Getting Started with Intel® IoT Devkit
 
Lab2ppt
Lab2pptLab2ppt
Lab2ppt
 
Autonomous Drone Development with Java and IoT
Autonomous Drone Development with Java and IoTAutonomous Drone Development with Java and IoT
Autonomous Drone Development with Java and IoT
 
Using R for the internet of things
Using R for the internet of thingsUsing R for the internet of things
Using R for the internet of things
 
photoresistor or photocell with ardunio pptx
photoresistor  or photocell  with  ardunio pptxphotoresistor  or photocell  with  ardunio pptx
photoresistor or photocell with ardunio pptx
 
Adk 101
Adk 101Adk 101
Adk 101
 
Memory, IPC and L4Re
Memory, IPC and L4ReMemory, IPC and L4Re
Memory, IPC and L4Re
 
Taking the hard out of hardware
Taking the hard out of hardwareTaking the hard out of hardware
Taking the hard out of hardware
 
An Hour of Arduino and Ardublock
An Hour of Arduino and ArdublockAn Hour of Arduino and Ardublock
An Hour of Arduino and Ardublock
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Kürzlich hochgeladen (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 

Arduino i rremote 1112