Tag Archives: photocell

ATTiny Photocell/PWM demo

I wrote a little program and made a circuit for the ATTiny which enables a photocell to control an LED and a motor with pulse width modulation. Here’s the video: – And here’s the circuit diagram: And here’s the code … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Arduino and Photocell

This is an experiment out of the Getting Started with Arduino book. As you can see, an analog port is connected to a circuit with a photocell (Radio Shack part 276-1657) and resistor (220 ohm). I used a flashlight to … Continue reading

Posted in Uncategorized | Tagged , , , , , | 1 Comment