Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

PIC16F88 - LED + light sensor

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,397
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 12, 2008

If the ambient light is bright, then the LED is almost shut off, if the ambient light is darker, then the LED becomes brighter.
Simple fotorezistor + ADC + PWM.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:
see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • What is your e-mail? I will send you sources, but have in mind they are written for SDCC (Small Device C Compiler) which syntax is kinda different from the most popular PIC C compilers.

  • Oh, so that's why. :D Keep up the study, so will I. Haven't got the the PWM yet :(. Can you send me the code or any code you working write for PIC. I want to see how other people structured their code, whether in assembly or c++ and how to define, call subroutine, label etc... Thanks

  • Oh, yes, ofcourse :)

    We are using a photoresistor (which is a LDR as you described it). You can set up a LED voltage in that way - LDR in series to the LED, but our idea is using PWM to control the brightness :) Just practicing some of the PIC's features like ADC and PWM.

  • LDR is Light Dependent Resistor, no light = high resistance, with light low resistor. Depending on the position of the LDR baising, you can make LED turn brighter when it is darker, or vice versa.

  • What is LDR sensor and what is your general idea?

  • can it be done with just a LDR sensor, a NPN, a few current limiting resistoor, and a LED, no?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more