Archer
Honorary Master
It's never too late, Archer.
Let me know of a place (in CT) and I'm there like butter on toast!
South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
It's never too late, Archer.
Don't forget PCB origination costs, whichever technology you use.
Sigh, I really wish I had gone into electronic design after varsity, this is exactly the kind of stuff I want to be doing, and exactly what I studied
One thing to add, no need for analogue data - calibration can be done via a potentiometer. And generally LDRs can vary their resistance quite a bit, so if you only looking for light/dark, calibration should not ever be required.
Awesome info guys, had to google several terms, out of touch with this side of the tech world.
Shout/PM if there is anything I can help with. I'm not actively doing embedded software development right now, except on a hobby basis, but still have the resources and such available. I'd be happy to do some coding for you and I know a retired engineer that could whip up a prototype in a day for you, pending availability of parts of course. Anyway, as I said, it's not something I do as a job anymore but I'd be happy to give advice.
I've read all the comments and I'm wondering, what is the cheapest and easiest way to read a LDR via USB?
Can I get the Teensy locally?
Let me know of a place (in CT) and I'm there like butter on toast!![]()
Not setting foot in the electronic design industry in SA. Overseas, would love to, but not SA. Too many of these kind of people in it :/
Isn't there a much simpler way to do this? Connect the LDR to a 555 in such a way that the frequency changes depending on the resistance.
Arduino should have lots of sample code you can use, and for a microprocessor n00b, it would probably be the easiest solution.
Going this route would be ridiculously simple. It would require a fair amount of calibration, however, unless you go for some pretty good quality parts. Connecting it to a USB/RS232 adapter and listening to one of the pins may be the way to go. Hell, if you remove the cover on the serial adapter, you can even make it nice and compact in a little enclosure and also power it off of the USB port.
Isn't there a much simpler way to do this? Connect the LDR to a 555 in such a way that the frequency changes depending on the resistance. Maybe it would then be possible to use this signal to repeatedly trigger the USB port and calculate the frequency/resistance. I don't know much about programming a USB port but this would be simple using a parallel port. You can also buy USB to parallel port adapters for ~R60 which you might be able to use if this is not possible using the USB port directly.
What about using a cheap $5 USB sound card? There is lots of soundcard/oscilloscope software available.
http://www.dealextreme.com/p/usb-3d-sound-adapter-color-assorted-5831
http://www.zelscope.com/
http://www.zeitnitz.de/Christian/scope_en
Yes the USB to RS232 adapters are even cheaper than the USB to parallel and might be simpler to program. There seems to be an even simpler solution though - a cheap USB webcam. If you use something like this then you don't need to develop any hardware only software and it should be much more flexible/accurate than just one LDR. The Chinese sell these for < $5.
$3 USB to RS232 converter
http://www.dealextreme.com/p/usb-to-rs232-adapter-with-usb-extension-cable-41cm-length-24799
Sub $5 webcam
http://www.dealextreme.com/p/usb-pc-webcam-300k-pixel-with-6-led-13