URGENT!! -- Automatic Light Sensor project

Discussion in 'General Electronics Chat' started by loveek9, May 9, 2009.

  1. loveek9

    Thread Starter New Member

    May 9, 2009
    1
    0
    Hi

    I am building a light sensor project which i have designed. I am measuring ambient light using LDR and passing it to my computer using Parallel port. then i am defining some preset voltages in the CPU, which i will compare with the LDR output. The difference of pre-defined voltage and LDR output is what i want to give to the LED Lamp through serial port. But i am not getting the right way to do it.

    Can anyone give me the idea to of how to connect the serial port to the LED lamp???

    I am doing C programming in linux for this project.

    Help as soon as possible will be appreciated!!!

    Thanks,
    Loveek9
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    A schematic of your LDR circuit would be very useful.

    A more complete explanation of
    would also be useful.
     
  3. thingmaker3

    Retired Moderator

    May 16, 2005
    5,072
    6
    Is it the code you are having trouble with, or the interface?
     
Loading...