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 11 years, 9 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

  • Can I make two inputs from one?? June 21, 2025
  • Beats Solo 4 June 21, 2025
  • Behlke swich June 21, 2025
  • Is AI making embedded software developers more productive? June 21, 2025
  • Simple LED Analog Clock Idea June 21, 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