On Fri, 14 Aug 2020 at 21:21, cogoman via Emc-users <[email protected]> wrote:
> May I suggest the shoulders of KevinOConner to stand on. > Check out https://www.klipper3d.org/ There are other places to look. Like the STMBL project. which already has STM32 code that looks like a Mesa Smart-serial device and integrates into LinuxCNC already. You might not even have to change the pin names, as the data sent to the STM32 is floating-point position and so is the data coming back. The HAL is then amazingly simple: (this is from my actual milling machine A-axis) net A-pos joint.3.motor-pos-cmd hm2_5i23.0.stbl.0.5.pos_cmd net A-pos-fb hm2_5i23.0.stbl.0.5.pos_fb joint.3.motor-pos-fb net A-vel-cmd joint.3.vel-cmd => hm2_5i23.0.stbl.0.5.vel_cmd net A-index joint.3.index-enable <=> hm2_5i23.0.stbl.0.5.index_enable However, the STM32 still relies on an Mesa FPGA card as the realtime link between LinuxCNC and the serial protocol. If you decide how you want to communicate with your Blue Pill, then that is the gap to close, the rest is pretty much all done. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
