---
# System prepended metadata

title: 投幣機+mp3PLAYER
tags: [hackpad]

---

---
title: "投幣機+mp3PLAYER"
tags: hackpad
---

# 投幣機+mp3PLAYER

> [點此觀看原始內容](https://openlabtaipei.hackpad.tw/seMtVQ3KMvs)

投幣機+mp3PLAYER


### 程式碼+libs

libs需放到arduino資料夾底下

投入5枚硬幣啟動音樂與LED
音樂開始後10s音量漸弱
30s後再投入第一枚硬幣時音量驟降
第五枚硬幣時重新啟動音樂
[https://github.com/asilyihong/OpenlabTaipei.CoinCounter](https://github.com/asilyihong/OpenlabTaipei.CoinCounter)


### mp3PLAYER+Arduino



![](https://s3-ap-northeast-1.amazonaws.com/hackmd-public/uploads/8c08d4fc-dfd4-4574-adbb-65236a5d977c)

![](https://s3-ap-northeast-1.amazonaws.com/hackmd-public/uploads/87a330e7-ed27-4f09-8d4a-650ba593e42d)

### 成功影片

[https://instagram.com/p/7xw4\_PNpjk/?fb\_action\_ids=10153191357286375&fb\_action\_types=instapp%3Atake&fb\_ref=ogexp&fb\_source=other\_multiline&action\_object\_map=%5B910933742288153%5D&action\_type\_map=%5B%22instapp%3Atake%22%5D&action\_ref\_map=%5B%22ogexp%22%5D](https://instagram.com/p/7xw4_PNpjk/?fb_action_ids=10153191357286375&fb_action_types=instapp%3Atake&fb_ref=ogexp&fb_source=other_multiline&action_object_map=%5B910933742288153%5D&action_type_map=%5B%22instapp%3Atake%22%5D&action_ref_map=%5B%22ogexp%22%5D)

https://www.youtube.com/watch?v=4Oq40hFiO7s&ab_channel=%E7%A1%AC%E6%A0%B8%E6%8B%86%E8%A7%A3
投幣機原理