GettingStartedwithArduino - (EPUB全文下载)

文件大小:2.95 mb。
文件格式:epub 格式。
书籍内容:

Getting Started with Arduino
Table of Contents
Special Upgrade Offer
A Note Regarding Supplemental Files
Preface
Acknowledgments
How to Contact Us
1. Introduction
Intended Audience
What Is Physical Computing?
2. The Arduino Way
Prototyping
Tinkering
Patching
Circuit Bending
Keyboard Hacks
We Love Junk!
Hacking Toys
Collaboration
3. The Arduino Platform
The Arduino Hardware
The Software (IDE)
Installing Arduino on Your Computer
Installing Drivers: Macintosh
Installing Drivers: Windows
Port Identification: Macintosh
Port Identification: Windows
4. Really Getting Started with Arduino
Anatomy of an Interactive Device
Sensors and Actuators
Blinking an LED
Pass Me the Parmesan
Arduino Is Not for Quitters
Real Tinkerers Write Comments
The Code, Step by Step
What We Will Be Building
What Is Electricity?
Using a Pushbutton to Control the LED
How Does This Work?
One Circuit, A Thousand Behaviours
5. Advanced Input and Output
Trying Out Other On/Off Sensors
Controlling Light with PWM
Use a Light Sensor Instead of the Pushbutton
Analog Input
Try Other Analogue Sensors
Serial Communication
Driving Bigger Loads (Motors, Lamps, and the Like)
Complex Sensors
6. Talking to the Cloud
Planning
Coding
Assembling the Circuit
Here’s How to Assemble It
7. Troubleshooting
Testing the Board
Testing Your Breadboarded Circuit
Isolating Problems
Problems with the IDE
How to Get Help Online
A. The Breadboard
B. Reading Resistors and Capacitors
C. Arduino Quick Reference
Structure
Special Symbols
; (semicolon)
{} (curly braces)
Comments
Constants
Variables
boolean
char
byte
int
unsigned int
long
unsigned long
float
double
string
array
Control Structures
if … else
for
switch case
while
do … while
break
continue
return
Arithmetic and Formulas
Comparison Operators
Boolean Operators
Compound Operators
increment and decrement (–– and ++)
+= , –=, *= and /=
Input and Output Functions
pinMode(pin, mode)
digitalWrite(pin, value)
int digitalRead(pin)
int analogRead(pin)
analogWrite(pin, value)
shiftOut(dataPin, clockPin, bitOrder, value)
unsigned long pulseIn(pin, value)
Time Functions
unsigned long millis()
delay(ms)
delayMicroseconds(us)
Math Functions
min(x, y)
max(x, y)
abs(x)
constrain(x, a, b)
map(value, fromLow, fromHigh, toLow, toHigh)
double pow(base, exponent)
double sqrt(x)
double sin(rad)
double cos(rad)
double tan(rad)
Random Number Functions
randomSeed(seed)
long random(max) long random(min, max)
Serial Communication
Serial.begin(speed)
Serial.print(data) Serial.print(data, encodi ............

书籍插图:
书籍《GettingStartedwithArduino》 - 插图1
书籍《GettingStartedwithArduino》 - 插图2

以上为书籍内容预览,如需阅读全文内容请下载EPUB源文件,祝您阅读愉快。

版权声明:书云(openelib.org)是世界上最大的在线非盈利图书馆之一,致力于让每个人都能便捷地了解我们的文明。我们尊重著作者的知识产权,如您认为书云侵犯了您的合法权益,请参考版权保护声明,通过邮件openelib@outlook.com联系我们,我们将及时处理您的合理请求。 数研咨询 流芳阁 研报之家 AI应用导航 研报之家
书云 Open E-Library » GettingStartedwithArduino - (EPUB全文下载)