###### tags: `1111` `lsa` `ncnu` # Week 14 (2022/12/15) [TOC] - Book mode: https://hackmd.io/@ncnu-opensource/book - Windows 灌樹梅派系統 (HackMD) https://hackmd.io/o1v8jIHxTNe2i1Cx2j0d-w --- - 每組至少一個人下載這個壓縮檔:https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2022-09-26/2022-09-22-raspios-bullseye-arm64-lite.img.xz ### Raspberry Pi #### 介紹 - 小塊的開發板 - 相當於一台小電腦,可以運作作業系統 - Raspbian - - 也可以安裝不同 OS - Volumio (音樂串流) - Home Assistant (智慧家庭) :::danger 先插記憶卡再插電 (先拔電源再拔記憶卡) 先接HDMI再接電源線 ::: #### GPIO  - 通用型輸入輸出 Generall-purpose input/output - power : 提供3.3v 和5v的直流電源 - ground: 接地 - 也可以用 python 等程式控制 #### 設定啟用 Uart 1. 掛載 SD Card 2. 打開 `boot` 找到 `config.txt` 3. 在 `config.txt` 在最底下新增 ``` # Enable uart enable_uart=1 ``` :::info ### UART - 通用非同步收發傳輸器 ( Universal Asynchronous Receiver/Transmitter ) - 用 FIFO (first in first out) 來進行串列輸入輸出 - 可以設定要不要加驗證碼、傳輸速度等 ### TTL - Transistor-Transistor Logic - 5V 代表 1 , 0V 代表 0 - 符合這種要求的就是 TTL 準位 - 比較先進的 CPU、記憶體都是 1V 上下的訊號準位 - ttl to USB線 - 紅:5V (電源,樹梅派不用接) - 黑:0V (接地) - 白:TX(輸出) - 綠:RX(輸入) :::
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up