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 / how to interface ldr with pic18f

how to interface ldr with pic18f

|

Microcontroller › PIC › how to interface ldr with pic18f

  • This topic has 2 replies, 3 voices, and was last updated 12 years, 4 months ago by Luis Morquecho.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 8, 2013 at 2:03 pm #2526
    jatin
    Participant

    can anyone help me with sufficient examples to interface a ldr with pic18f

    July 10, 2013 at 4:40 am #10120
    AJISH ALFRED
    Participant

    Hi,

    Select any ADC pin, do the required configurations. Connect the LDR and read the value from the ADC register.

    September 4, 2013 at 3:35 pm #10421
    Luis Morquecho
    Participant

    LDR is a Light Dependent Resistor, so its value of Resistance change with the light that the LDR receive.

    The more light the less resistance.

    You must get a network of resistances for example in serial to convert the variation of resistance in a variation of voltage.

     

    +VCC

         |

         |

    Resistance (1K)

         |

         |


    > Analogic input (PIC)

         |

     LDR

         |

         |

    GROUND

     

    As AJISH ALFRED have said before connect it at an Analog Input of the PIC and read the analogic value

  • 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

  • getting no where fast 8 x 8 led matrix January 23, 2026
  • Expensive hobby January 23, 2026
  • analog logic of shmidt trigger bjt circuit January 22, 2026
  • Micro mouse January 22, 2026
  • Best practices for accurate LiPo battery monitoring on ESP32? January 22, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 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