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 13 years 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 feed: Recent Posts Recent Posts

  • How much does generator frequency stability matter for sensitive electrical equipment? September 16, 2026
  • dosen't work as planned September 16, 2026
  • Schematic help, odd symbol September 16, 2026
  • XC9235A33CMR-G Semi conductor September 15, 2026
  • Earth Ground Question September 14, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 Arrowfly 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 Arrowfly
Privacy Policy | Advertising

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