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.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
[社團]mPython讀書會
mPython基本課程
本講義網址
http://gg.gg/ncbjp
- 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 →麵包板
[基本]https://kknews.cc/zh-tw/news/pqprzqj.html
轉自台灣MicroPython 陳會安老師
- 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 →AnalogRead應用
[ADC參考資源]http://www.1zlab.com/wiki/micropython-esp32/adc/
ADC用法
PWM法用
可變電阻
光敏電阻
調光器 x WS2812
測試參考
https://docs.singtown.com/micropython/zh/latest/esp32/esp32/tutorial/neopixel.html
https://mc.dfrobot.com.cn/thread-305498-1-1.html
接線方法
WS2812 DIN -> D4

可變電阻中間角 -> D2
控制方法
Servo Motor 伺服馬達
接線方法
Servo Motor控制訊號為D4(在此接線圖情況下才成立)

輸入訊號為D2(電阻改變 產生電壓改變 進一步控制Servo Motor的PWM數值)
伺服馬達應用
測試範例
參考資料| ESP32 教學 | MicroPython | PWM Control | 202 |
ESP32 v.s. Servo
MPU6050 I2C 三軸陀螺儀加速計感測模組
- 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 →接線方法
VCC 選3.3V

i2c = I2C(scl=Pin(22), sda=Pin(21), freq=)
應用
測試範例
OLED I2C 螢幕
- 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 →接線方法
VCC 選3.3V


i2c = I2C(scl=Pin(22), sda=Pin(21), freq=)
應用
power consumption1
power consumption2
約耗20-30mA 約0.06W
測試範例
顯示訊息程式:
底下的程式碼是和溫濕度感測器一起工作的例子
NodeMCU與WiFi
把資料傳送到ThingSpeak.com
MQTT
GitHub
資料傳送給LINE
即時繪製數據圖檔