On 7/23/20 2:15 PM, Chris Albertson wrote:
What is really needed is for someone to write firmware for the common
STM32F103 "Blue Pill".  These have the hardware to do things like step gen
and quadrature decode  at MHz speeds and talk to the PC over SPI I2C or USB
and cost under $3 from 100 different vendors.   I use these for motion
control when I can but not with Linux CNC.     It is really "just a matter
of software" but I'm not about to spend months of my time to save the cost
of a 7i92.

May I suggest the shoulders of KevinOConner to stand on.

                                                  Check out               https://www.klipper3d.org/

He has set up a 3D printer program that uses python on the Raspberry PI for the G-Code interpreter.  He used OctoPrint to feed the USB serial port, but the arduino doesn't have to interpret G-Code, so with an arduino he can max out at 102,000 steps per second, with the STM32F104 in the Blue Pill Board he can max out at 360,000 steps per second, both with 3 steppers stepping.

                    https://www.klipper3d.org/Protocol.html

                    https://www.klipper3d.org/Features.html

  The benchmark is a little cryptic to me, but I think it says the blue pill board can step three steppers at less than 10uS per step max (for a $3 board).  If I read this properly, you can sink up 2 blue pill boards and control 6 to 8 steppers.  Yes there are limit switches connected.  It also handles the slow speed PID control of  a heated bed and extruder.

  I would like to see LinuxCNC set up to control my router through the blue pill board (or two) without needing the OctoPrint, or the Klipper3D python interpreter.  I have been running my router with GRBL, and though it's an amazing feat of programming prowess, sometimes wrestling with FreeCAD and either FreeCAD's PATH toolbench or JSCUT makes me wish I had the subroutines, named variables, math, and looping constructs LinuxCNC makes available.  Many times I've spent hours or days doing something I felt confident I could do in LinuxCNC in about an hour.

  I would like to see LinuxCNC able to control a small machine through a $14 CNC controller.

http://www.zyltech.com/arduino-cnc-kit-uno-r3-shield-4x-a4988-drivers/

The protocol and the microcontroller software is already done, though I'd guess it doesn't use synchronous transfers, but just buffers the steps to keep latency from stalling the steppers.





_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to