Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

Sample 100 Hz sine wave with ADC1_CHANNEL_4 from JavaScript or C

I am using the ESP32, and I am struggling with the ADC.
I am using a function generator to create a 100 Hz sine wave.
Is it possible to capture this wave into an array from JavaScript?
If not how do you do It in Mongoose OS C code?

When I try to do this using ADC1_CHANNEL_4 I only get about 6Hz.

Any guidance would be appreciated.

Kind regards,
Suru

Sign In or Register to comment.