Skip to content

ESP32C3 lib of ad-read error #6755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
voidlaobai opened this issue May 16, 2022 · 0 comments · Fixed by #6799
Closed
1 task done

ESP32C3 lib of ad-read error #6755

voidlaobai opened this issue May 16, 2022 · 0 comments · Fixed by #6799
Assignees
Labels
Area: Peripherals API Relates to peripheral's APIs. Chip: ESP32-C3 Issue is related to support of ESP32-C3 Chip Status: Solved
Milestone

Comments

@voidlaobai
Copy link

Board

esp32-c3-devkitm-1

Device Description

nop

Hardware Configuration

nop

Version

v2.0.3

IDE Name

Arduino IDE

Operating System

Windows10

Flash frequency

80Mhz

PSRAM enabled

no

Upload speed

115200

Description

I want to read ad value.But here is a problem,i find C3's arduino lib ad attenuation have diference with datasheet.
datasheet show 750,1050,1300,2500 (mV)
but the arduino lib esp32-hal-adc.c Line 249 show
switch(__analogAttenuation){
case 3: max_mv = 3900; break;
case 2: max_mv = 2200; break;
case 1: max_mv = 1500; break;
default: break;
}

Sketch

nop

Debug Message

nop

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@voidlaobai voidlaobai added the Status: Awaiting triage Issue is waiting for triage label May 16, 2022
@P-R-O-C-H-Y P-R-O-C-H-Y added Area: Peripherals API Relates to peripheral's APIs. Chip: ESP32-C3 Issue is related to support of ESP32-C3 Chip Status: Needs investigation We need to do some research before taking next steps on this issue labels May 16, 2022
@P-R-O-C-H-Y P-R-O-C-H-Y self-assigned this May 16, 2022
@P-R-O-C-H-Y P-R-O-C-H-Y removed the Status: Awaiting triage Issue is waiting for triage label May 16, 2022
@VojtechBartoska VojtechBartoska added this to the 2.0.4 milestone May 18, 2022
@P-R-O-C-H-Y P-R-O-C-H-Y moved this from Todo to In Progress in Arduino ESP32 Core Project Roadmap May 20, 2022
@P-R-O-C-H-Y P-R-O-C-H-Y added Status: In Progress ⚠️ Issue is in progress and removed Status: Needs investigation We need to do some research before taking next steps on this issue labels May 23, 2022
@VojtechBartoska VojtechBartoska moved this from In Progress to In Review in Arduino ESP32 Core Project Roadmap May 25, 2022
Repository owner moved this from In Review to Done in Arduino ESP32 Core Project Roadmap May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Peripherals API Relates to peripheral's APIs. Chip: ESP32-C3 Issue is related to support of ESP32-C3 Chip Status: Solved
Projects
Development

Successfully merging a pull request may close this issue.

3 participants