I am using a function generator to generate a sine wave with 100% amplitude and signal frequency of 2kHz, 500Hz,etc. I am using easy FFT Arduino code and get a frequency voltage data.
I could run the code effectively using Arduino UNO (ATMEL ATMEGA 328P) and get required sampling frequency of 50000 or 10000by adjusting the ADCSRA registers. When am trying to use same code here, m getting an error with ADCSRA register.
Does ESP32 has a different approach to set a sampling rate for a given signal frequency.
https://www.enthutech.in/shop/product/w ... t-wdm-1591
I am using the above board.
I need help with registers in ESP32. Can anyone please help me with this.
Is there a way to capture the desired sampling rate for a given signal with frequency as mentioned above. (50Hz, 500Hz, 2kHz).
Thank you.
Regarding Sampling Frequency of the Signal frequency using ESP32-WROOM-32E
-
- Posts: 1
- Joined: Mon Jun 07, 2021 5:17 am
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
Re: Regarding Sampling Frequency of the Signal frequency using ESP32-WROOM-32E
Hi pramodkasturi,
Your application is using some low-level ATMEL ATMEGA 328P specific code that will not work for ESP32.
Check https://www.labfruits.com/esp32-adc-speed/ for ESP32 Arduino code that should be able to achieve the sampling frequency you need.
Your application is using some low-level ATMEL ATMEGA 328P specific code that will not work for ESP32.
Check https://www.labfruits.com/esp32-adc-speed/ for ESP32 Arduino code that should be able to achieve the sampling frequency you need.
Who is online
Users browsing this forum: weoiss and 145 guests