NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Sensors, Actuators, and Robotics » Input help

July 22, 2012
by Luke9978
Luke9978's Avatar

How do i set up a input port to listen for a signal from a light sensor?

July 23, 2012
by Rick_S
Rick_S's Avatar

It depends on the light sensor.

A simple Cadmium Sulfide cell: (Photo from wikipedia)


is connected easily to one of the ADC inputs and can be read with the temperature sensor program by connecting one side to gound, the other side to pin 23 then connect a 1k resistor from pin23 to 5v. This will setup a voltage divider and as the cell gets more/less light, you will see the numbers change.

Other light sensors can get much more complicated to program and possibly connect.


Post a Reply

Please log in to post a reply.

Did you know that first-order systems have a exponentially decaying response to step inputs? Learn more...