Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:34 02 Feb 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Yet more AI magic - G-Code in MMBasic

     Page 2 of 2    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10923
Posted: 02:29pm 18 Dec 2025
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 1709
Posted: 04:02pm 18 Dec 2025
Copy link to clipboard 
Print this post

Very cool. I'll just take the pulse & direction count and convert to a servo command.  
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 739
Posted: 07:31pm 18 Dec 2025
Copy link to clipboard 
Print this post

Really cool. A TNC151 could be emulated with a basic program as a standalone.
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1709
Posted: 07:57pm 18 Dec 2025
Copy link to clipboard 
Print this post

  dddns said  Really cool. A TNC151 could be emulated with a basic program as a standalone.


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: Germany
Posts: 739
Posted: 08:12pm 18 Dec 2025
Copy link to clipboard 
Print this post

I'm sure AI could do..but in assembler ;) as @Phil mentioned.
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1709
Posted: 10:45pm 18 Dec 2025
Copy link to clipboard 
Print this post

  dddns said  I'm sure AI could do..but in assembler ;) as @Phil mentioned.



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 Kingdom
Posts: 95
Posted: 09:25pm 25 Dec 2025
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10923
Posted: 10:19pm 25 Dec 2025
Copy link to clipboard 
Print this post

The functionality is in V6.01.00 for the RP2350 versions.
 
DaveJacko
Regular Member

Joined: 25/07/2019
Location: United Kingdom
Posts: 95
Posted: 10:43pm 25 Dec 2025
Copy link to clipboard 
Print this post

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: Sweden
Posts: 116
Posted: 12:58am 26 Dec 2025
Copy link to clipboard 
Print this post

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: Australia
Posts: 200
Posted: 03:26pm 27 Dec 2025
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 295
Posted: 08:02pm 27 Dec 2025
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 1709
Posted: 06:57pm 28 Dec 2025
Copy link to clipboard 
Print this post

  circuit said  This is simply one of the most exciting new developments in the MM world!


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  
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026