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 自造手冊:新工業革命實務指南
第 17 章 擴充 Arduino
166
圖 17-2
電熱感測器的接法
在感測器隨附的說明文件中,通常可找
到如何將 Arduino 讀取數值轉換為您所
需數量級的相關資訊。
光敏電阻
有些材質會對光有所反應,亮度改變時,
會影響它們的電阻值。
圖 17-3
中的這些
材質即可用作光敏電阻—亮度改變時,
小碟的電阻值會跟著改變。
圖 17-3
光敏電阻
光敏電阻的電路配置(
圖 17-4
)與電熱
調節器的電路相同。許多其他的類比元
件也都是用一樣的電路配置。基本上,
電壓分壓器中有一個光敏電阻,您需要
與 這 個 光 敏 電 阻 符 合 的 電 阻。 若 光 敏
電阻的最大電阻值為 10K,就需要一個
10K 的電阻。
圖 17-4
光敏電阻的電路配置與電熱調節器相同
不管是光敏電阻還是電熱調節器,您都
會用 到 analogRead 指令,如
第 157 頁 的
「超越數位」
所述。
其他種類的感測器
其他會隨壓力、彎度、溼度而改變其電
阻值的材質,它們也都可以作為感測器。
還有一些更複雜的感測器,可以測知特
定氣體、地球磁場、物體的加速度以及
其他現象(
圖 17-5
)。基本上,大概任何
事物都能用感測器來偵測,還可以應用
一些其他的裝備,像收音機、相機等。
舉例來說,網路攝影機搭配特定的應用
程式,可以用來感測顏色、形狀、人等
等(不過,您可能需要準備 Raspberry Pi
或電腦。)
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