Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix for ADC timing for NUCLEO-WL55JC (STM32WLxx)#1766

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fpistm merged 1 commit intostm32duino:mainfrom0x657373656C6C:main
Jul 20, 2022
Merged

Fix for ADC timing for NUCLEO-WL55JC (STM32WLxx)#1766

fpistm merged 1 commit intostm32duino:mainfrom0x657373656C6C:main
Jul 20, 2022

Conversation

0x657373656C6C
Copy link
Contributor

This PR fixes/implements the followingbugs/features

  • Bug

Motivation

When using the STM32Examples (internal channels) sketch to read the internal ADC values from the NUCLEO-WL55JC (STM32WLxx) the following is observed:

VRef(mv)= 3223 Temp(°C)= -92 Vbat(mv)= 598 A0(mv)= 0
VRef(mv)= 3274 Temp(°C)= -88 Vbat(mv)= 606 A0(mv)= 0
VRef(mv)= 3223 Temp(°C)= -91 Vbat(mv)= 597 A0(mv)= 0

Note that VRef is a little on the low side for USB power and that Temp provides an implausible and erroneous negative number. Vbat is also somewhat questionable.

With the small fix applied the following is observed:

VRef(mv)= 3308 Temp(°C)= 28 Vbat(mv)= 1109 A0(mv)= 0
VRef(mv)= 3310 Temp(°C)= 28 Vbat(mv)= 1110 A0(mv)= 0
VRef(mv)= 3313 Temp(°C)= 29 Vbat(mv)= 1110 A0(mv)= 0

Note that VRef reads more or less correct and that Temp presents a value more aligned with ambient room temperature. Vbat also appears more realistic.

Validation

  • Tested on NUCLEO-WL55JC

@fpistmfpistm added bug 🐛Something isn't working fix 🩹Bug fix labelsJul 20, 2022
@fpistmfpistm added this to the2.3.1/2.4.0 milestoneJul 20, 2022
@fpistmfpistm self-requested a reviewJuly 20, 2022 08:01
@fpistm
Copy link
Member

Hi @yourapiexpert
Thanks for the fix. Good catch. 😉

@fpistmfpistm merged commit251b502 intostm32duino:mainJul 20, 2022
fpistm added a commit that referenced this pull requestJul 21, 2022
Complete the PR#1766Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
cparata pushed a commit to cparata/Arduino_Core_STM32 that referenced this pull requestJan 31, 2023
Complete the PRstm32duino#1766Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fpistmfpistmfpistm approved these changes

Assignees
No one assigned
Labels
bug 🐛Something isn't workingfix 🩹Bug fix
Projects
None yet
Milestone
2.4.0
Development

Successfully merging this pull request may close these issues.

2 participants
@0x657373656C6C@fpistm

[8]ページ先頭

©2009-2025 Movatter.jp