Project 9 – Analog Sensor: Light detection using LDR

A photoresistor or light dependent resistor (LDR) is a resistance decreases with increasing incident light intensity. It can also be referred to as a photoconductor. In here, we going to do a simple connection of LDR and display the ADC and Voltage value on LCD.

5 thoughts on “Project 9 – Analog Sensor: Light detection using LDR”

  1. hello
    the code has been compiled successfully , but the voltage is not changing . its fixed .

  2. hari25,
    Try use GO_DONE instead of GODONE.
    The causes is from different version of Hi Tech C Compiler.
    If you still experience the same problem pls discuss in our technical forum.

  3. for me it showing this error when i tried compiling. plz advice me

    Build C:\Users\HK\Desktop\Project_9\Project_9 for device 16F887
    Using driver C:\Program Files\HI-TECH Software\PICC\9.83\bin\picc.exe

    Make: The target “C:\Users\HK\Desktop\Project_9\adc.p1” is out of date.
    Executing: “C:\Program Files\HI-TECH Software\PICC\9.83\bin\picc.exe” –pass1 C:\Users\HK\Desktop\Project_9\adc.c -q –chip=16F887 -P –runtime=default –opt=default -D__DEBUG=1 -g –asmlist “–errformat=Error [%n] %f; %l.%c %s” “–msgformat=Advisory[%n] %s” “–warnformat=Warning [%n] %f; %l.%c %s”

    Error [192] C:\Users\HK\Desktop\Project_9\adc.c; 117.1 undefined identifier “GODONE”

    Make: The target “C:\Users\HK\Desktop\Project_9\lcd.p1” is up to date.
    Make: The target “C:\Users\HK\Desktop\Project_9\Project_9.p1” is up to date.

    ********** Build failed! **********

  4. Hi, tonynwk88

    Would you mind to share more details of this LDR project with me? Is there a ‘project kit’ available for sale?

Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorail

ESP32 PD Line Following Robot with Maker Line
Raspberry Pi Line Following Robot with Maker Line
Magnetic Contact Switch Sensor with Arduino.
Control MDDS30 In Serial Simplified Mode Using Raspberry Pi
Control A Servo And Display Sensor’s Reading Using The GUI On Arduino.
Scroll to Top