Hi all
Is it possible to perform ADC on a 50 Hz signal around 512 points of samples( sampling frequency 500Hz). Please let me know if there is a API for this. Also , if I can use system_adc_read_fast() for this. How many clock cycle it requires to have one ADC performed and store it in the flash? Where can I find these information?
Thanks
Zaved
[SOLVED] ADC for 50 Hz signal
Re: ADC for 50 Hz signal
Postby pratik » Sun Jul 17, 2016 10:43 pm
Hello Zaved,
The ADC should be able to sample at 500Hz without problems. You may use timer interrupts to sample the analog input at a constant frequency.
However, writing to flash will need a write buffer implementation because the APIs write 4kB at a time and write operation may take an unknown amount of time depending on what chip you are using and DIO/QIO, clock speed, etc.
Also, modem sleep is recommended when you are running sampling applications. Otherwise network stack tasks will disturb your sampling process in between at times.
The ADC should be able to sample at 500Hz without problems. You may use timer interrupts to sample the analog input at a constant frequency.
However, writing to flash will need a write buffer implementation because the APIs write 4kB at a time and write operation may take an unknown amount of time depending on what chip you are using and DIO/QIO, clock speed, etc.
Also, modem sleep is recommended when you are running sampling applications. Otherwise network stack tasks will disturb your sampling process in between at times.
Re: ADC for 50 Hz signal
Postby pratik » Wed Jul 20, 2016 6:14 pm
Followup on ADC sampling rate:
- Minimum ADC clock divisor is 8. Therefore, max frequency is 10MHz.
- It takes about 20 cycles to perform a conversion.
- When using fast_read API, assume a conversion time of about 5 us.
- Minimum ADC clock divisor is 8. Therefore, max frequency is 10MHz.
- It takes about 20 cycles to perform a conversion.
- When using fast_read API, assume a conversion time of about 5 us.
Who is online
Users browsing this forum: No registered users and 3 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.