Skip to main content
added 154 characters in body
Source Link
Oli Glaser
  • 55.5k
  • 3
  • 77
  • 148

If you want to read a range of values from your light sensor (as opposed to on/off) then you will need more than just the sensor itself.
As Kenny says, a $1 uC can achieve this quite easily. The code could be written in minutes.
Serial port (or USB/serial cable) would be easier than USB, though obviously not as "up to date". If it's not a commercial project then this may not be an issue.
Even with USB there are plenty of sample projects for PICs/Atmel/etc that could be adapted quickly.

If you just want an on/off (i.e. light/no light) sensor, then you could probably use one of the serial control lines (DSR or CTS maybe - see 9-pin serial pinout) to interface directly. You could use one of the output control lines (RTS, DTR) to power the sensor and a transistor with resistor/LDR divider to switch the input control line.

If you want to read a range of values from your light sensor (as opposed to on/off) then you will need more than just the sensor itself.
As Kenny says, a $1 uC can achieve this quite easily. The code could be written in minutes.
Serial port (or USB/serial cable) would be easier than USB, though obviously not as "up to date". If it's not a commercial project then this may not be an issue.
Even with USB there are plenty of sample projects for PICs/Atmel/etc that could be adapted quickly.

If you just want an on/off (i.e. light/no light) sensor, then you could probably use one of the serial control lines (DSR or CTS maybe - see 9-pin serial pinout) to interface directly.

If you want to read a range of values from your light sensor (as opposed to on/off) then you will need more than just the sensor itself.
As Kenny says, a $1 uC can achieve this quite easily. The code could be written in minutes.
Serial port (or USB/serial cable) would be easier than USB, though obviously not as "up to date". If it's not a commercial project then this may not be an issue.
Even with USB there are plenty of sample projects for PICs/Atmel/etc that could be adapted quickly.

If you just want an on/off (i.e. light/no light) sensor, then you could probably use one of the serial control lines (DSR or CTS maybe - see 9-pin serial pinout) to interface directly. You could use one of the output control lines (RTS, DTR) to power the sensor and a transistor with resistor/LDR divider to switch the input control line.

Source Link
Oli Glaser
  • 55.5k
  • 3
  • 77
  • 148

If you want to read a range of values from your light sensor (as opposed to on/off) then you will need more than just the sensor itself.
As Kenny says, a $1 uC can achieve this quite easily. The code could be written in minutes.
Serial port (or USB/serial cable) would be easier than USB, though obviously not as "up to date". If it's not a commercial project then this may not be an issue.
Even with USB there are plenty of sample projects for PICs/Atmel/etc that could be adapted quickly.

If you just want an on/off (i.e. light/no light) sensor, then you could probably use one of the serial control lines (DSR or CTS maybe - see 9-pin serial pinout) to interface directly.