My design has analog input channels on IO0 and IO1 and a ESP32-C3-MINI-1-N4 module on it.
I have configured the channels with :
ESP_ERROR_CHECK(adc1_config_width(ADC_WIDTH_BIT_DEFAULT));
ESP_ERROR_CHECK(adc1_config_channel_atten(ADC1_CHANNEL_0, ADC_ATTEN_DB_6));
ESP_ERROR_CHECK(adc1_config_channel_atten(ADC1_CHANNEL_1, ADC_ATTEN_DB_6));
IO0 has 1.6 volts on it, IO1 has 1.5 volts (precision external vRef) on it.
When I read the channels using adc1_get_raw(ADC1_CHANNEL_0); and adc1_get_raw(ADC1_CHANNEL_1);
Channel 0 returns a count of 20 (equals 8.5 mVolt)-Incorrect
Channel 1 returns a value of 3455 = (equals 1.69V) - Correct (within range of adc1's capabilities) and is used to determine scale factor
Whatever input I give channel 0, from 1.6 to 1.2 in my case, I get a reading of 20-24.
Has anyone had this issue (or success) reading channel 0 data with the esp32c3 device?
Thanks!
ESP32c3 ADC channels
-
- Posts: 2
- Joined: Fri Feb 03, 2023 3:37 pm
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 54 guests
- All times are UTC
- Top
- Delete 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. ESP8266EX and ESP32 are some of our products.