Using linuxCNC and stm32 to control servo motors

More
06 Nov 2023 13:19 #284697 by 1192342018
Since I am in China, I do not have a way to purchase a Mesa control board. Our mainstream control method is to use a system board with a core of stm32, as shown in the figure. At present, there is no suitable universal firmware available, but Bigtreetech has a motherboard with Stm32 as the core, which has a suitable firmware called remora. However, this firmware can only achieve control of stepper motors by LinuxCNC and Stm32. I would like to ask if there are any good suggestions. This is my first time using LinuxCNC to control servo motors, and the main control method is position control. Currently, I am not sure how to choose hardware or process encoder signals.
I hope all professionals can provide guidance. Thank you
Attachments:

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
06 Nov 2023 13:37 #284699 by tommylight
Replied by tommylight on topic Using linuxCNC and stm32 to control servo motors
@ user 1192342018
No double posting and no topic hijacking, please.
The other post deleted as it had nothing to do with Yaskawa servos.
-
There are several projects that use LinuxCNC and several types of micro controllers and FPGA, so you can use google to search for those like this
linuxcnc stm32 site:linuxcnc.org
New servo drives can happily run in position mode and LinuxCNC can happily control those without feedback from the encoders, and they also have a fault pin so it can be used by LinuxCNC to stop the machine if something goes wrong.

Please Log in or Create an account to join the conversation.

  • cornholio
  • cornholio's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
07 Nov 2023 00:34 #284740 by cornholio
Replied by cornholio on topic Using linuxCNC and stm32 to control servo motors
I've been working on a project that merges Mesa firmware with generic FPGA boards sourced from Aliexpress. The link I'm going to give shows a half completed prototype, I'm currently waiting on the PCB to replace the proto board on the left. The major mod to the FPGA board is to replace the flash EEPROM with a larger capacity model. So far the interface is to a RPi via SPI.

forum.linuxcnc.org/show-your-stuff/50461-diy-7i90-ish

I also have a SODIMM fpga module that can be had for about $20 AUD + postage form Aliexpress that I have just finished working out edge connector to FPGA pin locations.

I'm hoping to be use this with 7i90 firmware via SPI and with 7i90 ssremote firmware.

Ethernet would require a bit of time to work on as I'm trying to stay within the bounds of the hostmot2 infrastructure.

That being said Mesa product are the most cost effective solution. This is just a project to keep my mind going until I can find employment.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum