IR Control Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.

Slides:



Advertisements
Similar presentations
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Advertisements

IR Control Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Infrared Remote for Android Georgi Bakalski & Boris Ribov.
FREQUENCY SHIFT KEYING
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
IR Control Materials taken from IR Remote for the Boe-Bot by Andy Lindsay.
OutLine Overview about Project Wii Robot Escaper Robot Problems and Solutions Demo.
Part A: Controlling Oscillation Frequency with Capacitors and Resistors Part B: Diodes and Light Experiment Timer.
VAHCS Voice Activated Home Control System By: Kyle Joseph Troy Resetich Advisors: Dr. Malinowski Dr. Schertz.
Remote Controls the incredible saga of invisible light by Samuel Bradshaw and Ryan Roose (of 7 th )
NETE 0510 Presented by Dr.Apichan Kanjanavapastit
RM2F Input / Output (I/O) Pin grouping code!. I/O Pin Group Operations: The Spin language has provisions for assigning values to groups of bits in the.
Microcontrollers Module 4: Motion Control. Module Objectives Upon successful completion of this module, students will be able to: Give examples of microcontroller.
Sensors Material taken from Robotics with the Boe-Bot.
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
Programming Concepts Part B Ping Hsu. Functions A function is a way to organize the program so that: – frequently used sets of instructions or – a set.
Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion.
RM2D Let’s write our FIRST basic SPIN program!. The Labs that follow in this Module are designed to teach the following; Turn an LED on – assigning I/O.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
Speaker Control SYSTEM
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
IR Communication October 27, Sources  Lindsay, Andy. IR Remote for the Boe- Bot. v
Using IR Chapters 7 & 8 of Robotics with the Boe-Bot.
Microcontrollers Module 3: Digital Display. 7 – Segment Display A seven-segment display (SSD), or seven- segment indicator, is a form of electronic display.
Servos The material presented is taken from a variety of sources including:
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
PHY 235 Robotics Workshop Day 5 Distance Sensing Using The Ultrasonic Ping Sensor.
Using IR Chapters 7 & 8 of Robotics with the Boe-Bot.
Smart Lens Robot William McCombie IMDL Spring 2007.
PWM: Pulse Width Modulation © 2014 Project Lead The Way, Inc.Digital Electronics.
MECH 1500 Chapter 4. MECH 1500 The Binary Concept 4.1.
INTERNET OF EVERYTHING SDU 2016 Week 12. Remotely Controlling Devices  interact with almost any device that uses some form of remote control  TVs, audio.
Application Case Study Christmas Lights Controller
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
NUMBER SYSTEMS.
Arduino Based Industrial appliances control system by decoding dual tone multi frequency signals on GSM / CDMA network. Submitted by:
Home automation using Arduino & ‘PIR sensor’
The 8085 Microprocessor Architecture
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Wireless 4 Buttons Touch Panel
Introduction to Handshaking Communication with SSC-32U
Project Title ARDUINO BASED WIRELESS ELECTRICAL APPARATUS CONTROL SYSTEM USING IR COMMUNICATION Under the Guidance of Submitted by.
Wireless 3 Buttons Touch Panel
Digital Communication
Materials taken from IR Remote for the Boe-Bot by Andy Lindsay
Servos The material presented is taken from a variety of sources including:
Arduino Part 1 Topics: Microcontrollers Programming Basics
Arduino - Introduction
Introduction to Handshaking Communication with SSC-32
Communication Protocol
Chapter 4: Digital Transmission
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Programming Boe-Bots (Part 1)
Binary Counter Thinking Digitally
Internet-of-Things (IoT)
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi.
Welcome to Digital Electronics using the Arduino Board
CSCI1600: Embedded and Real Time Software
IR Object Detection IR detector IR LED IR light reflected off object
Materials taken from IR Remote for the Boe-Bot by Andy Lindsay
Materials taken from IR Remote for the Boe-Bot by Andy Lindsay
Manual Robotics ..
UNIT 7: INFRARED SENSORS
UNIT 5 Analog signals.
CSCI1600: Embedded and Real Time Software
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Introduction to Arduinos
UNIT 7: INFRARED SENSORS
Presentation transcript:

