- This topic has 2 replies, 3 voices, and was last updated 8 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › LCD print
how to ir sensor use as input in atmega8. an that input use as a switch to print the text on lcd 16X2.
Hey Ajay,
IR sensor have three terminal: VCC, GND and Output. Vcc connect with power supply as per your sensor specification and GND connect with common of system and output terminal connect with input pin of atmega8. In software side you need to configure I/O register for define pin as Input.
You can use IR sensor as switch cause of both are digital. when switch pressed, print text on LCD same when IR sensor is interrupted means it will be high or low level and print text on LCD.
what u want to do actually?