• 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

Reading Analog with Sample rate ESP32

Q&A Forum › Category: ESP32 › Reading Analog with Sample rate ESP32
0 Vote Up Vote Down
Jayakumar Raghavan asked 6 years ago

Hi, Is there any good example to read Analog A0 input signal using Timer at a specific sampling rate ?
I am trying to read the sound sensor analog output to determine a some specific tone sound frequency.

Question Tags: Sound A0 sampling
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi.
Unfortunately, I don’t know any example about that.

But I found this issue on the ESP32 forum: https://www.esp32.com/viewtopic.php?t=6415
They are discussing exactly what you want: setting a specific sampling rate on the analog pins.

More information abou the analogRead function: https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-adc.h

I hope this helps.
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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

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

Copyright © 2013-2025 · 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.