- This topic has 1 reply, 2 voices, and was last updated 6 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › interface sensers with ATMEGA32 by kamaljamesbond
i want to interface sensers ( LDR ) how i will interface it with ATMEGA32 also send me the code. & circuit diagram
Hi there
You will need to use an ADC present inside AtMega 32. Circuit for LDR sensor is quite simple; make a two-resistor voltage divider circuit with one of its resistor being LDR and take their point of joining to be the alanog input for ADC pin.
Here is a similar project on EG, check this out:
"engineersgarage.com/microcontroller/8051projects/interface-LDR-ADC0808-interrupt-clock-AT89C51-circuit"
Good luck