1) I would like a Magnetventil to be controlled through Puck. In general if a certain voltage is passed to the device it is opened, if there is no, it is closed.
My question is, suppose you have all needed from additional elements standpoint, on which pins should I connect the device and how from code standpoint will be able to open/close it ?
2) I would like to receive impulses from impulse water meter. In general you give some power the device and on certain quantity of water you receive an impulse.
My question is, how could I power such an external device, on which pins should I connect the device and how from code standpoint will be triggered once I have an impulse (change in the voltage i guess) ?