万本电子书0元读

万本电子书0元读

顶部广告

Arduino Essentials电子书

售       价:¥

11人正在读 | 0人评论 9.8

作       者:Francis Perea

出  版  社:Packt Publishing

出版时间:2015-02-24

字       数:115.1万

所属分类: 进口书 > 外文原版书 > 科技/医学

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
If you are a hobbyist who wants to develop projects based on Arduino as the main microcontroller platform or an engineer interested in finding out what the Arduino platform offers, then this book is ideal for you. Some prior knowledge of the C programming language is required.
目录展开

Arduino Essentials

Table of Contents

Arduino Essentials

Credits

About the Author

About the Reviewer

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

Disclaimer

1. Meeting the Arduino Family

A game changer

Common features

Arduino Uno

Arduino Mega 2560

Arduino Ethernet

LilyPad Arduino

Arduino Yún

Arduino Mini, Micro, and Nano

Other Arduino family members

Esplora

Arduino Robot

Arduino Due

Unofficial boards

Shields

Just one to rule them all

Users teaching users

Summary

2. The Arduino Development Environment

A multiplatform tool

Downloading the package

Windows

Mac OS X

Linux

Source code

Installing the software

Windows

Mac OS X

Linux

In case of trouble

Installing the drivers

Windows

Mac OS X

Linux

Running the Arduino development environment for the first time

The toolbar

The code editor

The message area

Preflight checks

Uploading our first sketch

Main menus and commands

The Arduino language

Summary

3. Interacting with the Environment the Digital Way

Digital versus analog signals

Our first circuit

Using a breadboard

The LED circuit

Circuit schematic

Breadboard connections diagram

Asymmetric blinking code

C language syntax considerations

Troubleshooting faults in the circuit

Dealing with multiple outputs

Current limit per pin

Summary

4. Controlling Outputs Softly with Analog Outputs

Dealing with analog signals

The analog output circuit

Connections diagram

Analog control through code

The analogWrite() function

The for loop

Complete the fading LED code

Motor control with a transistor

Motor driver

Power source considerations

The complete circuit

Connections diagram

Motor varying speed code

The assembled circuit

Bigger power motors

Summary

5. Sensing the Real World through Digital Inputs

Sensing by using inputs

Connecting a button as a digital input

The momentary push button

Complete circuit schematic

Breadboard connections diagram

Writing code to react to a press

Configuring and reading a digital input

Taking decisions with conditional bifurcations

Timing and debouncing

Other types of digital sensors

Using an optocoupler as a coin detector

The schematic of the coin detector

The breadboard connections diagram

The complete example code

A real working project

Summary

6. Analog Inputs to Feel Between All and Nothing

Sensing analog values

The Arduino map function

An ambient light meter

Connecting a variable resistor to Arduino

Voltage divider

An ambient light meter circuit

Breadboard connections

Programming to sense the light

An ambient light meter code

The switch / case control structure

Calibrating the sensor

DC motor speed control revisited

The potentiometer

The motor speed control schematic

The breadboard connections diagram

A simple code to control the motor speed

Summary

7. Managing the Time Domain

Time control functions

Stopping versus accounting

Making some noise

Arduino library sound functions

Sound hardware connection

Direct connection

Connection through a transistor

A simple timer

Dividing your sketch into different files

Coding a timer by using delays

Coding without delays and blinking an LED while waiting

A bigger project – a metronome

The metronome circuit

The metronome code

Summary

8. Communicating with Others

Serial communications concepts

The baud rate

Other types of serial communication

Calibrating sensors serially

Sending data to Arduino

A computer connected dial thermometer

The thermometer circuit

The code for the thermometer

Summary

9. Dealing with Interrupts

The concept of an interruption

The ISR

The tachograph project

Mechanical considerations

A simple interrupt tester

Our first interrupt and its ISR

A dial tachograph

Breadboard connections diagram

The complete tachograph code

Modular development

Summary

10. Arduino in a Real Case – Greenhouse Control

A greenhouse controller

The controller requirements

Modular design

Temperature control

Humidity control

Lighting control

Manual alarm

Input and output devices

The relay as a mediator

The greenhouse controller circuit

Breadboard connections diagram

The greenhouse controller code

Libraries and constant definitions

Global variables

The interrupt ISR

The alarm routine

Initialization and board configuration

The main execution loop

Temperature subsystem

Humidity subsystem

Lighting subsystem

Alarm subsystem

Serial feedback and calibration

The complete project code

Final considerations

Summary

Index

累计评论(0条) 1个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部