IR Control Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay

The Plan: Use a TV Remote to Communicate with the Arduino IR signal Sony TV remote control PWM

What is IR: Visible Light Waves

What is Infrared

The IR Signal The IR detector is only looking for infrared that’s flashing on and off 38,500 times per second. It has built-in optical filters that allow very little light except the 980 nm infrared. It also has an electronic filter that only allows signals around 38.5 kHz to pass through. This is the type of signal produced by the remote control. This prevents IR interference from common sources such as sunlight and indoor lighting.

Important Concepts Pulse width modulation (PWM): Pulse durations are used in many applications, a few of which are motor control, and communication. Since the IR detector sends low pulses that can be measured to determine what information the IR remote is sending, it's an example of using PWM for communication. Carrier signal: The IR remote uses a 38.5 kHz "carrier signal" to transmit the pulse durations from the remote to the IR detector. Communication protocol: A communication protocol is a set of rules for devices that have to exchange electronic messages. Protocols tend to have rules for voltages, the amount of time signals last, carrier signal frequencies and/or wavelengths, and much more. When two or more devices follow the rules of a given protocol, they should be able to communicate and exchange information.

The BRIGHTSTAR TV Remote Control You must configure your BRIGHTSTAR universal remote so that it sends PWM messages using the SONY protocol. Press and hold the SET-UP button until the indicator LED blinks and remains on, then release the button. Use the digit keys to enter the code 605. After your code is entered, the indicator LED will turn off and you are done.

The Sony Protocol

Protocol Details This message consists of thirteen negative pulses that the Arduino can easily measure. 1: the start pulse, which lasts for 2.4 ms. 2-13: will either last for 1.2 ms (binary-1) or 0.6 ms (binary-0). 2-8: indicates which key is pressed. 9-13: indicate if the message is being sent to a TV, VCR, CD, DVD player, etc. Pulses are transmitted in least significant bit first fashion. the first data pulse is bit-0. the next data pulse is bit-1 Etc. If you press and hold a key on the remote, the same message will be sent over and over again with a 20 to 30 ms rest between messages.

How the IR Detector Works Our IR receiver is the same detector found in many TVs and VCRs. This detector sends a low signal whenever it detects IR flashing on/off at 38.5 kHz and a high signal the rest of the time. When the IR detector sends low signals, the processor inside a TV or VCR measures how long each of the low signals lasts. Then, it uses these measurements to figure out which key was pressed on the remote. Like the processor inside a TV, the Arduino can be programmed to detect, measure, store, and interpret the sequence of low pulses it receives from the IR detector.

Schematic for IR Detector

pulseIn Command The syntax for the pulseIn command is pulseIn (Pin, State); Pin: the I/O pin for measuring the pulse. State is used to determine whether the pulse is a HIGH or LOW Option third input: max duration in millisecs The output of the IR detector is inverted (i.e., LOW). pulseIn(pin#, LOW); pin# is the pin connected to the IR detector

Using pulseIn() while(pulseIn(9, LOW) < 2200) { } //Wait for start pulse

Interpreting the IR Message The Idea: represent the pulse sequence as a bit sequence. The IR message consists of thirteen pulses with the following format: 1: the start pulse lasts for 2.4 ms. 2-13: will either last for 1.2 ms (binary-1) or 0.6 ms (binary-0). Map the duration of pulses 2-8 to their corresponding binary value Use pulseIn() to measure pulse length Use the bitSet() to create the corresponding binary representation

Program for Reading IR Signals ReadIR Programming Features: pulseIn() and bitSet() Arrays A debug flag to turn on printout Throws away devise designation Adjusts bit pattern to match numeric keys

Program for Controlling Bot IRcontrol Programming Features: Switch statement Servo library

Adding a Speaker Any digital pin will work