ferdywallinx wrote:Could this be the same cause why my TSL-235R (
http://www.ams.com/eng/content/download ... 925/142301) is not working? It is a chip that is connected to 5V or 3.3V and to ground, with a third pin going to GPIO 18 PWM and puts out a signal between 100-500.000 Hz. When the light intensity is normal indoors it works but if I increase the light temporarily it stops working and does not continue for a while even after I removed the extra lightsource. If so, how can I solve this?
so you have a photodiode with built in frequency converter giving you a frequency output of up to 500 kHz.
you have connected the Vdd of the frequency converter to 5V and the output to pin 18 (which you have setup as an input).
As a result you are putting 5V onto your GPIO input which is only 3v3 tolerant and damaging the Pi. The chances are that the Pi is already irreversibly damaged and will eventually stop working entirely (as the damage slowly spreads).
what you could have done is connect the TSL-235R to the 3v3 rail instead of the 5v rail (the datasheet says that this chip will work with a Vdd as low as 2v7) then the output would have been safe for the Pi's GPIO inputs.
Doug.
Building Management Systems Engineer.