基板のIN1, IN2, IN3, IN4に、ArduinoのD8, D10, D9, D11を接続する。 また、基板にモータ電源5Vを供給するが、GNDの共有は不要。 以下のプログラムをArduinoに書き込めば、1秒おきに正負1回転する。
A water level indicator detects and indicates the level of water in an overhead tank and relays the information back to a control panel to indicate whether the tank has a high or low water level. In ...