I need the same square wave but one that is between 0-3.3v.Do you need to preserve the amplitude information, or do you only need the phase information?
While at it, is there anything else we should know?
My apologies but I think I was quite clear in the title desc as well as the main text. Thanks for the assist though. Your designs did help.hi ep,
If you had posted the datasheet yesterday, as requested, we could have seen you did not need a pulse level sensing circuit, but just a simple On/Off > High/Low comparator, it would have saved us time and effort.
E
I bought a few more A1221 hall sensors and tried out your design. It works however I had to tweak down the RC values by a lot. R is 150k and C is 2.2uf. Also I misinterpreted the frequency. The no load RPM is 27rpm. This gives a frequency of 0.45Hz. The time between two pulses would be 1.1s now. Assuming a factor of 100, values of R = 2.2M and C = 10uf should have worked. However with these values it takes a few rotations of the motor before the square wave output on the opamp output shows. The values that seem to be working have an RC value of 0.33. I’m trying to understand why this is working.I can do better still. Connect all the inverting inputs of the LM339 together, with 24k to 8V and 56k to 0V. That biases it at 5.6V midway between the maximum low voltage and the minimum high voltage.
Connect the sensors to the non-inverting inputs. Now down to 4 components for 8 inputs.
That’s the thing. The output pin of the sensor is not brought out (weirdly) by the motor. If that was the case then it would be very easy.Do you use Allegro's A1221? So the application from your first post is a little strange. Probably the original device has some particular requirements. Can you modify it as below? It would work with no extra components.
View attachment 225087
My previous schematic should also operate with the circuit from your appnote (or needs to increase Zener voltage to 5.1V)
Correct!hi A,
The TS does not want pulse level sensing, just conversion from +4V to 0v and +7.5V to +3.3v.
As per my earlier post.
E
hi ep,
If you had posted the datasheet yesterday, as requested, we could have seen you did not need a pulse level sensing circuit, but just a simple On/Off > High/Low comparator, it would have saved us time and effort.
E
Yes, I’ll be using it to detect position.What are you trying to do with the sensor values ?
are you doing anything with the amplitude information ?
From what I can see of the data sheet on the phone, it looks like a speed / presence sensor.
hence my question about are you interested in the amplitude ?
Since I have only one supply onboard, which is 12V, I was thinking of deriving the 8V and 5.6V using precision resistor dividers. However, this might be a better solution.Have you already solved your problem?
Choose which one schematic suits you better. You can use as many LM339 as you need.
View attachment 225203
No. I think these are inside the motor and as the N and S poles come near it, it latches to either low (~5.2V) or high (~7V). The hall effect sensors used are the latching kind. The idea was to convert this voltage level to something that can be interfaced directly with an MCU. This would have been really simple if the hall sensors output pin was broken out but it is not.so as the object gets near / far, is it the amplitude that changes ?
8V is your power supply for the sensors, it has to supply 12mA per sensor - a resistive divider won't cope with the change in current. I'd suggest a LP2951, which is about the most accurate voltage regulator available.Since I have only one supply onboard, which is 12V, I was thinking of deriving the 8V and 5.6V using precision resistor dividers. However, this might be a better solution.