hall sensor data

Comments & issues
Post Reply
anaveed
Fresh meat
Posts: 1
Joined: Mon Mar 27, 2023 7:55 am
Contact:

hall sensor data

Post by anaveed »

In our application, we need to fetch encoder data for odometry. In API of DCC1100, I didnt find anywhere about getting encoder data. Could you please tell me if I am missing something or is there a way to get the encoder data?
User avatar
mparadis
Site Admin
Posts: 959
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: hall sensor data

Post by mparadis »

The controller keeps track of hall effect sensor data in the form of the "Position" property.
anaveed
Fresh meat
Posts: 1
Joined: Mon Mar 27, 2023 7:55 am
Contact:

Re: hall sensor data

Post by anaveed »

Thanks for your prompt feedback. Let me extend my question further,

if I am using DCM4105_1 BLDC motor that has 8 poles and 3 phases that means it has 24 commutations per rotation or 24 pulses from encoder on one complete revolution. Since the motor has 106:1 gear ratio, does that mean it will take 24 *106 commutation per rotation of output shaft? what actually getPosition() API of motor driver DCC1100 offers? Does it tell the position of output shaft?
Last edited by anaveed on Tue Mar 28, 2023 3:03 am, edited 2 times in total.
User avatar
mparadis
Site Admin
Posts: 959
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: hall sensor data

Post by mparadis »

Yes, your math is correct, it will take roughly 24*106 hall effect "position" units for one rotation with this motor. Keep in mind that the gear ratio is actually 105⅝ : 1, so if you use 106 as your gear ratio, the position will be inaccurate when calculating many rotations.

The "Position" from the API resets every time the BLDC channel is opened or closed, so it cannot tell you the absolute position of the motor unless you start at a known position every time. If absolute positioning is important, you may need to add an encoder with an index channel, or some kind of limit switch into your system. We plan on selling encoders that will fit on the rear shaft of these motors soon, since the hall effect sensors don't have an index and aren't precise enough for some positioning applications.
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests