万本电子书0元读

万本电子书0元读

顶部广告

Arduino Development Cookbook电子书

售       价:¥

12人正在读 | 0人评论 9.8

作       者:Cornel Amariei

出  版  社:Packt Publishing

出版时间:2015-04-23

字       数:189.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
If you want to build programming and electronics projects that interact with the environment, this book will offer you dozens of recipes to guide you through all the major applications of the Arduino platform. It is intended for programming or electronics enthusiasts who want to combine the best of both worlds to build interactive projects.
目录展开

Arduino Development Cookbook

Table of Contents

Arduino Development Cookbook

Credits

About the Author

About the Reviewers

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

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Power on – Arduino Basics

Introduction

Downloading the Arduino software

Getting ready

How to do it…

There's more

See also

Connecting Arduino

Getting ready

How to do it…

Mac OS X

Windows

See also

Uploading code to Arduino

Getting ready

How to do it…

How it works…

Learning Arduino code basics

Getting ready

How to do it…

How it works…

See also

Code basics – Arduino C

Getting ready

How to do it…

How it works…

See also

Code basics – Arduino pins

Getting ready

How to do it…

How it works…

2. Blinking LEDs

Introduction

Blinking LED without delay()

Getting ready

How to do it…

How it works…

Breaking down the code

See also

Connecting an external LED

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

LED resistor

Multiple LEDs

See also

Fading the external LED

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

See also

RGB LED

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

Common anode (+) or common cathode (-)

Without PWM

LED bar graph

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

Common anode (+) and common cathode (-)

Bar graph variations

See also

The 7-segment display

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

Common anode (+) and common cathode (-)

The dot

Variations

3. Working with Buttons

Introduction

Connecting a button

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

Pull-up configuration

Multiple buttons

See also

Button with no resistor

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

Multiple buttons

See also

The toggle switch

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

See also

Button to serial

Getting ready

How to do it…

Code

How it works…

Code breakdown

There's more…

Button debouncing

Getting ready

How to do it…

Code

How it works…

Code breakdown

See also

1,000 buttons to 1 pin

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

More buttons

Finding each button

Pressing multiple buttons

See also

Button multiplexing

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

More buttons

See also

4. Sensors

Introduction

Simple sensor – potentiometer

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

Arduino Due

Analog reference (AREF)

See also

Temperature sensor

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

Detecting motion – PIR sensor

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

Measuring distance – infrared and ultrasonic

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

See also

Noise reduction

Getting ready

How to do it…

Code

How it works…

Mean filter

Median filter

Main loop()

See also

Accelerometer

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

See also

Localization – GPS

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

See also

5. Motor Control

Introduction

Controlling small motors

Getting ready

How to do it…

Schematic

Code

How it works…

There's more…

Multiple motors

Electrical spikes

See also

Controlling motors with transistors

Getting ready

How to do it…

Schematic

Code

How it works…

There's more…

Pull-down resistor

PNP transistors

MOSFETs

Different loads

See also

Controlling speed with PWM

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

Spinning motors both ways

Getting ready

How to do it…

Code

How it works…

Code breakdown

There's more…

Control using the direction pin, PWM pin, and brake pin

Control using Input A, Input B, and PWM

Custom-made L293D driver

See also

Servo motor

Getting ready

How to do it…

Code

How it works…

Code breakdown

There's more…

Controlling the exact pulse time

More servos

Continuous rotation servos

See also

Stepper motor

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

Transistor unipolar stepper driver

Identifying the stepper motor type

See also

Bipolar stepper motors

Getting ready

How to do it…

Code

How it works…

Code breakdown

There's more…

Brushless motors

Getting ready

How to do it…

Code

How it works…

Code breakdown

See also

6. More Output Devices

Introduction

Creating sound

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

Tone with no duration

Tone on multiple pins

See also

Transistor driver

Getting ready

How to do it…

Schematic

Code

How it works…

See also

Relay driver

Getting ready

How to do it…

Schematic

Code

How it works…

Optocouplers/Optoisolators

Getting ready

How to do it…

Schematic

Code

How it works…

More outputs – shift registers

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

7. Digital Communication with Arduino

Introduction

Serial output

Getting ready

How to do it…

How it works…

Code breakdown

See also

Controlling the Arduino over serial

Getting ready

How to do it…

How it works…

There's more…

Arduino Mega

Transmitting values to Arduino

See also

Software serial and UART between Arduinos

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

Usable pins

More software serial connections

Interference

General connection tips

See also

Wireless serial

Getting ready

How to do it…

Schematic

How it works…

There's more…

See also

I2C between Arduinos

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

Comparing different Arduino categories

More about I2C

Connecting more devices

See also

SD cards

Getting ready

How to do it…

Code

How it works…

Code breakdown

There's more…

LCD character displays

Getting ready

How to do it…

Code

How it works…

Code breakdown

There's more…

Ethernet

Getting ready

How to do it…

Code

How to test

How it works…

Code breakdown

There's more…

See also

8. Hacking

Introduction

More digital pins

Getting ready

How to do it…

How it works…

Faster PWM

Getting ready

How to do it…

How it works…

Timer 0

Timer 1

Timer 2

There's more…

Interference

Other Arduinos

See also

Storing data internally – EEPROM

Getting ready

How to do it…

How it works…

Code breakdown

Timing Arduino code

Getting ready

How to do it…

How it works…

External interrupts

Getting ready

How to do it…

Schematic

Code

How it works…

Code breakdown

There's more…

Interrupts on various Arduinos

About interrupt-attached functions

Different triggering modes

Detaching an interrupt

A. Electronics – the Basics

Working of electric current

Ohm's law

Resistor configurations

Diodes and LEDs

Diodes

LEDs

Working with breadboards

Index

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部