Hi all,
Trust someone here can help with a simple solution to my problem. I haven't needed any support or assistancve with Picaxe for more than 10 years.
I use Picaxe processors to provide signal control on my model railway. Have done for years with no problems.
A LDR (Light Dependant Resistor) is placed between the rails and I detect a drop in the returned value to indicate a train has passed over it. No problems with incandecant train rtoom lighting. (Halogen floodlights).
I have replaced to room lighting with LED floodlights. Consequence is, that the signalling does not work anymore.
I've determined that the LED floodlights "strobe", and I've checked the spec of the LDRs and they have a response time of about 25 millseconds. So I believe my problem to be the LDRs are now returning eratic and widely varying values to the Picaxe processor when I "sample" the LDR value, causing havoc with the Picaxe logic.
Firstly, would I be right in my diganosis here?
Secondly, how can I "smooth" the current passing through the LDRs to get a stable reading of the ambient light, or shaded light emitted by the LED floodlights? Some sort of capacitor "in series" or across the LDR maybe???
I'm not about to pull apart an entrie signalling system to use Infrared detection instead. (15 sets of signals and Pixace processors, and programming)
These are the lights I am using (20 of them) from here
Looking forward to, and upfront thanks for any assistanvce that can be provided.
TOOT! Garahbara model railway
Trust someone here can help with a simple solution to my problem. I haven't needed any support or assistancve with Picaxe for more than 10 years.
I use Picaxe processors to provide signal control on my model railway. Have done for years with no problems.
A LDR (Light Dependant Resistor) is placed between the rails and I detect a drop in the returned value to indicate a train has passed over it. No problems with incandecant train rtoom lighting. (Halogen floodlights).
I have replaced to room lighting with LED floodlights. Consequence is, that the signalling does not work anymore.
I've determined that the LED floodlights "strobe", and I've checked the spec of the LDRs and they have a response time of about 25 millseconds. So I believe my problem to be the LDRs are now returning eratic and widely varying values to the Picaxe processor when I "sample" the LDR value, causing havoc with the Picaxe logic.
Firstly, would I be right in my diganosis here?
Secondly, how can I "smooth" the current passing through the LDRs to get a stable reading of the ambient light, or shaded light emitted by the LED floodlights? Some sort of capacitor "in series" or across the LDR maybe???
I'm not about to pull apart an entrie signalling system to use Infrared detection instead. (15 sets of signals and Pixace processors, and programming)
These are the lights I am using (20 of them) from here
Looking forward to, and upfront thanks for any assistanvce that can be provided.
TOOT! Garahbara model railway
Attachments
-
75.9 KB Views: 16