万本电子书0元读

万本电子书0元读

顶部广告

Raspberry Pi Home Automation with Arduino电子书

售       价:¥

75人正在读 | 1人评论 9.8

作       者:Andrew K. Dennis

出  版  社:Packt Publishing

出版时间:2013-02-05

字       数:137.2万

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

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
"Raspberry Pi Home Automation with Arduino" is an easy-to-follow yet comprehensive guide for automating your home using the revolutionary ARM GNU/Linux board. Even if you have no prior experience with the Raspberry Pi or home automation you can pick up this book and develop these amazing projects. Full of detailed step-by-step instructions, diagrams, and images this essential guide allows you to revolutionize the way you interact with your home. If you don’t know where to start, then this is the perfect book for you.
目录展开

Raspberry Pi Home Automation with Arduino

Table of Contents

Raspberry Pi Home Automation with Arduino

Credits

About the Author

Acknowledgement

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

1. An Introduction to the Raspberry Pi, Arduino, and Home Automation

What we will explore in this book

History and background of the Raspberry Pi

Raspberry Pi hardware specifications

Dimensions

3.5mm analog audio jack

Composite RCA port

Two USB 2.0 ports plus one micro USB

HDMI port

SD card port

256 MB/512 MB SDRAM shared with GPU

CPU

GPU

Ethernet port

GPIO pins

History and background of Arduino

Raspberry Pi to Arduino shield connection bridge

Shield specifications

XBee socket

Power source selector

UART

Digital GPIO pins

Serial Peripheral Interface (SPI) pins

In Circuit Serial Programmer (ICSP) connector

Power pins

Analog inputs

Raspberry Pi GPIO connector

Soldering

Writing software for the Arduino

What home automation is

A history of home automation

X10 – a standard is born

The dot.com boom and open source – a new set of technologies

Commercial products

Arrival of the Raspberry Pi

Summary

2. Getting Started Part 1 – Setting up Your Raspberry Pi

The SD card – our Raspberry Pi's storage device

Pre-installed SD card versus a blank one

Setting up the SD card

Formatting our card

Formatting instructions for Windows 7

Formatting instructions for Mac OS X

Formatting instructions for Linux

BerryBoot – our tool for installing an operating system

Downloading the BerryBoot zip

Windows

Mac

Linux

Hooking up the Raspberry Pi

Downloading the right operating system

Installing Raspbian

Installation complete

Windows users

Mac and Linux users

Summary

3. Getting Started Part 2 – Setting up Your Raspberry Pi to Arduino Bridge Shield

Raspberry Pi to Arduino bridge shield

Checking which version of the Raspberry Pi we have

Setting up the Raspberry Pi to Arduino shield and LED

Installing the software

The Arduino IDE

A quick look at the language

arduPi – a library for our Raspberry Pi and Arduino shield

Installing arduPi

Leafpad – a text editor

Blinking LED application

A guide to the code

Compiling and running our application

Summary

4. Our First Project – A Basic Thermometer

Building a thermometer

Setting up our hardware

An introduction to resistors

Thermistor

10K Ohm resistor

Wires

Breadboard

Connecting our components

Sanity check

Software for our thermometer

Geany IDE

Installing the IDE

An introduction to Makefiles

Thermometer code

Writing our application

Compiling and testing

What if it doesn't work

Up and running

Summary

5. From Thermometer to Thermostat – Building upon Our First Project

Safety first

Introducing the thermostat

Setting up our hardware

Relays

Connecting the relay

Setting up our software

A program to test the relay

Installing screen

cURL

Thermostat code

Testing our thermostat and fan

Attaching the fan

Starting your thermostat application

Debugging problems

Summary

6. Temperature Storage – Setting up a Database to Store Your Results

SQLite

Installing SQLite Version 3.x

Creating a database

A table to record our temperature

A table to record our rooms

Writing some SQL

Apache web server

Setting up a basic web server

WSGI

Setting up WSGI

Creating a Python application to write to our database

Conclusion

HTSQL

Download HTSQL

Configuring HTSQL

Testing our Arduino shield with our database

Summary

7. Curtain Automation – Open and Close the Curtains Based on the Ambient Light

Photoresistors

Motor shield and motors

Setting up the photoresistor

Wiring up the components

Testing the photoresistor with software

Debug

Setting up the motor shield

Wiring up the components

Curtain control application

Pulse Width Modulation

Threads

Writing our code

Debugging problems

Connecting to your blinds/curtains

Setting the timing

Attaching the hardware

Debugging problems

Summary

8. Wrapping up

A brief review of what we have learned

Next steps

Prototyping Pi Plate

The wiringPi library

The Gertboard

Introduction to the Gertboard components

GPIO PCB expansion board

GPIO Pins

Motor controller

Open collector driver

Buffered I/O

Atmel ATmeg chip microcontroller

Convertors – analog to digital and digital to analog

Writing software for the Gertboard

Ideas for next step projects

Expanding the curtain automation tool to include temperature sensing

Changing the motor on the curtain automation project to a stepper motor

Switching lights on with a photoresistor

Holiday lights from LEDs

The future of home automation

3D printing

RFID chips

EEG headsets

Summary

A. References

Raspberry Pi

Raspberry Pi to Arduino bridge shield

Linux

Python

C/C++

Arduino

SQL

HTSQL

Apache

Electronics

Packt Publishing titles

Home automation technology

3D printing

EEG headsets

Miscellaneous resources

Index

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部