r/arduino•
vbl436

Valve not opening with square wave generated by Arduino.

Hardware Help

Hello,

I am trying to open and close a 24V (10W) valve using an Arduino Nano and a IRLZ44N MOSFET. The arduino is able to generate a square wave to toggle the base of the MOSFET and supply sufficient current and voltage to the valve at low frequencies (40 Hz). I want to be able to switch the valve on and off at 100 Hz (5 ms on, 5 ms off). So far, I have tried using digitalWrite() with delay(), directly writing to the pins via registers, and using a hardware timer to turn the pin on/off. I am able to successfully toggle the valve with a 11 ms on/11 ms off period (anything lower than this and the valve no longer responds). Would anyone have any suggestions to increase the frequency?

Note: This valve was demo'd and shown to reach 100 Hz using an expensive signal generator. I am trying to achieve the same result via cheaper methods.

Posted Apr 8, 2025, 9:17 PM UTC

010
Loading comments…