Hello iam trying to make a solar tracker based on avr microcontroller (Atmega8).
It will be using 2 LDR's to compare light intensity and then send decision to motor driver L293d. I am kinda new to avr's... I know how to run one ADC from for example Potentiometer. I know i cant make two adc reads at one time. How should i read two ADC inputs, "save" them and then compare those two values.
I would be grateful for any advices.
It will be using 2 LDR's to compare light intensity and then send decision to motor driver L293d. I am kinda new to avr's... I know how to run one ADC from for example Potentiometer. I know i cant make two adc reads at one time. How should i read two ADC inputs, "save" them and then compare those two values.
I would be grateful for any advices.