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 this 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.
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 this 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.
What you are saying is absolutely correct, but when i am pre-defining some voltages in my code, it will keep comparing it with the LDR everytime. So don't you think that step it down everytime will be difficult. It should automatically lit the LED lamp with the difference voltage.
What you are saying is absolutely correct, but when i am pre-defining some voltages in my code, it will keep comparing it with the LDR everytime. So don't you think that step it down everytime will be difficult. It should automatically lit the LED lamp with the difference voltage.
This circuit looks quite simple to implement and a bit hard to believe that it is that easy to generate output of my circuit! I will try to implment this thing and get back to you of the outcome.
Also, the value of the resistor. should i choose a small value for it??
This circuit looks quite simple to implement and a bit hard to believe that it is that easy to generate output of my circuit! I will try to implment this thing and get back to you of the outcome.
Also, the value of the resistor. should i choose a small value for it??
I can give you these values only on monday, that is because my project supervisor has ordered the RS 232 and LED thing yesterday and which will be in by monday.
I can give you these values only on monday, that is because my project supervisor has ordered the RS 232 and LED thing yesterday and which will be in by monday.