El presente sitio presenta diseños y proyectos realizados con Solidworks y otros programas 3d , además de laminas y modelos 3d para practicar en casa, con el único objetivo de poder aprender y explorar la capacidad de Solidworks, no existiendo en ningún caso fines de lucro.

Tuesday, March 17, 2015

How To interface ir receiver to arduino

Posted by Juan Francisco | Tuesday, March 17, 2015 | Category: |

There are different types of ir sensor available in market (sm0038 ,TSOP1738) according to need of application you can use it.among them IR sm0038 easily available in market and cost about 0.45 $ (on ebay.com) and 20 to 25  indian rupees on Indian market.it is very cheap and easily available sensor.so we work with this sensorworking and description of ir SM0038 sensor
The TSOP will help you to interface your TV remote with the Arduino and in the Process learn the basics of Wireless Communication. The TSOP outputs a constant HIGH signal when idle and as it receives data, it tends to invert the data. i.e when an IR LED is transmitting data onto the TSOP, every time the IR led goes high, the TSOP will go LOW and vice versa. Remote control signals are often bytes of data that is encoded and transmitted by pulsing(switching ON & OFF the IR LED at a specific frequency) Most TV remote controls work at 32-40 KHz frequency and most receivers can receive this rangHere's a basic outline of how the data is sent. Every time you press a button on a Sony remote control, it sends out a 13Bit data. The first bit is a start bit indicating there are 12 bits of data following it. The next 7 bits are the command bit which will vary depending upon the keys being pressed. The last 5 bits are the address bits which will the same for all buttons but vary for remote controls of different devices.The black bars in the following image correspond to high signals (called marks) and the white spaces in between correspond to low signals (called spaces). The duration of the 'marks' varies according to the bit being transmitted. It is 2.4ms for the start bit, 1.2ms for HIGH bit and 0.6ms for LOW bit. The duration of the 'spaces' is a constant 0.6ms. Every mark is followed by a space. Any data can be converted to binary format and transmitted in this manner. In fact this is the basic form of all types o serial communication.


Interface IR receiver SM0038 with arduino


Step to configure Different Remote
(1)  Download Sample code and Lode  it.(2)  Now open serial monitor and press any key(3)  Now find same code(4)  Replace it with Ir_receiver code value(5)  Load ir_receiver code
DOWNLOAD CODE FROM HERE ir_receiver.inoir_sample.ino

Fuente: http://ntbox.blogspot.com/2014/03/how-to-interface-ir-receiver-to-arduino.html

Currently have 0 comentarios:

Leave a Reply

Te doy la bienvenida al blog , puedes escribir tu comentario en la casilla mostrada abajo ,gracias.
You are welcome in this blog , you can write your comment in the box shown below, thanks.