Mod for 1127 light sensor
Posted: Wed May 30, 2018 7:25 am
I want to detect the presence of an object in a contained space (actually, a mailbox) h: 30cm x w: 30cm d: 38cm. I have tried various approaches (IR presence, IR distance, sonar distance) and all had issues. I.e. not enough clarity between a small object and no object.
However, it seems to me that all I really wanted was to detect light reflected off any surface. So, I then painted the inside of the mailbox flat black and then modified an 1127 light sensor to add an onboard white LED (3.2v with a 100 ohm resistor) in a tube, pointing down from the ceiling of the mailbox. This mostly works. The only problem is that there is still a very small difference between empty and non-empty. I.e. 0.030v = empty and >0.035v = something present. Unfortunately, the difference is so small that a threshold of two sometimes misses the transition from non-empty to empty and a threshold of one just thrashes the network with updates.
My guess is a brighter LED would provide more reflected light and, therefore, easier detection.
So, the question: On a 1018 interfaceKit (actually, an SBC3) how much current can I draw from the 5v supply on an analog sensor?
However, it seems to me that all I really wanted was to detect light reflected off any surface. So, I then painted the inside of the mailbox flat black and then modified an 1127 light sensor to add an onboard white LED (3.2v with a 100 ohm resistor) in a tube, pointing down from the ceiling of the mailbox. This mostly works. The only problem is that there is still a very small difference between empty and non-empty. I.e. 0.030v = empty and >0.035v = something present. Unfortunately, the difference is so small that a threshold of two sometimes misses the transition from non-empty to empty and a threshold of one just thrashes the network with updates.
My guess is a brighter LED would provide more reflected light and, therefore, easier detection.
So, the question: On a 1018 interfaceKit (actually, an SBC3) how much current can I draw from the 5v supply on an analog sensor?