Continued working on GUI for using photo-gates for various experiments. Writing python code for this single GUI with which user can access different experiments involving time measurements.
The program is giving time-out errors while using two photo-gates simultaneously. Need to debug all the errors by tomorrow so that this GUI will be ready.
…. About Light Barrier as Photo sensor ( Source expeyes.in)
A photo-transistor plus LED combination can be used for measuring light transmission and for sensing the timing of mechanical movements. The LED is powered by SQR1. The collector of the photo-transistor is connected to SEN, which is connected to 5 volts through a 5.1k resistor. The voltage at the collector of the photo transistor changes according to the amount of light falling on it. The built-in analog comparator on SEN input is used for timing measurements when the light crosses a certain threshold.