Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 24th February 2004, 04:18 AM   (permalink)
Default some kind of optical sensor

I’m working on an automatic lawn irrigation system for my house. Anyway, I need some kind of optical sensor that will connect to my PC through the USB port. The purpose of this device would be to count revolutions of a wheel connected to the pump. The wheel is black and I will paint a small white spot on it for the sensor to work.

Sounds easy, but need a recommendation on a good and cheap optical sensor that will do the job. Also, how exactly to connect the sensor to the USB port and how to write the driver for this device? I have the skills (electronics, programming) but I would really appreciate any pointers to the specific information: optical sensors, connecting them to USB, and writing simple software for this kind of device.

Thank you,
Lance.
ee838l is offline   Reply With Quote
Old 24th February 2004, 04:41 AM   (permalink)
Default

If you go to digikey.com and just hit go on the search without entering any text it'll give you a list of everyting they have. Under the sensors and transducers section they have opto interrupters. You should be able to find one that fits your needs.

As for the USB. I'd recommend a serial to USB converter. Either as an IC or as a dongle. These devices are super easy to use. They look like RS232 to the device and you can program for them like the serial port. If you want a true USB device look for a microcontroller with built in USB. I'd recommend Silicon Labs' (Silabs.com) usb microcontroller. They have great development kits. They also have good examples that should let you get up and running quickly.

In both of the above cases you need a microcontroller to read your sensor and then send the data to the computer.

Brent
bmcculla is offline   Reply With Quote
Old 25th February 2004, 05:19 PM   (permalink)
Default

An old mouse should provide a suitable opto sensor and slotted disc :idea:
tansis is offline   Reply With Quote
Old 26th February 2004, 06:32 AM   (permalink)
Default Re:

Thanks for the great suggestions!

I think it will be easy to take apart a USB joystick and connect some kind of “shorting” device parallel to the switches. The joystick driver will take care of the rest :D

Do you think it’s a good idea? What type of device would you recommend to short the switches? solid-state relay, reed relay, etc.

Thanks!

PS. Tansies, you recommend using an opto interrupter from an old mouse. How can I find out the specs of that device (polarity, pin-out), or are they all basically the same?
ee838l is offline   Reply With Quote
Old 26th February 2004, 06:54 PM   (permalink)
Default

With a bit of luck you should find a makers mark and a product code on the device
tansis is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 09:04 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.