Shaft rotation count solution needed

Thread Starter

bdrmachine

Joined Jan 26, 2010
23
I'm looking for input on options to measure the number of rotations of a shaft using a esp32. The speed is less than 500 rpm. The direction of rotation is already known. I really only need 4 pulses per rotation. No matter which way I go I will need to machine the disk that has magnets, holes / slots or teeth to count. I'm leaning toward a A3144 hall effect sensor. The question I have with that option is the minimum voltage is 4.5v. Can this be used with the pull-up resister tied to 3.3V while the sensor is powered by 5v? The only critical consideration is that it needs to operate outdoors with a possible temperature swing of -35f to +130f.
 

Jerry-Hat-Trick

Joined Aug 31, 2022
579
I believe if you power it with 5V the output, with a pull-up resistor to pull the output high, the output will go low if it detects a magnet. If the high output is then reduced to 3.3V using a potential divider then I think it will be compatible with the processor

Rather than 4 magnets could you use a single magnet with a piece of soft iron completing the magnet circuit between two adjacent teeth of your 4 teeth wheel which will raise the magnetic field only when those two teeth are lined up with the ends of the soft iron?
 

MisterBill2

Joined Jan 23, 2018
18,975
I believe if you power it with 5V the output, with a pull-up resistor to pull the output high, the output will go low if it detects a magnet. If the high output is then reduced to 3.3V using a potential divider then I think it will be compatible with the processor

Rather than 4 magnets could you use a single magnet with a piece of soft iron completing the magnet circuit between two adjacent teeth of your 4 teeth wheel which will raise the magnetic field only when those two teeth are lined up with the ends of the soft iron?
If that pickup uses a coil and a magnet that would be a Variable Reluctance pickup which is available from quite a few sources and has the big advantage of not needing any electrical power. That makes it simpler to use.
 

Thread Starter

bdrmachine

Joined Jan 26, 2010
23
If that pickup uses a coil and a magnet that would be a Variable Reluctance pickup which is available from quite a few sources and has the big advantage of not needing any electrical power. That makes it simpler to use.
That definitely gives me some more ideas. Thanks, can you point out any of those sources?
 

WBahn

Joined Mar 31, 2012
30,243
Depending on the environment, a simple solution might be a piece of reflective tape on the shaft and an optical sensor. Is there a place on the shaft where the tape can be mounted that will remain clean?
 
Top