I've been trying different things with my AVR chip, trying things starting with timed LED lines to produce words, and trying 7 segment display counters.
All of those just require the AVR chip to output such and such.
I want to try something different and was told I could use a photocell. I want to use a photocell to measure Photoquantigraphic Quantity, q, aka measure of light. I understand the property of the photocell in which the resistance decreases when more light is shined on it. I want to do a project to display the q value on my 7 segment display taking inputs from the photocell.
So I start with my question:
1. How do I use inputs (specific pins) on my AVR to set the outputs as I have been just programming the MCU to just display what I want to display.
2. Can the AVR detect the amount of voltage being input into the MCU?
I understand I can code a voltage division characteristics onto the MCU based on the resistors and have a voltage go to the MCU input and based on that input display the q value on the 7 segment.
I'm kind of blabbering about my logic and help/direction is appreciated.
THANKS :) FUN TO COME