or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
micropython 讀取ADC繪製歷史曲線(Line Plot)
tags:
Micropython
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →ADC介紹
在 ESP32 上,引腳 32-39(ADC 模組 1)和引腳 0、2、4、12-15 和 25-27(ADC 模組 2)上提供 ADC 功能
ADC模組2也被WiFi使用,因此當WiFi處於活動狀態時
從模組2引腳讀取模擬值將引發異常。
輸入引腳的最大額定電壓為3.6V
在相同取樣位元的情況下,輸入電壓範圍越小越精確
例如,1V分割成4096份,對比3.6V分割成4096份
1V的分割比較細緻
若是需要更精準的ADC可以選用16位精密模數轉換器(ADC) 開發板模組

在Arduino 中有一個很好用的map函數
他可以將輸入值依照最大最小值依自己需求進行轉換
例如ADC 12bit讀取到0 ~ 4095的數值要轉換為0~100
就可以使用map函數進行轉換
而micropython則只需兩行程式碼自行定義出這個函數
🌟全文可以至下方連結觀看或是補充
全文分享至
https://www.facebook.com/LHB0222/
https://www.instagram.com/ahb0222/
有疑問想討論的都歡迎於下方留言
喜歡的幫我分享給所有的朋友 \o/
有所錯誤歡迎指教
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →