Difference between revisions of "Sparkfun: IR Receiver Breakout Board"

From eLinux.org
Jump to: navigation, search
(Sending a Signal)
Line 10: Line 10:
 
== '''Sending a Signal''' ==
 
== '''Sending a Signal''' ==
  
The TSOP85338 operates with a carrier frequency of 38kHz.
+
The TSOP85338 operates with a carrier frequency of 38kHz. That is, when the IR sensor is receiving an IR signal that is being modulated at 38kHz it outputs a logic 0. Using the BeagleBone to send a message to the TSOP85338 can be done using one of its PWM outputs. To perform testing of these attributes, '''ehrpwm1:0''' can be used. By setting the '''duty_freq''' to 38000 and '''duty_percent''' to 50, it is possible to toggle an IR LED which if received by the sensor will output a logic 0. If the TSOP85338 is not receiving this modulated IR signal, it outputs a logic 1.
  
 
== '''Reading Using Interrupts and GPIO''' ==
 
== '''Reading Using Interrupts and GPIO''' ==

Revision as of 20:18, 27 September 2012


Background Information

Model: TSOP85338

Sample Rate: 38kHz

VDD: 2.5V-5.5V

Sending a Signal

The TSOP85338 operates with a carrier frequency of 38kHz. That is, when the IR sensor is receiving an IR signal that is being modulated at 38kHz it outputs a logic 0. Using the BeagleBone to send a message to the TSOP85338 can be done using one of its PWM outputs. To perform testing of these attributes, ehrpwm1:0 can be used. By setting the duty_freq to 38000 and duty_percent to 50, it is possible to toggle an IR LED which if received by the sensor will output a logic 0. If the TSOP85338 is not receiving this modulated IR signal, it outputs a logic 1.

Reading Using Interrupts and GPIO

Testing and Results

Reading Using PRU

Resources

DataSheet & Schematic: TSOP85338 Page on Sparkfun.com

Consumer IR: Wikipedia page on CIR