Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use a Meadow digital output and the Meadow.Foundation Led driver when you only need an LED on or off. Use PWM and PwmLed when you want to vary apparent brightness or create a pulse. The current official PWM example targets Meadow F7 Feather V2; check your board’s pinout and the LED’s electrical requirements before wiring.

Choose digital output for on/off, PWM for brightness or pulses

Approach API What it does Pin and wiring considerations
Digital output IDigitalOutputPort or Meadow.Foundation Led Turns the LED on or off; the Led driver also supports blinking. Use a digital output pin. The Hackster tutorial’s digital circuit places a 220-ohm resistor in series with the LED.
PWM PWM-capable output or Meadow.Foundation PwmLed Varies perceived brightness by changing duty cycle; can also pulse. Use a PWM-capable pin. Pins can share timer groups and frequency constraints; verify the LED and board electrical specifications before wiring.

Meadow digital pins are documented as HIGH at 3.3 V and LOW at 0 V. See the official Digital IO guide for the output-port API and the IO guide for board and pin information.

Switch an LED with a digital output

Create an output port with Device.CreateDigitalOutputPort, then set its State to true for HIGH or false for LOW:

IDigitalOutputPort output = Device.CreateDigitalOutputPort(Device.Pins.D05, false);
output.State = true;  // HIGH
output.State = false; // LOW

The example uses D05; select a pin available on your board. The API and 3.3 V/0 V logic levels are documented in the official Digital IO guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
SUPERNIGHT LED Light Strip Dimmer, DC12V-24V 30A PWM
  • 0%-100% Dimming Freely--- PWM 0%-100% Dimming Controller easily adjusts the lighting to any brightness, dim or brighten, to meet your different needs and preferences via the rotatable knob
  • Flexible Usage--- Compatible with DC 12V-24V MAX 30A LED light application, single channel dimming controller for single color 5050 3528 5630 LED strip lights. When connecting the LED light and power supply, please pay attention to the correct position of the positive and negative terminals, otherwise it will affect the adjustment function or the light belt will not be bright
  • Long Lasting and Durable--- The high quality, sturdy aluminum housing provides excellent anti-corrosion and heat-dissipation capacity, and ensures a long-lasting performance even in harsh environments
  • Protect LED Strip Lights--- PWM digital dimming avoids rush current and protects your LED lights
  • Esay to Connect--- The screw-in input and output terminals, pre-drilled mounting holes make the installation literally a breeze. If there is no reaction during adjustment, please check whether the adjustment rotation knob is loose. You need to manually press down to ensure that the knob and the internal adjustment screw fit in order to adjust normally

Use the Meadow.Foundation Led driver

The exact-title Hackster tutorial wraps a digital output in Meadow.Foundation’s Led driver. It describes IsOn for checking or setting the LED’s on/off state, StartBlink() for blinking, and Stop() to stop that behavior.

Wire the tutorial’s digital circuit

For its digital-output circuit, the tutorial connects the LED’s short cathode leg to GND and its longer anode leg to D01 through a 220-ohm resistor. That value is the tutorial’s circuit instruction, not a universal resistor choice: confirm the selected LED’s forward voltage and current limits and the Meadow board’s electrical specifications.

Rank #2
Gebildet 3pcs Mini DC Motor PWM Speed Controller, DC 5V-35V 5A Speed Adjustable Switch Module, 6V 12V 24V Variable Voltage Regulator Dimmer Governor Switching Build with LED Indicator
  • The mini style DC motor speed regulator controls the speed of a DC motor by adjusting Pulse-Width-Modulated (PWM), with the latest low voltage technology.
  • Voltage range: DC 5~35V, Current range: Within 5A, Adjustable Speed range: 0~100%, PWM frequency: 20khz.
  • The motor speed controller can easily provide a continuous current of 5A to your DC motor or other DC load; Default disconnection of short circuit point ,it is Applicable to 5-35V input voltage.
  • It is not only to use for dc motor controls of the speed,but also to use for adjust the LED light.
  • Note: Please connect this DC controller to DC power supply. Never connect directly to household power supply, or it will be damaged.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Control brightness or pulse with PWM

PWM rapidly switches an output between HIGH and LOW. Its duty cycle is the fraction of each cycle spent HIGH: raising the duty cycle raises the average output voltage and makes the LED appear brighter. Frequency is how often the cycle repeats. The official PWM guide says to use at least 60 Hz for LED brightness control because people can notice flicker below that frequency.

Use the current PwmLed example

The official Meadow.Foundation getting-started example creates a blue PwmLed on D13 and starts a pulse:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
GLEDOPTO ESP32 PWM WLED LED Controller 5 Modes in 1 DC 12-24V WiFi Wireless App Control Easy Wiring DIY Static Dynamic Mode Lighting For Analog RGBCCT RGBW RGB WWCW CCT Dimmer Single Color Strip Light
  • WLED ESP32 - Efficient Chip: This controller uses the efficient ESP32 chip for quick response and an excellent user experience. And it supports WLED OTA upgrades. When upgrading, select the ESP32 version firmware. Incorrect firmware may cause damage to the product
  • APP Convenient Control: The ESP32 PWM WLED LED controller is Pre installed with WLED firmware, which can be directly controlled via the WLED app using wifi without the need for a gateway. Easily control lights anytime and anywhere
  • Versatile Compatibility: Supports five types of PWM dimming Analog light strips including RGBCCT, RGBW, RGB, CCT, and single-color. Support static and dynamic mode settings, meets diverse lighting needs
  • Upgraded Wiring Port: Upgrading the wiring terminal requires only a few simple steps to complete the installation, which is convenient and fast, without the need for additional wiring tools or knobs
  • Reverse Circuit Protection: Protecting controller from overcurrent, overload and overheating caused by wiring errors, safe and reliable
