Search found 4 matches

by zsp_32
Thu Jul 17, 2025 4:44 pm
Forum: ESP-IDF
Topic: Sample ADC while PWM ON phase using MCPWM
Replies: 3
Views: 152

Re: Sample ADC while PWM ON phase using MCPWM


Can you sample continuously and filter for 'interesting' samples in software? E.g. ignore all values < 10mA and take the average of all other values, or take the maximum value from an X ms period?


Yes, this is what i'm currently doing and i was looking to improve this.

Another way i was ...
by zsp_32
Wed Jul 16, 2025 9:17 pm
Forum: ESP-IDF
Topic: Sample ADC while PWM ON phase using MCPWM
Replies: 3
Views: 152

Sample ADC while PWM ON phase using MCPWM

I'm using MCPWM api to control a motor driver DRV8701 and i need to ADC sample the motor current but only during the PWM ON phase. - Is there a way i can trigger an ADC read based on the PWM phase and only read ADC while the PWM is on the ON phase?
- Is there any way i can do this using the ADC ...
by zsp_32
Wed Apr 28, 2021 10:00 pm
Forum: ESP-IDF
Topic: Latest IDF extension for VSCode has broken my compiler
Replies: 14
Views: 19672

Re: Latest IDF extension for VSCode has broken my compiler

Also it seems that the new VScode version does not upload SPIFFS partition when flashing the project:

This works in 1.0.2 but not in 1.0.3

Code: Select all

spiffs_create_partition_image(storage ../spiffs FLASH_IN_PROJECT)
by zsp_32
Wed Apr 28, 2021 10:40 am
Forum: ESP-IDF
Topic: Latest IDF extension for VSCode has broken my compiler
Replies: 14
Views: 19672

Re: Latest IDF extension for VSCode has broken my compiler


The IDF component manager is now used by default in the build task, this python package is added in the extension requirements.txt.

You can manually install idf-component-manager in the virtual environment or run Install ESP-IDF Python Packages command to install them or also with the ESP-IDF ...

Go to advanced search