---
# System prepended metadata

title: '[En-Huei''s Repository：Prototype Practice] Week10：'

---

# [En-Huei's Repository：Prototype Practice] Week10：
:::info
:bulb: This is the root page of En-Huei's course-taking in NTU Prototype Practice (NTU DS 5202), greetings！
:::  
> [course website](https://hackmd.io/@accomdemy/HJHny1ntn?fbclid=IwAR0uB-EyVc-1P7buX-8dc_FPLLvMqglfE-qAjTh3q4i-RIW5vW0n7rBrH4w)  
> [course slides](https://drive.google.com/drive/folders/1-cq5PQdRCdqZnpHY3pbeYFGUYU-AKXeT?usp=drive_link)

[TOC]  
* Cross Week HyperLinks：
    * [Week1](https://hackmd.io/AvKCP5bcQO6sEwtX7-rTUQ?both#En-Huei%E2%80%99s-Repository%EF%BC%9APrototype-Practice-Week1%EF%BC%9AIntroduction)
    * [Week2](https://hackmd.io/@HCI-Lab/HJxzcTHCn)
    * [Week3](https://hackmd.io/@HCI-Lab/SyzdcpBCn)
    * [Week4](https://hackmd.io/@HCI-Lab/rkFNi6rR2)
    * [Week5](https://hackmd.io/@HCI-Lab/r1hBoarRn)
    * [Week6](https://hackmd.io/@HCI-Lab/HyaLjTHAh)
    * [Week7](https://hackmd.io/@HCI-Lab/BJCvoaHC3)
    * [Week8](https://hackmd.io/@HCI-Lab/H12OsTrA3)
    * [Week9](https://hackmd.io/@HCI-Lab/BkTYopSAh)
    * [Week10](https://hackmd.io/@HCI-Lab/BkysjTS03)
    * [Week11](https://hackmd.io/@HCI-Lab/HklnsarAn)
    * [Week12](https://hackmd.io/@HCI-Lab/HJ6hsaBAn)
    * [Week13](https://hackmd.io/@HCI-Lab/r1jpiTrAh)
    * [Week14](https://hackmd.io/@HCI-Lab/Sk2CjaHR2)
    * [Week15](https://hackmd.io/@HCI-Lab/SJsynTHA3)
    * [Week16](https://hackmd.io/@HCI-Lab/ByiLh6S0n)

## :pencil:Notes：

- 上週上課結束後隔一天確定好要用的部件就下了單，包括螢幕、SD卡模組、音量感測器，結果到貨後才發現忘記在蝦皮購物車的備註寫說要統編了嗚嗚。![](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6fe662de-cd0d-4c9d-9b35-7eea0ade7a51%2Fc3dd94aa-217c-4544-8376-2609ce2a4625%2F2023_11_11_22_07_Office_Lens_(2).jpg?table=block&id=f3c79da6-003d-4a14-b21e-52fa5081c9dc&spaceId=6fe662de-cd0d-4c9d-9b35-7eea0ade7a51&width=2000&userId=1b99bc9b-cd7e-44d1-b2bb-e645f450f574&cache=v2)
- 喇叭與MP3 Player則是跟老師庫存借的![](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6fe662de-cd0d-4c9d-9b35-7eea0ade7a51%2F10628b36-13e7-4421-94f7-2d68edb80bf3%2F2023_11_13_00_31_Office_Lens.jpg?table=block&id=39f9ef9b-f21b-4216-98c8-62c35888092b&spaceId=6fe662de-cd0d-4c9d-9b35-7eea0ade7a51&width=2000&userId=1b99bc9b-cd7e-44d1-b2bb-e645f450f574&cache=v2)

## :mountain: Unit Tests：

- 依據之前的規劃，開始進行Arduino和各項元件的運作測試，確保我們購買的部件可以正常應付期末需求。整體最終目標Arduino需要串接的部件大概有：![](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6fe662de-cd0d-4c9d-9b35-7eea0ade7a51%2F7b1e69e9-7227-4b45-80e4-f574c53abfbc%2FIO.png?table=block&id=e9350f74-15e0-4ecb-804d-1432de10ca6e&spaceId=6fe662de-cd0d-4c9d-9b35-7eea0ade7a51&width=2000&userId=1b99bc9b-cd7e-44d1-b2bb-e645f450f574&cache=v2)
- 先從最簡單的音量感測器開始。接線圖大概是以下這樣：![](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6fe662de-cd0d-4c9d-9b35-7eea0ade7a51%2F9de1ae91-cc7a-465d-9b1a-92b0ce29ea87%2FUntitled.png?table=block&id=f2a12c90-23b2-467b-9788-f693b829be6b&spaceId=6fe662de-cd0d-4c9d-9b35-7eea0ade7a51&width=2000&userId=1b99bc9b-cd7e-44d1-b2bb-e645f450f574&cache=v2)
- 非常意外的是接上去要燒測試程式時發現COM一直抓不到，UNO的燈插拔時會亮但之後就會暗掉，首先以為是Driver問題還去重裝了[CH340](https://sparks.gogo.co.nz/ch340.html)
- 發現還是不行接下來把線換掉、還是不行再把UNO板也換成我自己原本有的，持續交叉測試![](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6fe662de-cd0d-4c9d-9b35-7eea0ade7a51%2F4c74a707-21d8-4061-aad9-1c5daea062af%2F2023_11_13_00_52_Office_Lens.jpg?table=block&id=0383ab19-35b3-4139-9518-f408b14e451e&spaceId=6fe662de-cd0d-4c9d-9b35-7eea0ade7a51&width=2000&userId=1b99bc9b-cd7e-44d1-b2bb-e645f450f574&cache=v2)
- 最後還是不行，不經意摸到音量感測器的表面變的很高溫，忽然間我就懂了──是輸入電功率不足的問題！所以UNO板燈才會漸暗，但以前都是在接到高負載輸出元件時才會發生這樣電量不足的問題，沒想到小小一顆輸入元件也會這樣，看來它不是被動元件而是需要供電的主動元件，這樣期末的接線圖除了腳位分配外還要好好思考控制元件與輸出入元件的供電隔離分配了~
- 總之有收到音量感測器回傳的值，但之後等供電問題解決後還要確認可以感測的範圍![](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6fe662de-cd0d-4c9d-9b35-7eea0ade7a51%2Fef102f90-9b0f-4165-ad54-fa352283cfbb%2FUntitled.png?table=block&id=3730b865-3292-43e3-9bbf-089c1413272e&spaceId=6fe662de-cd0d-4c9d-9b35-7eea0ade7a51&width=2000&userId=1b99bc9b-cd7e-44d1-b2bb-e645f450f574&cache=v2)
- 腳位的分配問題：UNO板只有A0~ A5根Analog、D0~ D13根Digital，希望我們要用的元件們不要有通訊協定寫死的撞針問題。![](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F6fe662de-cd0d-4c9d-9b35-7eea0ade7a51%2F7a8ba301-28a9-44ef-a9f2-d006802ef045%2FUntitled.png?table=block&id=1a0d6143-4026-4f98-bc49-1ed21b393a1e&spaceId=6fe662de-cd0d-4c9d-9b35-7eea0ade7a51&width=2000&userId=1b99bc9b-cd7e-44d1-b2bb-e645f450f574&cache=v2)(目前看來D10、D11、D13撞到了，需要再研究那是不是被I2C通訊定死的腳位，如果是的話就麻煩ㄌ)
- 元件測試參考：[音量感測器](https://blog.jmaker.com.tw/arduino-sound/)、[TFT LCD](https://blog.jmaker.com.tw/arduino-st7735/)、[MP3 音訊輸出](https://thirtysec.pixnet.net/blog/post/223799714)、[MP3 Mini模組原始介紹](https://wiki.dfrobot.com.cn/_SKU_DFR0299_DFPlayer_Mini%E6%A8%A1%E5%9D%97)、[SD卡模組](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/sd-library/)

---
## :phone:Contact Informations：
> Feel free to reach me out for insteresting things~
:::spoiler :house: Location
> En-Huei Wu  
> HCI Lab, Department of Computer Science and Information Engineering (Dertian Hall)  
> Room. 336, No. 170, Sec. 2, Xinhai Road, Taipei, 10617 Taiwan (R.O.C)  
> National Taiwan University  
> No. 1, Sec. 4, Roosevelt Road, Taipei, 10617 Taiwan (R.O.C)
:::


- :mailbox: slime52ray@gmail.com (persona mailbox)
- :mailbox: r12922105@ntu.edu.tw (school mailbox)