How quickly test G/M-codes on the printer
 
Notifications
Clear all

How quickly test G/M-codes on the printer  

  RSS
Hemal
(@hemal)
Member
How quickly test G/M-codes on the printer

Hi,

I wrote a blog post on how to use GPIO hacker board for timelapse using an ESP32 dev board with cam.

What I struggled the most was testing the codes. 

This article shows how to use an android phone and send M-codes to printer and test pins states with multimeter

Posted : 31/12/2025 1:26 pm
_KaszpiR_
(@_kaszpir_)
Noble Member
RE:

Nice writeup, thanks 🙂

You probably want to add additional delays so that the print head does not move during the time the picture is taken, something around the gpio pin trigger:

G4 S0 ; Wait for move to finish
G4 P3500 ; Wait for image capture in miliseconds

Where second line just adds a pause - empirically find the lowest value, this depends on your hardware which is used to take an image.

More details https://github.com/nvtkaszpir/prusa-esp32-node-red-time-lapse/tree/main/gcode also look around there for more ideas.

This post was modified 10 hours ago by _KaszpiR_

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 01/01/2026 12:07 am
Share: