danners430
Member
Afternoon folks,
I'm looking to use LDRs to detect the presence of trains on a model railway - the LDRs would be mounted between the rails, reacting to the shadows cast by the trains as they roll over.
As the layout being built is going to be travelling to various exhibitions, likely with varying lighting conditions, I was thinking of using an extra LDR mounted away from any rails to measure the ambient lighting conditions, which would then "calibrate" the other LDRs to react correctly.
In my mind, this seems like a reasonably straightforward thing to do... but then I sit down in front of PE6 and try to type it out! Does anyone have any ideas on how this could be achieved?
Cheers!
I'm looking to use LDRs to detect the presence of trains on a model railway - the LDRs would be mounted between the rails, reacting to the shadows cast by the trains as they roll over.
As the layout being built is going to be travelling to various exhibitions, likely with varying lighting conditions, I was thinking of using an extra LDR mounted away from any rails to measure the ambient lighting conditions, which would then "calibrate" the other LDRs to react correctly.
In my mind, this seems like a reasonably straightforward thing to do... but then I sit down in front of PE6 and try to type it out! Does anyone have any ideas on how this could be achieved?
Cheers!