Skip to Content
自造手冊:新工業革命實務指南
book

自造手冊:新工業革命實務指南

by Paolo Aliverti, Andrea Maietta
March 2017
Intermediate to advanced
232 pages
4h 44m
Chinese
GoTop Information, Inc.
Content preview from 自造手冊:新工業革命實務指南
初級草稿碼
151
您得寫 1000,而非 1,因為 1000 毫秒等
於 1 秒。也別忘了在指令最後加上分號。
若您想要延遲 2.5 秒,則程式碼為:
delay(2500);
編輯 Blink 草稿碼,修 改 延遲時間的長
短,然後驗證並上傳。您馬上就可以看
到 LED 燈閃爍的速率不一樣了。
抱歉,您剛剛說什麼?
您 已 經 知 道 如 何 叫 Arduino 執 行 動 作
了,雖然只是開關 LED 燈這麼簡單的動
作。現在,讓我們來教您如何使 LED 燈
在特定條件下開關,透過按鈕來控制開
關。怎麼做呢?就從組裝電路開始吧!
您 會 需 要 下 列 材 料( 以 下 所 有 材 料 除
了 Arduino Uno 以 外, 都 包 含 在 Maker
Shed 的 Mintronics Survival Pack 工具 包
中:
http://www.makershed.com/products/
mintronics-survival-pack
)!
• LED 燈 x1
• 220 歐姆電阻 x1
• 10k 歐姆(10K) 電阻 x1
• 開關
按鈕 x1
• 綜合跳線
• 小型麵包板 x1
首先,安裝 LED 燈。這次不用已經裝在
Arduino 板上的 LED 燈(
圖 16-3
),而用
外接的 LED 燈。安裝方法請見
圖 16-9
。
請 注 意,您 要 將 LED 燈接 在 麵 包 板 的
溝槽另一邊,因此需要將一條電線分別
從 GND 和腳位 13 接到麵包板上,另一
條線路則跨過溝槽連接 LED 燈的負極。
220 歐姆電阻跨過溝槽連接 LED 燈的正
極, 以 保 護 LED 燈和 Arduino, 以免功
率過高。若想複習電阻器相關資訊,請
見第 3 頁的「電阻」。
接下來,安裝按鈕。再裝上一個 10k 歐
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

優雅的SciPy|Python科學研究的美學

優雅的SciPy|Python科學研究的美學

Juan Nunez-Iglesias, Stéfan van der Walt, Harriet Dashnow
Presto实战

Presto实战

Matt Fuller, Manfred Moser, Martin Traverso

Publisher Resources

ISBN: 9789864763238