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
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.
See my GitHub and printables.com for some 3d stuff that you may like.