Firstly I would like to thank the Lightburn team for the addition of the REST-API.
I’m sure once others realize the possibilities we will see some great tools being created.
I am currently working on an enclosure for my Galvo laser and am adding a small LCD display and esp32 to keep track of the lens I have fitted.
I plan to use the REST-API to see what machine profile is loaded, then compare that to the lens the esp32 thinks is loaded and give me a visual indication if there is a mismatch. In the future the plan is to also control auto focus but that is a fair way off.
No issues with that, probably unnecessary information, just giving some background.
I would also like to keep track of runtime for jobs and total laser on time.
Currently it looks like /api/events/poll reports Running, Idle and Paused.
Would it be possible to add “framing” as well?
I have a small app using the API at the moment that is adding the runtime of each job into a database but the runtime includes the framing time. I would like to be able to see the laser runtime separately.
I am making the assumption there, that if the machine is reporting “Running” it would be firing the laser and I could calculate laser on time from that. With framing reporting when just the framing laser is on.
It’s always amazed me that people haven’t made a solution to measure/control the precise height/focus with an ESP32 and a TOF module. Seeing people measure the height with a wooden stick on a modern machine looks medieval.
I made a tank sensor for my RV a while ago, works fine but had to be modified with more smaller components from today and of course adapted in the code.
For 2.2 the API is pretty much locked in right now, unless you see a bug. However, new features will continue coming, and this one was asked for already
Keep an eye out for the REST changes in the next release.
Yeah. I thought maybe I could add a DRO for the module height, but 1mm is much too coarse. if it was 0.1mm, then I might have considered it. I also think the microcontroller range sensors have a minimum range that is too far for module focusing.
Oh, now I understand what you mean, sorry.
It could easily be done with my setup, to use it for laser machines. As I said, you “only” need to choose a smaller ESP and distance sensor, and a smarter (smaller) power supply. But the resolution is 0.1mm which is probably more precise than a drawbar