LDR sensor
wafa86
Posts: 44
Hi every body
I need your help in LDR sensor, I want to write a code on LDR and I need to read the value of lightness that the LDR sense and send it vai bluetooth, the problem is when I make serin to the LDR it take a value and cannot be uderstood, so it transmited vai bluetooth in rabish value. how can I use the basic stamp to convert the value of LDR into ASCII code and transmitted vai bluetooth?????
thank u
I need your help in LDR sensor, I want to write a code on LDR and I need to read the value of lightness that the LDR sense and send it vai bluetooth, the problem is when I make serin to the LDR it take a value and cannot be uderstood, so it transmited vai bluetooth in rabish value. how can I use the basic stamp to convert the value of LDR into ASCII code and transmitted vai bluetooth?????
thank u
Comments
Post Edit -- There is more information on LDR'ing in "Stampworks", too.
- the amount reflected back to the LDR will also depend on the particulars of the object (meaning you can't accurately determine distance for an arbitrary object)
- background noise... there are some simple ways to get around this that I can tell you if you want.
If you are serious about measuring distance I would suggest ultrasound. It is also possible to do this with light but short distances are very difficult due to the high speed of light.
Where did this distance issue come in here?