11bit ADC data from SAMD51 (M4) boards
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- c
- 領域
- embedded-iot
調査の方向性
Start by tracing how AnalogIn reads the ADC on SAMD51 boards and how that reading is scaled to CircuitPython’s 0–65535 range; compare this with a board where the reported values are not all even. The issue names no source files or tests, so locate the SAMD51 ADC implementation and relevant tests first. Done means explaining or fixing the even-valued 12-bit readings and verifying the behavior on the Feather M4 Express.
索引モデルが issue の本文から書いたものです。
説明
CircuitPython version and board name
`10.2.1` on Adafruit Feather M4 Express
Code/REPL
My code is too complex but the essence is `value` from `AnalogIn` (on `A5`) shifted by 4 bits.
Behavior
The values when converted from CircuitPython's 0-65535 using >> 4 to 0-4095 (12bit) values are all even.
Description
From my recent ADC testing which I was reviewing I am only seeing even values from an M4 board's ADC in CircuitPython when it's shifted to a 12 bit value. This suggests it's either set to 11 bits or something is zeroing the lsb??
Additional information
This is some of my raw data.
1311612915047,"triangle","B",0,"C","max",0,"[-1]",-0.0001875,"[8,8,6,8,6,4,8,8,6,6,6,6,6,6,6,6,6,6,8,6,6,6,6,6,6,8,8,6,8,6,6,8,8,6,6,6,6,6,6,6]"
1311659362795,"triangle","B",0,"C","max",0,"[-1]",-0.0001875,"[6,6,6,6,6,6,6,4,6,6,6,6,6,8,6,6,6,6,6,6,6,8,6,6,10,6,8,6,8,6,8,6,6,6,8,6,6,6,6,6]"
1311688812260,"triangle","B",0,"C","max",0,"[-1]",-0.0001875,"[8,8,8,6,6,6,6,6,6,8,6,6,12,6,6,6,6,6,6,6,6,6,6,6,6,6,6,8,6,6,8,6,6,6,6,8,6,8,6,6]"
1311718200689,"triangle","B",0,"C","max",0,"[-1]",-0.0001875,"[8,6,6,6,6,8,6,8,6,6,6,6,6,6,6,6,6,8,6,6,6,6,6,6,8,6,6,8,8,6,8,8,6,6,8,6,6,6,6,6]"
1311747283938,"triangle","B",0,"C","max",0,"[-1]",-0.0001875,"[8,8,6,6,6,6,6,6,6,8,6,6,8,6,6,6,6,6,4,6,6,6,6,6,8,6,6,6,6,6,14,6,6,8,6,6,6,6,4,6]"
1311785400394,"triangle","B",0,"C","max",0,"[0]",0.001125,"[6,8,8,6,8,6,6,6,6,6,6,8,6,6,6,6,6,8,6,8,6,6,6,6,6,6,6,8,6,8,6,6,6,6,8,8,6,6,6,8]"
1311832366948,"triangle","B",0,"C","max",0,"[1]",0.0024375,"[10,8,8,8,10,8,10,8,8,10,8,8,8,8,6,6,8,8,8,8,8,8,10,10,8,8,10,12,10,6,8,8,8,8,0,8,8,10,6,8]"
1311864807136,"triangle","B",0,"C","max",0,"[2]",0.00375,"[10,10,10,10,8,10,10,10,10,10,8,10,10,10,10,12,10,10,10,10,10,10,10,10,12,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10]"
1311904510501,"triangle","B",0,"C","max",0,"[3]",0.004875,"[12,12,12,12,12,12,10,12,12,12,12,12,12,12,10,12,14,12,10,12,12,12,12,10,12,12,12,12,12,12,12,12,10,12,10,12,12,12,12,10]"
1311944824225,"triangle","B",0,"C","max",0,"[4]",0.006374998,"[14,12,14,12,14,12,12,12,12,14,12,12,12,12,14,14,12,14,12,14,12,12,12,14,14,12,14,14,12,14,14,16,14,14,14,14,14,12,14,12]"
1311985290540,"triangle","B",0,"C","max",0,"[5]",0.0075,"[16,14,14,16,16,16,14,14,14,20,14,14,14,14,16,16,14,10,14,14,14,14,14,16,16,14,14,16,14,14,14,16,16,16,14,14,16,14,14,14]"
1312028137218,"triangle","B",0,"C","max",0,"[6]",0.0088125,"[18,16,16,16,16,18,16,16,16,16,16,16,16,16,16,16,16,16,16,18,16,16,16,16,16,16,16,18,20,18,16,16,14,16,16,16,16,22,16,16]"
1312068511965,"triangle","B",0,"C","max",0,"[7]",0.0103125,"[18,18,18,18,18,18,18,20,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,20,18,18,18,16,18,18,14,18]"
1312108795171,"triangle","B",0,"C","max",0,"[8]",0.011625,"[24,20,20,20,18,22,20,20,18,20,20,20,20,20,20,20,20,20,20,18,20,20,20,20,20,20,20,18,20,20,20,20,20,20,20,20,20,22,20,20]"
Note the values in the last field are all even. I have same code running on many other boards and have witnessed no other problems. I am still reviewing my results so there's a small possibility this is an application bug authored by me...
- 主要言語
- C
- スター
- 4.6k
- フォーク
- 1.4k
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 147
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
adafruit/circuitpython のほかの issue
-
board breaks api
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
adafruit/circuitpython#11099 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
adafruit/circuitpython#11515 ·
メンテナーはふだん 1 日以内に返信
-
Tags and Branchesオープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
adafruit/circuitpython#11514 ·
メンテナーはふだん 1 日以内に返信
-
silabs
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
adafruit/circuitpython#11507 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
circuitpython api enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
adafruit/circuitpython#11505 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
adafruit/circuitpython の issue をすべて見る
似ている issue
-
area:http-gateway good first issue priority:low type:docs
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
crazy-goat/php-fpm-ng#828 ·
メンテナーはふだん 1 日以内に返信
-
area:docs good first issue type:docs
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
CVE-2026-18839 popt: size_t underflow in `singleOptionHelp`対応中かも @pmatilai が 34 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
rpm-software-management/popt#143 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100