Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:12 20 Dec 2025 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: 10720
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: 1682
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: 715
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: 1682
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: 715
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: 1682
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.
 
     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 2025