Is there any way Marlin Firmware supports G-code that can make a pin "high" and keep it at that state for a period of time specified?
I have made a machine, which runs on Marlin Firmware, that is a mould forming tool, that would make a mould into a powder, then another tool would come over this mould and dispense some liquid in it. I have a custom GUI to move the tools to given coordinates, press a mould, position the second tool over the mould.
For dispensing liquid I'm thinking about buying a diaphragm valve. I've downloaded the user manual for it. As per the documentation, when compressed air is given to valve it will lift diaphragm and will start dispensing. The amount of liquid it dispenses depends on the how long the valve is opened. So I'm thinking about using a relay to turn a solenoid valve ON
and OFF
to supply air to the valve. To turn the relay ON
I need to make a certain GPIO pin "high". Is there any way I can do this in Marlin Firmware?