I am a newbie to both hard- and software, so I ask for your patience…
I would like to create a glue dispenser using the SBoard, I will have two dispensing heads, like a laser engraver with two laser diodes mounted.
Obviously I want to control the dispensing action, in sync with the dispenser as it moves over the active area.
I understand that I have two options to do this:
(Please correct me when I'm off the track) Using the Switch block I can define i/o ports on the SBoard, and these I/O ports would (through a FET) turn on the laser/spindle/valve current. If I do this, then I can have G code command sent to the board, embedded into my movement control segments….and probably the synchronization is guaranteed…
I was wondering if there is another way, something like this: I issue my movement G code to the USB mounted SBoard. Depending on the system I have, the completion of this movement will take varying time. Clearly, I don't want to start pumping the glue (turning on the laser, etc.) until I reach my desired position.
So I would like to poll the SBoard to see if the movement is completed or not and when it is done I will start manipulating my other hardware but not through the SBoard but through other interfaces….. Is this 'polling' possible with the SmoothieBoard?
I very much appreciate any help, even just links that point me to the right place to read.