EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / ldr sensing

ldr sensing

|

Microcontroller › AVR › ldr sensing

  • This topic has 2 replies, 3 voices, and was last updated 11 years, 4 months ago by Ashutosh Bhatt.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 10, 2013 at 8:21 am #2584
    RICK MOHAN
    Participant

    i need help in sensing the resistance change of LDR (light dependant resistor) sensor using ATMEGA8 or ATMEGA16.

     

    i am not much familiar with the coding for Micro controller and hence need help in this regard.

     

    thank you

    August 13, 2013 at 4:48 am #10318
    Anonymous
    Guest

    Hi Rick,

    Connect one end of LDR to ground and the other end to positive through a resistor not less than 1K.

    Connect the common point of LDR and the resistor to one of the ADC pin of the ATMEGA.

    Here is an example of how to use the ADC of ATMEGA16.

    http://www.engineersgarage.com/embedded/avr-microcontroller-projects/adc-circuit

    February 4, 2014 at 6:03 pm #10937
    Ashutosh Bhatt
    Participant

    to read the LDR resistance value using AVR built in ADC please go through AVR ADC interfacing tutorial on this site

    also to display value on LCD or 7 segment refer LCD interfacing tutorial or 7 segment interfacing tutorial.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • PIC KIT 3 not able to program dsPIC June 23, 2025
  • Fun with AI and swordfish basic June 23, 2025
  • Is AI making embedded software developers more productive? June 23, 2025
  • Microinverters and storeage batteries? June 22, 2025
  • FFC connector white June 22, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise