LCD 顯示器無法正常運作
如果你的 LCD 顯示器只會亮起來, 卻沒有正常顯示文字, 請依照以下步驟檢查排除問題。
檢查接線
由於 LCD 顯示器採用 I2C 通訊, 若是接線錯誤, 就無法正常運作, 請確認以下接線:
- LCD 顯示器上的 SDA 接到 UNO 控制板上的 A4。
- LCD 顯示器上的 SCL 接到 UNO 控制板上的 A5。
確認 I2C 位址
由於市售的 LCD 顯示器有兩種位址, 分別是 0x27 與 0x3F, 程式中若指定的位址錯誤也無法正常運作:
-
請在 FlagsBlock 中選取功能表中的『在 Arduino IDE 開啟程式碼』
Image Not Showing
Possible Reasons
- 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 →
-
確認開發板是 Arduino UNO、序列埠是您現在 UNO 控制板連接的序列埠:
Image Not Showing
Possible Reasons
- 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 →
-
開啟『檔案/範例/Wire/i2c_scanner』:
Image Not Showing
Possible Reasons
- 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 →
-
按左上角上傳鈕後等待程式上傳完畢, 可在左下角訊息區看到『上傳完畢』字樣:
Image Not Showing
Possible Reasons
- 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 →
再按右上角放大鏡圖示按鈕開啟序列埠監控視窗。
-
確認傳輸速率是 9600bps, 即可在視窗內看到裝置的 I2C 位址:
Image Not Showing
Possible Reasons
- 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 →
如果無法看到找到位址的資訊, 請回頭確認是否接線有誤?若是確認接線都正確, 就有可能是硬體故障。
確認後即可關閉序列埠監控視窗以及Arduino IDE視窗。
修改程式重新上傳
-
根據剛剛查到的位址修改程式:
Image Not Showing
Possible Reasons
- 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 →
-
重新上傳程式執行, 應該就可以正常運作。
調整對比
如果以上都可順利進行, 但還是看不到文字, 可以用十字起子旋轉模組背後的藍色旋鈕調整對比度, 應該就可以看到文字了。
有關旗標科技的創客產品, 都可以到臉書粉專私訊提問。