Skip to Content
Node.js物聯網裝置開發
book

Node.js物聯網裝置開發

by Patrick Mulder, Kelsey Breseman
August 2017
Intermediate to advanced
272 pages
5h 32m
Chinese
GoTop Information, Inc.
Content preview from Node.js物聯網裝置開發
100
|
第七章 製作原型需要的零件
如何與之溝通
例如使用何種傳輸協定
較為簡單的零件,可能只會輸出數位訊號或類比電壓,其他零件則可能採用 PWM
若是擁有微控制器的零件模組,則規格書應會詳細註明使用何種傳輸協定,如 I2C
SPI
腳位功能
腳位功能秀出該如何連接方能運作,並指出各個腳位的作用(如電源、傳輸腳位)。
被動式零件
為了調整電壓或訊號形狀,我們需要各種「被動式」電子零件,其中簡單的例子之一是
陶瓷電阻,由陶瓷和電線組合而成的物理靜態零件。再舉兩個更為進階的例子,如按壓
開關和可變電阻。
可變電阻(電位器)通常用來調整電壓、調整到某特定準位,例如使用可變電阻來調整
音量、或是 LCD 顯示器的亮度。另外可用來「模擬」感測器,雖僅是簡單形式但非常
便利。感測器通常會輸出變動的電壓,而旋轉可變電阻的旋鈕,也可製造出類似的效
果,由所連接的類比腳位讀取,但比起使用感測器時所需設置的環境,更為簡便。
除了提供參考電壓,電阻和可變電阻也可用來保護主動式電子零件,如 LED,保護不會
因大電流而燒毀。
如圖 7-10 所示,SparkFun 公司以 Eagle 裝置程式庫的形式,提供了豐富的被動式與機
電式零件。裝置程式庫可輔助我們在 PCB 設計專案中,妥善地管理各個零件;SparkFun
釋出的裝置程式庫,內建提供了許多好用的零件,包括機電裝置,如按壓式開關和精密
可變電阻。
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

金融人工智能:用Python实现AI量化交易

金融人工智能:用Python实现AI量化交易

Yves Hilpisch
快学熟用D3

快学熟用D3

Philipp K. Janert

Publisher Resources

ISBN: 9789864764594