You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unless I'm missing something, the getRawCount() method should be made public, otherwise it is not possible, in client code, to measure the _min and _max values required by MagneticSensorPWM(_pinPWM, _min, _max).
Issue 2
Line 88 of MagneticSensorPWM.cpp reads as follow:
pulse_length_us = pulseIn(pinPWM, HIGH, 1200); // 1200us timeout, should this be configurable?
Yes, I confirm the 1200us timeout should be configurable: in my case, I needed 1400us to get my AS4850A to work.
The text was updated successfully, but these errors were encountered:
We'll try to make these changes for an upcoming release, but really we encourage users to use other sensor types than PWM... the slow update time will limit your performance.
Thanks @runger1101001 . I will switch to SPI as soon as possible, but the possibility to first test the hardware with PWM is very useful. Indeed, some magnetic encoders come with only the PWM output ready to plug. For example, in my current case (miniature combo BLDC+AS5048A), wiring the SPI output will require: 1. to cut the aluminium casing to make room for wires, and 2. to solder wires on very small copper tracks.
runger1101001
pushed a commit
to runger1101001/Arduino-FOC
that referenced
this issue
Dec 2, 2023
Uh oh!
There was an error while loading. Please reload this page.
Issue 1
Unless I'm missing something, the
getRawCount()
method should be made public, otherwise it is not possible, in client code, to measure the_min
and_max
values required byMagneticSensorPWM(_pinPWM, _min, _max)
.Issue 2
Line 88 of MagneticSensorPWM.cpp reads as follow:
Yes, I confirm the 1200us timeout should be configurable: in my case, I needed 1400us to get my AS4850A to work.
The text was updated successfully, but these errors were encountered: