#MKS SERVO42C v1.1.2 Encoder readout

1 messages · Page 1 of 1 (latest)

empty silo
#

Hello,
I have MKS SERVO42C for my stepper motors. The basic part is working fine.
Is there any way to read the hall sensor encoder's data into an Arduino for positioning?

ashen arch
#

you would need to check the schematic of how the encoder is wired?

#

but what I understand, the driver has its own firmware and microcontroller so it is up to that whether the position data is being sent out?

empty silo
#

It can communicate with UART to the board. I try to use an old CNC machine electronics (Ramps board on a MEGA) for a motorised throttle quadrant and it would be good if it can be converted.

ashen arch
#

seems it supports some type of serial output, not directly supported by MobiFlight I am afraid.

#

I guess the position sensing is used internally by the driver?

empty silo
#

Yes

#

It has its own display too

ashen arch
#

ramps would use those like regular stepper drivers I guess, not as servo?

#

I mean you can use the ramps with MF when you just set correct pins for steppers and the fets

#

but the encoder likely is not wired so that it can be just directly read

empty silo
#

This is for not to lose steps, so basically a pretty good feature with a good positioning

ashen arch
#

yea

#

you could use the throttle pots (or set up hall sensors for better accuracy) to read position

#

it's kinda silly when there are the encoders too

#

but it should still work

empty silo
#

Pots are pretty bad IMO since they can wear out. I'm thinking about normal hall sensors but since I have these boards with similar sensors I thought I can save it.

#

AS5600-M

#

For the hall sensors if thiss can't work

ashen arch
#

yeah it would be cool, but I fear if they are just wired for the stepper drivers

empty silo
#

But the best could be to get the data somehow from the UART comm for the sensors.

ashen arch
#

yeah, the firmware of the mks is open source

#

maybe check if there is some way to output position?

empty silo
#

Sadly I'm more like a HW guy than a software guy 😦