ESP32 support for controlling Flex ADC at fast sampling rates


  • I noticed in the Arduino example code for the Flex ADC product that ESP32 based arduinos can get faster sample rates of the ADC due to their faster chip select function calls. What ESP32 Arduino board profiles did you test with? Will it work with all ESP32 versions?



  • Great question! We tested with the "ESP32 Dev Module" and the "ESP32S3 Dev Module." But the fast GPIO changes should work on any ESP32 that supports the libraries below. You can also grab the example code file from github and compile it with the ESP32 board profile you plan to use and make sure no errors pop. Let me know if you run into any issues.

    #include "soc/gpio_struct.h"  
    #include "soc/io_mux_reg.h"

Please login to reply this topic!