Control up to eight high-power channels with this precise pulse-width-modulation (PWM) driver. Perfect for bright LEDs, DC motors, to control RC servos, drive shape-memory-alloy (SMA) wire muscles, or to activate solenoids. Outfitted with high-current Field-Effect Transistors (FETs) to sink and control high power devices.
- 8-channel sinking output (i.e. this board acts like a switch between your connected device and ground)
- Up to 12V and 9A per channel
- 12-bit PWM control
- Up to 1500 Hz pulse frequency
PWM Quickstart Code
// include the neoPLC-PWM library #include <neoPWM.h> // create an instance of the PWM board neoPWM pwm = neoPWM(); // --- SETUP --- // initialize the PWM board with frequency 'freq', default is 1600 (Hz) void pwm.begin(float freq); // change the PWM frequency 'freq' void pwm.setPWMFreq(float freq); // turn off PWM on all channels at once void pwm.zeroAll(); // --- METHODS --- // set the channel 'x' to 'rawDuty', where 'rawDuty' ranges from 0 to 4095 void pwm.analogWrite(uint8_t x, rawDuty);