Spinning wheel, dot detection

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
splatten
 
Posts: 439
Joined: Mon Mar 17, 2014 3:08 pm

Spinning wheel, dot detection

Post by splatten »

I have a large perspex wheel that is connected to a motor, as this wheel turns a single dot on the wheel needs to be detected to count the number of rotations.

The speed (RPM) of the motor will then be worked out by counting the dots detected per minute. Can anyone help on how to sense / read the dots?

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: Spinning wheel, dot detection

Post by adafruit_support_bill »

See this guide for some examples: https://learn.adafruit.com/pro-trinket-tachometer

User avatar
splatten
 
Posts: 439
Joined: Mon Mar 17, 2014 3:08 pm

Re: Spinning wheel, dot detection

Post by splatten »

Thank you @adafruit_support_bill

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: Spinning wheel, dot detection

Post by adafruit_support_bill »

For a perspex wheel, a slot-type detector might be a better choice than the reflective sensor: https://www.adafruit.com/product/3986

In the code, you would change the interrupt mode from FALLING to RISING in the call to attachInterrupt().

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”