got the pwm to work for the ir led to send signals. just need a good tip for getting analog readings from my TSOP now ive tried this guide here:
http://www.raspberrypi-spy.co.uk/2012/0 ... -gpio-pin/
but it doesnt seem to work with my TSOP 4856 reciever and i dont know why? if i can get that to work all the electronics are done and i can move over to makeing some simple rules for the game and the project is done.
also it doesnt realy matter if it shows all the Infrared radiation as cause the rest i can manage with margins like having 1 be a 30ms and 0 to be 40ms duration,
The article you've linked to shows the use of a light dependent resistor, which is good for sensing basic light there / not there situations but too slow to respond to data of any kind: Furthermore they tend to be most sensitive to visible yellow light. However, I see that the device you are actually using is an IR-receiver IC.
I don't know about your specific receiver but most of those little three-leg infrared receivers are hard-coded to expect the signal they are receiving to be pulsed on and off at a specific frequency during the led ON phases of the transmission.
A typical frequency might be 40khz, but you'd need to check the data sheet for your device to see what its 'tuned' frequency is.
So if your receiver responded to that frequency and your data consisted of 10ms on, 10ms off, 10ms on, that would need to be transmitted by the IR led as 10ms of led being flashed at 40Khz, 10ms of nothing, 10ms of led being flashed at 40Khz.
The 40Khz (or whatever) frequency is what makes the receiver take notice of your transmission. It is designed to ignore any signal which doesn't have the correct 'carrier' frequency.
The receiver itself removes the carrier frequency and outputs the data signal as 10ms on, 10ms off, 10ms on in the case of the example data above.
Edit: According to the specification here, the tuned carrier frequency for your device is 56Khz.
http://uk.farnell.com/vishay-semiconduc ... dp/1772592