• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Sampling rate on ESP32

Q&A Forum › Sampling rate on ESP32
0 Vote Up Vote Down
Abdulmagid Omar asked 4 years ago

Hi;

I have asked similar question couple of days ago but I have no response.

The question: ( I have already bought several of your books, among them is the ESP32 and Micropython ,..etc) I am looking for a simplified way to set the ADC sampling rate using Arduino IDE. It was not addressed in your books. Either using the timer/Interrupt combination or any other approach. I also noticed that even the timer configuration was not thoroughly addressed in your books.

Thanks

Abdulmagid Omar

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Abdulmagid.
I’m sorry for taking so long to get back to you.
I’m not very familiar with advanced functions of ADC on ESP32.
However, I found this discussion about setting the sample rate of ADC on ESP32: https://www.esp32.com/viewtopic.php?t=6415
It seems that they found somehow how to do it. They also said that this tutorial help them doing that: https://techtutorialsx.com/2017/10/07/esp32-arduino-timer-interrupts/
You can also find other advanced functions related with ADC on ESP32 with Arduino IDE here: https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-adc.h
I hope this helps.
And once again, I’m sorry for taking so long to answer.
Thank you for supporting our work.
Regards,
Sara
 

0 Vote Up Vote Down
Abdulmagid Omar answered 4 years ago

Thanks Sara very much for your response. Yesterday I found this link:
https://techtutorialsx.com/2017/10/07/esp32-arduino-timer-interrupts/ which helped me setup the sampling rate using the timer and Interrupt. (This is the same linkas the second link in your list.
Thanks again
Abdulmagid
 

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Thank you, and once again I’m sorry for the delay in our response.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.