Close

Concept test for controller on STM8

A project log for RigTig's Big 3D Printer

A DIY 3D printer (big volume, inexpensive, lightweight and portable).

RigTigRigTig 02/27/2017 at 22:341 Comment

Sometimes smaller is better. Thanks @Thomas for eForth on STM8. I've added the files to this project where I have tested the concept of using STM8 running eForth to be the controller for the RB3DP. The forward and reverse kinematics routines are tested, and a few GCODE commands are implemented. Stubs are used for actual actions, with text echo of internal commands.

Based on this test, RB3DP will accept GCODE in millimeters and have a maximum size of about 60 meters (the 16-bit integer maths maxes out at 65.535 meters).

Now to put it all together on ESP14 (which is STM8 with ESP8266).

Discussions

RigTig wrote 02/28/2017 at 22:15 point

Oops. Forgot to handle unused part of line being read. Updated GEV to consume and throw away unread comments at ends of lines. 

: GEV ( -- )
  NAME? IF EXECUTE ELSE DROP THEN
  0 PARSE 2DROP ; \ bypass rest of the line

Now the code has read and processed a GCODE file of over 1MB created by Cura, just bypassing anything that is does not know how to handle (i.e. handles G1 and G0 lines and ignores the rest!!) @Thomas FYI

  Are you sure? yes | no