IR Communication October 27, 2004. Sources  Lindsay, Andy. IR Remote for the Boe- Bot. v 1.0 2004.

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.
Boe-bots and STEM Boe-bots and STEM – This sectional will introduce participants to a programmable robot that is useful for engaging students in building.
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
IR Control Materials taken from IR Remote for the Boe-Bot by Andy Lindsay.
Using the Board of Education Breadboard and Your Multimeter ENGR 120 Work in teams of two!
Parallax, Inc. Presentation based on: “Robotics: with the Boe-Bot"
1 Lecture 1: Your Boe-Bot's Servo Motors Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed by: Martin.
Hardware Meets Software CPSC 120 Principles of Computer Science February 15, 2012.
Digital Tachometer ENGR 4803 Electromechanical Systems & Mechatronics.
Final Presentation Andres Fausto Stewart Bewley Philip Dawsey Ki Baek Eom.
ENGR 101: Robotics Lecture 2 – Text Programming Outline  Introduction to PBASIC  Variables, I/O, Arithmetic  Controlling the LEDs References 
ENGR 101: Robotics Lecture 5 – Subprograms Outline  Subprograms  The Infrared Sensor System References 
VAHCS Voice Activated Home Control System By: Kyle Joseph Troy Resetich Advisors: Dr. Malinowski Dr. Schertz.
Sensors Material taken from Robotics with the Boe-Bot.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Andy.
Microcontrollers Module 4: Motion Control. Module Objectives Upon successful completion of this module, students will be able to: Give examples of microcontroller.
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Designing A Computer CPSC 120 Principles of Computer Science February 6, 2012.
Control Some Material taken from RobotSubsumption.pdf.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Jessica.
The Basic Stamp Instruction Set Architecture. The Microprocessor A microprocessor is a computer that typically has an architecture that is well suited.
1 A Modification of Chapters 5 & 7 Slides Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by:
Robotics Engineering Basic Maneuvers. Getting the Boe-Bot to Move One of the first tasks we need to do is to get our bots moving.One of the first tasks.
Controlling the Outside World
1 Parallax BASIC Stamp ® Tutorial Developed by: Electronic Systems Technologies College of Applied Sciences and Arts Southern Illinois University Carbondale.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
Software and documentation Download and install: “Setup-Stamp-Editor-Lrg-v2.2.6.exe”  Downloads  BASIC Stamp software BASIC Stamp Syntax.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
Slide 1 IR Remote for the Boe-Bot IR Remote for the Boe-Bot.
Sensors Material taken from Robotics with the Boe-Bot.
Microcontroller I Seth Price Department of Chemical Engineering New Mexico Tech Rev. 9/22/14.
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
1 Lecture 1: Your Boe-Bot's Servo Motors Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation developed by: Martin.
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.
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Andy.
ENGR 101: Robotics Lecture 3 – Robot Motion Outline  Robot Motion  FOR Loops  Making Music References 
ENGR 101: Robotics Lecture 4 – Making Decisions Outline  The Stall Sensor  Making Decisions  Random Number Generation References 
July 7, 2003 Slide 1 of 6 Automation, Robotics and Mechatronics Lab, SUNY at Buffalo Introduction To Programming Chetan Jadhav Talib Bhabharawala Seung-Kook.
Slide Menlo Drive Suite 100 Rocklin, CA
Slide 1 Chapter #7: Measuring Light Light Sensor Circuit Parts (1) (1)Resistor – 220 Ω (red-red-brown) (1) Capacitor – 0.1  F (1) Capacitor – 0.01  F.
Digital Electronics The Boe-Bot and Servo Motors.
Using IR Chapters 7 & 8 of Robotics with the Boe-Bot.
1 BOE-BOT Lecture #2 DE - Digital Electronics Servos and the BOE-BOT.
INTERNET OF EVERYTHING SDU 2016 Week 12. Remotely Controlling Devices  interact with almost any device that uses some form of remote control  TVs, audio.
Limited rotation servo basics David Hall output shaft servo horn red wire = 5V + black wire = Gnd - white wire = control signal standard servo.
The “Board of Education” 1 Three-position switch 0 = OFF 1 = ON / wheels OFF 2 = ON / wheels ON breadboard (for building circuits) electrical power (V.
Slide Menlo Drive Suite 100 Rocklin, CA
Application Case Study Christmas Lights Controller
Introduction to Servos
Servo Positioning Pulse Width Direction of Rotation PULSOUT Period
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
OEM BASIC Stamp 2sx 220 Ohm.
Materials taken from IR Remote for the Boe-Bot by Andy Lindsay
Some Material taken from RobotSubsumption.pdf
IR Control Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Communication Protocol
Programming Boe-Bots (Part 1)
PROMGRAMING YOUR ROBOT
Material taken from Robotics with the Boe-Bot
Controlling YOUR ROBOT
Some Material taken from RobotSubsumption.pdf
Materials taken from IR Remote for the Boe-Bot by Andy Lindsay
Karl Jean-Francois-James Madison H.S. & Eldiquen Mangubat-IS 232
Materials taken from IR Remote for the Boe-Bot by Andy Lindsay
Fevzi Ozaydin & Violet Mwaffo
UNIT 7: INFRARED SENSORS
UNIT 7: INFRARED SENSORS
Presentation transcript:

IR Communication October 27, 2004

Sources  Lindsay, Andy. IR Remote for the Boe- Bot. v

How Does a TV Remote Work?  On a button press, the remote flashes its IR LED on/off at 38.5 kHz to broadcast a code for that button.  The code is produced by controlling the brief amounts of time the IR LED flashes on and off.  It flashes a signal to indicate the start of transmission.  For a SONY TV, the remote has to broadcast IR for 2.4 ms o indicate start.  The message that follows consists of a combination of 1.2 ms (binary-1) and 0.6 ms (binary-0) broadcasts.  The IR detector on the Boe-Bot sends low signals that match the time pattern broadcast by the remote.

How Does the TV Dectector Work?  In many cases IR detector/receiver on your Boe-Bot 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.  These are used to figure out which key was pressed on the remote.  BASIC Stamp 2 can be programmed to detect, measure, store, and interpret the sequence of low pulses it receives from the same IR detector.

Timing Diagram  This message consists of thirteen negative pulses that the BASIC Stamp 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.

Timing Diagram

PULSIN Command  Complementary command to PULSOUT  The syntax for the PULSIN command is  PULSIN Pin, State, Variable  Pin: the I/O pin for measuring the pulse.  State is used to determine whether the pulse is a high pulse (1) or a low pulse (0).  Variable stores the pulse duration measured by the BASIC Stamp.

' IR Remote for the Boe-Bot - RecordAndDisplayPwm.bs2 ' Measure all data pulses from SONY IR remote set to control a TV. ' {$STAMP BS2} ' {$PBASIC 2.5} time VAR Word(12) ' SONY TV remote variables. index VAR Nib ' Display heading. DEBUG "time ARRAY", CR, "PWM MEASUREMENTS", CR, "Element Duration, 2-us", CR, " " DO ' Beginning of main loop. DO ' Wait for rest between messages. DO ' Wait for rest between messages. PULSIN 9, 0, time(0) PULSIN 9, 0, time(0) LOOP UNTIL time(0) > 1000 LOOP UNTIL time(0) > 1000

PULSIN 9, 0, time(0) ' Measure/store data pulses. PULSIN 9, 0, time(0) ' Measure/store data pulses. PULSIN 9, 0, time(1) PULSIN 9, 0, time(1) PULSIN 9, 0, time(2) PULSIN 9, 0, time(2) PULSIN 9, 0, time(3) PULSIN 9, 0, time(3) PULSIN 9, 0, time(4) PULSIN 9, 0, time(4) PULSIN 9, 0, time(5) PULSIN 9, 0, time(5) PULSIN 9, 0, time(6) PULSIN 9, 0, time(6) PULSIN 9, 0, time(7) PULSIN 9, 0, time(7) PULSIN 9, 0, time(8) PULSIN 9, 0, time(8) PULSIN 9, 0, time(9) PULSIN 9, 0, time(9) PULSIN 9, 0, time(10) PULSIN 9, 0, time(10) PULSIN 9, 0, time(11) PULSIN 9, 0, time(11) FOR index = 0 TO 11 FOR index = 0 TO 11 ' Display 12 pulse measurements. ' Display 12 pulse measurements. DEBUG CRSRXY, 0, 4 + index, "time(", DEC index, DEBUG CRSRXY, 0, 4 + index, "time(", DEC index, ")", ")", CRSRXY, 9, 4 + index, DEC time(index) CRSRXY, 9, 4 + index, DEC time(index) NEXT NEXT LOOP ' Repeat main loop.

A Sample Dataset  Test data for 5 second press of each key 0-9, vol+, vol-, ch+, ch-, power and enter.  Dataset Dataset

' IR Remote for the Boe-Bot - 2BitRemoteBoeBot.bs2 ' Control your Boe-Bot with an IR remote set to control a ' SONY TV with the 1-4 or CH+/- and VOL+/- keys. '{$STAMP BS2} '{$PBASIC 2.5} time VAR Word(2) ' SONY TV remote variables. DEBUG "Press & hold a digit key (1-4) or CH+/- and VOL+/-" FREQOUT 4, 2000, 3000 ' Start/reset indicator. DO ' Beginning of main loop. DO ' Wait for rest between messages. PULSIN 9, 0, time(0) LOOP UNTIL time(0) > 1000 PULSIN 9, 0, time(0) ' Measure/store data pulses. PULSIN 9, 0, time(1) ' Decide which maneuver to execute depending on the ' combination of pulse durations stored in the first ' two pulse measurements. IF (time(1) < 500) AND (time(0) < 500) THEN PULSOUT 13, 850 ' Forward PULSOUT 12, 650

ELSEIF (time(1) 500) THEN PULSOUT 13, 650 ' Backward PULSOUT 12, 850 ELSEIF (time(1) > 500) AND (time(0) < 500) THEN PULSOUT 13, 850 ' Right rotate PULSOUT 12, 850 ELSEIF (time(1) > 500) AND (time(0) > 500) THEN PULSOUT 13, 650 ' Left rotate PULSOUT 12, 650 ENDIF LOOP ' Repeat main loop.