user13634: I'm looking for a library to decode RAW IR signals from an IR sensor (looks like a black LED, two legged) rather than an IR module (3 legged, rated for a particular frequency - such as 38kHz).
Is there a library that supports IR sensors?
A picture of the two possibilities can be seen here
EDIT: This isn't a duplicate of my previous post, it is related to the same project however.
On my previous question I asked what could be the cause. I've found out what it is - frequency. My previous IR detector was an IR module and not an IR sensor. The difference could be seen here

user11982: I had a similar project a few months back and spotted this Arduino Library:
https://github.com/z3t0/Arduino-IRremote
and it is invaluable.
For your instance, you want the RAW Data which you can achieve using an Example included in the Library named: IRrecvDemo.
The wiring is easy and straight forward

An IR detector/demodulator must be connected to the input RECV_PIN.

Which is 11 by default but you can definitely change it :3
and the other two Legs of the IR detector/demodulator go to the power source.

user16673: IRremote (already recommended) - but to save you some time, use the IRRecvDump example to grab the raw codes you need for sendRaw(). They need to be averaged out across 10-20 reads. I log the output to a file, and use a perl script to do it for me, since it is painful to type this into a calculator a million times. The resistor you connect to the sensor affects its sensitivity - I used 330ohm, and have ~10 metres range from a 3V3 remote inside, 4-5 metres outside in sunlight. I would give you the script, but it's on my desktop. Let me know if you need it - or just use python, which is so popular nowadays (indent-or-fail... feh. what about people who don't like setting up the tab-space continuum, and don't have fancy editors...mumblemumble)
Edit: my raw codes absolutely needed to be averaged out, or they were useless. Any negative values in the array can just be made positive, don't fret.

13634: <p>I'm looking for a library to decode RAW IR signals from an IR sensor (looks like a black LED, two legged) rather than an IR module (3 legged, rated for a particular frequency - such as 38kHz).</p>

<p>Is there a library that supports IR sensors?</p>

<p>A picture of the two possibilities can be seen <a href="http://www.instructables.com/id/How-to-use-IR-Sensor-using-Op-amp-and-Arduino/" rel="nofollow noreferrer">here</a></p>

<p>EDIT: This isn't a duplicate of <a href="https://arduino.stackexchange.com/questions/16361/a-c-doesnt-detect-ir-codes-sent-from-arduino">my previous post</a>, it is related to the same project however.
On my previous question I asked what could be the cause. I've found out what it is - frequency. My previous IR detector was an IR module and not an IR sensor. The difference could be seen <a href="http://www.instructables.com/id/How-to-use-IR-Sensor-using-Op-amp-and-Arduino/" rel="nofollow noreferrer">here</a></p>
 11982: <p>I had a similar project a few months back and spotted this Arduino Library:</p>

<p><a href="https://github.com/z3t0/Arduino-IRremote" rel="nofollow">https://github.com/z3t0/Arduino-IRremote</a></p>

<p>and it is invaluable.</p>

<p>For your instance, you want the RAW Data which you can achieve using an Example included in the Library named: IRrecvDemo.</p>

<p>The wiring is easy and straight forward</p>

<blockquote>
  <p>An IR detector/demodulator must be connected to the input RECV_PIN.</p>
</blockquote>

<p>Which is 11 by default but you can definitely change it :3</p>

<p>and the other two Legs of the IR detector/demodulator go to the power source.</p>
 16673: <p>IRremote (already recommended) - but to save you some time, use the IRRecvDump example to grab the raw codes you need for <code>sendRaw()</code>. They need to be averaged out across 10-20 reads. I log the output to a file, and use a perl script to do it for me, since it is painful to type this into a calculator a million times. The resistor you connect to the sensor affects its sensitivity - I used 330ohm, and have ~10 metres range from a 3V3 remote inside, 4-5 metres outside in sunlight. I would give you the script, but it's on my desktop. Let me know if you need it - or just use python, which is so popular nowadays (indent-or-fail... feh. what about people who don't like setting up the tab-space continuum, and don't have fancy editors...mumblemumble)
Edit: my raw codes absolutely needed to be averaged out, or they were useless. Any negative values in the array can just be made positive, don't fret.</p>
