|
Forum Index : Microcontroller and PC projects : Yet more AI magic - G-Code in MMBasic
| Author | Message | ||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10923 |
Attached is a document describing the current status of the code. This is probably as far as I will take it with the possible exception of adding A and B linear axes - further than this you would need a dedicated controller. The intent is that it provides a simple robust way of controlling steppers in an embedded environment. Stepper_Reference.pdf |
||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1709 |
Very cool. I'll just take the pulse & direction count and convert to a servo command. |
||||
| dddns Guru Joined: 20/09/2024 Location: GermanyPosts: 739 |
Really cool. A TNC151 could be emulated with a basic program as a standalone. |
||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1709 |
Ah-ha so I'm not the only one on the planet who sees the potential (it gets a bit lonely )Mind blowing. A single PicoMite can handle the entire thing, including HMI. Brain dead machines are everywhere. Nobody can justify tens of thousands to put a new Heidenhain on older machines. Driving the original servos is a heck of a lot less stressful though. No need for the 100KHz step generator. |
||||
| dddns Guru Joined: 20/09/2024 Location: GermanyPosts: 739 |
I'm sure AI could do..but in assembler ;) as @Phil mentioned. |
||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1709 |
We can do it right now. Read position from incremental encoders (via PIO) Pass the desired position and actual position to MATH PID Output the correction to PWM, filter and scale to +/- 10V analogue to command the motor's drive (amplifier). Three axes @1KHZ is nice. Four axes still works but much more processing time for other things when @500Hz. |
||||
| DaveJacko Regular Member Joined: 25/07/2019 Location: United KingdomPosts: 95 |
Totally marvellous! .. why does this thread seem to have died?(have been trying to do a similar, GRBL in MMBasic project, but G03 arcs seem to be beyond me, spent weeks, reaching my 'give up point' soon) I humbly ask Peter, is this code going to be published? Thanks to ALL contributors. Try swapping 2 and 3 over |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10923 |
The functionality is in V6.01.00 for the RP2350 versions. |
||||
| DaveJacko Regular Member Joined: 25/07/2019 Location: United KingdomPosts: 95 |
Thanks, Peter! (watching 1975 film Jaws on BBC2 and drinking Asda wine, good night mate) Try swapping 2 and 3 over |
||||
| Peter63 Senior Member Joined: 28/07/2017 Location: SwedenPosts: 116 |
Stepper... OK now I have more to test over the weekend, and I'm just happy about that. /Peter63 |
||||
| mozzie Senior Member Joined: 15/06/2020 Location: AustraliaPosts: 200 |
G'day, There is a possibility this thread has gone quiet because those who take an interest in such things started pondering the possibilities and had a cranial meltdown shortly after Having just (finally) got my 600x400 Chineseium CNC machine and Mach3 playing together after way too long, the possibility of running it off a PicoMite is truly incredible. Its looking like Matherp + PicoMite + Claude are a mind altering combination Many thanks to Peter for adding this for us to test. Regards, Lyle. |
||||
| circuit Senior Member Joined: 10/01/2016 Location: United KingdomPosts: 295 |
This is simply one of the most exciting new developments in the MM world! It is one of the best Christmas presents that I have had. Peter, your ingenuity is matched only by your generosity of spirit in the way that you share these things. I have three rather nice ball-screw linear rails sitting in their boxes waiting to become a milling machine and now I have the computer technology to get me there. A big thank you. |
||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1709 |
In the MCU world We have more possibilities here than most others: I am not crazy about open loop command because "control" means the ability to verify that the command was actually followed. But with the PicoMite, we have the ability to read incremental encoders. Lost pulses need never be an issue |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |