Pulse Nodes
A pulse is a short, rectangular electrical signal used for measurement, detection, and controlling switches. These nodes can be used to utilize the pulse and PWM (pulse width mondulation) functionality in your flows.
Config Nodes
pwm write config
Handles settings for pulse wave generation on a specified pin.
Inputs
- Output Pin : Specify the output pin number to send pwm signal
- Resolution : Set the bit resolution (smallest detectable change in a pulse signal) for the pulse signal
- Timer : Select the timer for the pulse signal
- Ledc Channel : Select the LEDC Channel (used to control the brightness or color of an LED using PWM)
- Clock : Select the clock to use for signal generation
- Speed Mode : Select the speed mode for the signal
Proc Nodes
pwm write
Enables production of square wave (alternating 1 and 0) on the specified pin with a frequency and duty cycle(%). (a PWM generator)
Inputs
- Config : Select the pwm configuration
- Intensity (%) : Specify the Intensity/Duty cycle in percentage (%)
- Frequency (Hz) : Specify the frequency of the pwm signal
- H point : Specify H Point (reference point for the start of a pulse) in percentage (%)
pwm sound
Enables production of sound wave (alternating 1 and 0) on the specified pin with a frequency. (a PWM generator)
Inputs
- Output : Select the pwm configuration
- Switch : Turn on/off the pin signal
- Tone (Hz) : Specify the tone frequency to send
pwm duty resolution
Used to find the duty_resolution
Inputs
- Config : Select the PWM write configuration
- Source clock frequency : Select the source clock for the PWM duty cycle resolution
- Timer(frequency) : Specify the time frequency
Outputs
- Duty resolution : Duty resolution of the PWM duty cycle
pwm stop
Used to stop the led
Inputs
- Config : Select the PWM write configuration
- Idle level : Specify the idle level of PWM signal
pwm set frequency
Used to set the frequency.
Inputs
- Config : Select the PWM write configuration
- Frequency (hz) : Specify the frequency for PWM signal
pwm get frequency
Used to get the frequency.
Inputs
- Config : Select the PWM write configuration
Outputs
- Frequency (hz) : Frequency of the PWM signal
pwm set duty cycle and hpoint
Used to set the duty cycle and the h point value
Inputs
- Config : Select the PWM write configuration
- Duty : Specify the duty cycle of the pwm signal
- H point : Specify the H point for the pwm signal
pwm get duty hpoint
Used to set the duty value the h point value
Inputs
- Config : Select the PWM write configuration
Outputs
- H point : Hpoint parameter in the ledc_channel_config_t structure specifies the point in the PWM cycle where the duty cycle is applied.
pwm get duty
Used to set the duty value and get the duty value
Inputs
- Config : Select the PWM write configuration
Outputs
- Duty : Duty parameter specifies the duty cycle of the PWM signal, determining the proportion of time the signal is high within each period.
pwm fade function install
Used to install the fade function.This will occupy the interrupt of LEDC Module
Inputs
- Fade function install : Installs the LEDC fade service, enabling smooth transitions in duty cycle.
pwm set fade function
This is used to set the LEDC gradient
Inputs
- Config : Select the PWM write configuration
- Duty : Duty parameter specifies the duty cycle of the PWM signal, determining the proportion of time the signal is high within each period.
- Fade direction : Fade direction parameter specifies the direction of the fade operation, determining whether the PWM duty cycle increases or decreases over time.
- Step num : Step num parameter specifies the number of steps over which the PWM duty cycle transitions during a fade operation
- Duty cycle num : The duty cycle is determined by the duty parameter, which specifies the duty cycle of the PWM signal, determining the proportion of time the signal is high within each period.
- Duty scale : Duty scale parameter specifies the scaling factor for the duty cycle during a fade operation
pwm timer Set
This is used to set the timer
Inputs
- Config : Select the PWM write configuration
- Clock divider : Clock divider parameter specifies the division factor applied to the selected clock source
- Source clock frequency : Source clock frequency determines the maximum achievable PWM frequency and duty resolution
pwm timer reset
This is used to reset the timer
Inputs
- Config : Select the PWM write configuration
pwm bind channel timer
This is used to bind the LEDC channel with the selected timer
Inputs
- Config : Select the PWM write configuration
pwm set fade time and start
A thread-safe API to set and start LEDC fade function, with a limited time.
Inputs
- Config : Select the PWM write configuration
- Target duty : Target duty parameter specifies the desired duty cycle for a PWM signal during a fade operation
- Max fade time(ms) : Max fade time ms parameter specifies the maximum duration, in milliseconds, over which the PWM duty cycle should transition to the target duty during a fade operation.
- Fade mode : The fade mode parameter determines how the fade operation is executed
pwm set fade step and start
A thread-safe API to set and start LEDC fade function.
Inputs
- Config : Select the PWM write configuration
- Target duty : Target duty parameter specifies the desired duty cycle for a PWM signal during a fade operation
- Scale : Scale parameter specifies the scaling factor for the duty cycle during a fade operation
- Cycle num : Cycle num parameter specifies the number of PWM cycles over which a fade operation should occur
- Fade mode : The fade mode parameter determines how the fade operation is executed
pwm set duty and update
A thread-safe API to set duty for LEDC channel and return when duty updated.
Inputs
- Config : Select the PWM write configuration
- Duty : Duty parameter specifies the duty cycle of the PWM signal, determining the proportion of time the signal is high within each period.
- H point : Hpoint parameter in the ledc_channel_config_t structure specifies the point in the PWM cycle where the duty cycle is applied.