As part of a project I’m building a machine. Currently it runs on Marlin FW. What I want is a firmware feature that would make a pin HIGH and stau at that state for a given duration.
My purpose is,
I have made a machine, which runs on Marlin. What it does is, It has an impression making tool, that would make an impression on a powder, then another tool would come over this impression and dispense some liquid to it. I have a custom GUI to move machine to given coordinates, make impression, position Tool 2 over the impression. For dispensing liquid I’m thinking about buying diaphragm valve. I’ve downloaded user manual for it. As per documentation, when compressed air is given to valve it will lift diaphragm and will start dispensing. Amount of liquid dispensed depends on the how long air is given. So I’m thinking about using a relay to turn a solenoid valve ON and OFF to supply Air. To turn relay ON I need to make any GPIO pin HIGH and I can control the amount of liquid being dispensed by controlling the duration of this pulse. Is there any way I can make smoothiware do this.