Search found 228 matches: pwm

Searched query: pwm

by chadpham75
Tue Oct 22, 2019 1:17 pm
Forum: ESP32 IDF
Topic: i2s_write losing data due to fail to return update pointer
Replies: 6
Views: 205

Re: i2s_write losing data due to fail to return update pointer

I am using PWM to drive 3 set of LEDs (3x RGB) toggle 250ms on/off The LEDs initialization static const ledc_channel_config_t ledc_channel[LEDC_CHANNEL_COUNT] = { { .channel = LEDC_HS_CH0_CHANNEL, .duty = 0, .gpio_num = BLUE1_N, ...
by arnoldg
Sun Oct 13, 2019 6:50 pm
Forum: ESP32 Arduino
Topic: Howto properly configure MCPWM
Replies: 0
Views: 57

Howto properly configure MCPWM

Hello, I'm working on a leading edge dimmer, there for i would like to use the MCPWM functionality of the ESP32. But i'm a bit stuck. This is what i have so far: #define GPIO_PWM0A_OUT 0 #define GPIO_PWM0B_OUT 0 #define GPIO_PWM1A_OUT 0 #define GPIO_PWM1B_OUT 0 #define GPIO_PWM2A_OUT 0 #define GPIO_...
by daniel1704
Fri Oct 11, 2019 6:29 am
Forum: ESP32 Arduino
Topic: RTC8M_CLK for LED control
Replies: 3
Views: 137

Re: RTC8M_CLK for LED control

... and I found there are a couple of bits that power up and enable the 8 MHz clock in the RTC_CNTL_CLK_CONF_REG register. I managed to make the PWM work in regular power mode (no sleep), but the signal stays idle as soon I start light sleep mode. I set all the RTC domains (peripherals, both ...
by AndreMP
Thu Oct 10, 2019 2:47 am
Forum: ESP32 Arduino
Topic: Strange behavior when changing dutycycle at up down counter
Replies: 1
Views: 87

Strange behavior when changing dutycycle at up down counter

... and had the same results. The TEP interrupt (in yellow, occur when it goes up or down) activate a change of duty cycle that occur before High PWM (blue), but it only work after the middle at the down part of timer. The code call a sequence of 4 cycles of 20% and 4 cycles of 60%. 20191009_194937c.jpg ...
by markiv
Wed Oct 09, 2019 7:49 am
Forum: ESP32 Arduino
Topic: PWM with sync input
Replies: 6
Views: 677

Re: PWM with sync input

Any updates could we use mcpwm for dimming without flickering?
by daniel1704
Wed Oct 09, 2019 4:58 am
Forum: ESP32 Arduino
Topic: RTC8M_CLK for LED control
Replies: 3
Views: 137

RTC8M_CLK for LED control

... in this platform, and I've been designing a simple project with it, to test some things I need for bigger ones. The thing is I wanted to keep a PWM signal while on light sleep. According to the TRM, that's possible with the LEDC low speed channels, if I set LEDC_SCLK to follow RTC8M_CLK (LEDC_APB_CLK_SEL ...
by kuhatovuk
Thu Sep 26, 2019 11:19 pm
Forum: Hardware
Topic: LEDC in light sleep, PICO-D4
Replies: 6
Views: 288

Re: LEDC in light sleep, PICO-D4

... LEDC_TEST_FADE_TIME (3000) void app_main() { int ch; ledc_timer_config_t ledc_timer = { .duty_resolution = LEDC_TIMER_13_BIT, // resolution of PWM duty .freq_hz = 100, // frequency of PWM signal .speed_mode = LEDC_LS_MODE, // timer mode .timer_num = LEDC_LS_TIMER, // timer index .clk_cfg = ...
by WiFive
Thu Sep 26, 2019 7:05 pm
Forum: Hardware
Topic: LEDC in light sleep, PICO-D4
Replies: 6
Views: 288

Re: LEDC in light sleep, PICO-D4

The LED PWM module can use RTC8M_CLK as a clock source when APB_CLK is disabled. In other words,
when the system is in low-power consumption mode (see Power Management Chapter), normal peripherals will
be halted (APB_CLK is turned off), but the LED PWM can work normally via RTC8M_CLK.
by ESP_igrr
Thu Sep 26, 2019 2:33 pm
Forum: Hardware
Topic: LEDC in light sleep, PICO-D4
Replies: 6
Views: 288

Re: LEDC in light sleep, PICO-D4

No, in light sleep mode all the peripherals are clock gated, including the LEDC.
You may implement some form of PWM using the ULP coprocessor, which will keep running even in light sleep.
by chadpham75
Wed Sep 25, 2019 6:26 am
Forum: ESP32 IDF
Topic: LEDC output low configuration how to
Replies: 7
Views: 260

Re: LEDC output low configuration how to

... with DutyCycle and 0 respectively, my Leds will be on/off. The part I can't figure out is my method of before configure the gpios to ledc for pwm control, I tried to set gpio_set_level(gpio_num, 1), but someone (boot maybe) still pull the gpios low hence there was a glitch/flash at the power up.

Go to advanced search