pwmLed = new PwmLed(Device.Pins.D13, TypicalForwardVoltage.Blue);
pwmLed.StartPulse();

The complete example uses the Meadow.Foundation.Leds namespace and an App<F7FeatherV2> app. The guide says to change the device type for V1.x boards. Use the pinout for your specific board rather than assuming D13—or any pin—is suitable for every Meadow model.

Check PWM pin and frequency limits

Nearly every digital pin on Meadow F7 supports PWM, according to the official PWM guide, but PWM-capable pins may share timer groups. Pins in one group can share a frequency while using different duty cycles. If you need different frequencies on multiple channels, check the pinout and timer-group details for your board before assigning pins.

Rank #4
Coliao 4pcs DC Motor Speed Controller PWM 5V-16V 12V 10A Voltage Regulator DC Motor Governor Stepless Speed Regulator LED Dimmer Power Controller
  • Motor Speed Controller: PWM DC motor speed regulation, with switch function, the speed control mode is PWM stepless speed regulation, and it can also be used to adjust the light.
  • Speed Controller Parameters: Supply voltage: DC5~16V, continuous current: 10A, efficiency: up to 98% efficiency.
  • Adjustable Resistor Switch: Turn on the switch clockwise, turn the potentiometer clockwise to speed up the motor; turn the potentiometer counterclockwise to slow down the motor.
  • Widely Applications: It is suitable for the speed regulation of dc motor, fan, fish tank oxygen pump and other products in DC5-16V.
  • Package Included: 4pcs 5v 12v 10a voltage regulator pwm dc motor speed controller governor stepless speed regulator.

Verify the PWM circuit before connecting it

The Hackster tutorial’s PWM section instructs connecting D02 directly to the LED anode after removing the resistor. That is a source-specific wiring instruction, not a general rule for LEDs. The available tutorial information does not establish that direct drive is appropriate for every LED or Meadow board revision. Before connecting it that way, check the selected LED’s forward voltage and current rating against the electrical specifications for your board. Do not assume the digital circuit’s 220-ohm resistor value, or its removal, is suitable for a different LED or board.

Best Value
BTF-LIGHTING SP630E 12-in-1 Bluetooth LED Controller with Mic, DC5V/12V/24V
  • Support PWM LED Strip. PWM LED strip which has no IC chip,fox example FCOB 5630 5730 5050 2835 3528 2pin(V+ V-) 3pin CCT(V+ CW WW) 4pin RGB(V+ R G B) 5pin RGBW(V+ R G B W) 6pin RGBCCT(V+ R G B CW WW) .Monochrome Light and CCT light have no function of DIY light effect.
  • Support Addressable IC Chip LED Strip. SPI TTL IC Chip LED strip. 3pin(V+ Data GND) or 4pin(V+ Data Backup GND). For example WS2811 WS2812B WS2813 WS2814 WS2815 SK6812 LB1934 IC chip etc single color, CCT, RGB, RGBW, RGBCCT addressable LED strip. Can not support SK9822 WS2801 etc Data+Clock LED strip. Monochrome Light and CCT light have no function of DIY light effect.
  • The SP630E controller's SPI interface supports a maximum of 600 ICs for single-color LED strips, 600 ICs for CCT (dual-color-temperature) LED strips, 600 ICs for RGB LED strips, 450 ICs for RGBW LED strips, and 300 ICs for RGBCCT LED strips, with all values representing the upper control limits under optimal operating conditions.
  • Support SPI+PWM LED Strip at the same time.For example you can controller WS2812B IC RGB LED strip + FCOB 3000K single color no IC strip or WS2812B IC RGB LED strip + FCOB CCT no IC strip.
  • DIY .You can make your own lighting effect for the LED strip.Banlan X APP bluetooth control .Three APP operating interfaces: static effect, dynamic effect and music effect.Great for DIYers, renovators, pros, and beginners for cabinets, shelves, TV backs, offices, RVs, or PCs. (Note:Only when the parameter settings of all SP630E are consistent can the APP grouping function be used.)

Quick checklist before running the example

  • Choose a digital output and Led for on/off or blinking, or a PWM-capable output and PwmLed for brightness changes or pulses.
  • Match the app’s device type and pin selection to your Meadow board generation and board-specific pinout.
  • For PWM brightness, use a frequency of at least 60 Hz; consider timer-group frequency sharing when using multiple channels.
  • Check the LED and board electrical specifications before wiring. The tutorial’s digital wiring specifies a series resistor; its PWM direct-drive instruction needs component-specific verification.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.