Pages: [1]   Go Down
Author Topic: Using optical mouse sensor to measure velocity  (Read 4318 times)
0 Members and 1 Guest are viewing this topic.
Carbondale Illinois
Offline Offline
Full Member
***
Karma: 1
Posts: 104
Making digital rivers.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

We've built an Arduino-powered device that feeds plastic "sand" into river models (www.emriver.com) for research and teaching.  It uses a stepper motor and cone valve.

This video shows the business end:  http://youtu.be/KMMfNxQmqh4

If we can measure the velocity of the particles through the tube, and we know its cross section (it's 0.75 inch diam) we can know the feed rate.

Seems an optical mouse sensor would be perfect.  I see Sparkfun had a breakout for one (http://www.sparkfun.com/products/10105), but discontinued it.

And hacking a USB mouse is complicated.  Any ideas?

Logged

Atlanta, GA
Offline Offline
Jr. Member
**
Karma: 0
Posts: 86
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

put a vane(??) in the tube - based on length of vane seen in sensor = v
you would have to test different v's to get length...

never-mind - I reread your post - sand not water - sorry!
« Last Edit: April 26, 2012, 09:13:49 pm by pantonvich » Logged

Dubuque, Iowa, USA
Offline Offline
Faraday Member
**
Karma: 47
Posts: 2517
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sensor: http://www.alpha-crucis.com/en/drone-accessories/2911-optical-flow-sensor-3700386988530.html
Code: http://code.google.com/p/arducopter/wiki/AC2_OptFlow

I see that DigiKey sells the chip only for under $4.

Not the easiest stuff to start from but a little better than starting from a random USB mouse.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27114
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hack an old RS232 mouse instead? Can likely find one at computer old/surplus store.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 47
Posts: 2892
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It would be interesting to calibrate. Using an Optical mouse would/should be easy just get to the optical sensor... they use standard grey code... It would be interesting albeit somewhat dangerous to provide charge and monitoring for Cell Phone batteries, they hold an enormous amount of power VS weight, the batteries ARE Dangerous if mishandled... Only thing that was close were the old Pola-pulse batteries from the OLD Polaroid cameras about 10 CM  X  12 CM  X .4 CM and good for a couple hundred MA for short pulses, camera feed motor and flash. as to the optical mouse there was some information about serial meeces a seial stream thet gave information about the X Y movements and the computer parsed the data for clicks and number of steps X and Y, button status and placed the cursor... The Apple mice were even easier as they were really dedicated serial 4 wires not those usb/ps2 things

Doc
Logged

--> WA7EMS <--
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Offline Offline
Full Member
***
Karma: 2
Posts: 206
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This thread seemed a little "old" but parallax has a sensor that might fit the OP's needs and seems easy to interface to although as per their usual custom it's a little pricey.

http://www.parallax.com/StoreSearchResults/tabid/768/List/0/SortField/4/ProductID/677/Default.aspx?txtSearch=mouse+sensor
Logged

Carbondale Illinois
Offline Offline
Full Member
***
Karma: 1
Posts: 104
Making digital rivers.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks all!  We're still working on this and are excited about using these sensors to develop open-source science teaching tools.  The Parallax sensor would do the job, and I found this interesting site with Arduino-based mouse hacks and even some OSX visualization tools:  http://hackteria.org/wiki/index.php/Hacked_Optical_Mouse

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I found this:
http://hackteria.org/wiki/index.php/Hacked_Optical_Mouse
It seems like you could easily modify it to fit your needs.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27114
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@mailmindlin,
Welcome to the forum.
Check the dates when you post - this topic hasn't been active in 2+ years.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: