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?
Spinning wheel, dot detection
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88088
- Joined: Sat Feb 07, 2009 10:11 am
Re: Spinning wheel, dot detection
See this guide for some examples: https://learn.adafruit.com/pro-trinket-tachometer
- splatten
- Posts: 439
- Joined: Mon Mar 17, 2014 3:08 pm
Re: Spinning wheel, dot detection
Thank you @adafruit_support_bill
- adafruit_support_bill
- Posts: 88088
- Joined: Sat Feb 07, 2009 10:11 am
Re: Spinning wheel, dot detection
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().
In the code, you would change the interrupt mode from FALLING to RISING in the call to attachInterrupt().
Please be positive and constructive with your questions and comments.