更新时间:2021-04-02 20:31:54
coverpage
Internet of Things Programming with JavaScript
Credits
About the Author
www.packtpub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Getting Started with Raspberry Pi Zero
Setting up Raspberry Pi Zero
Connecting to the home network and accessing remotely
How to install the wireless tools
Testing the communication
Updating the package repository
Remote Desktop
Configuring a web server
Testing the PHP installation
Summary
Chapter 2. Connecting Things to the Raspberry Pi Zero
Connectting digital input - sensor DS18B20
Configuring the one-wire protocol
Connecting analog inputs using an MCP3008 ADC Converter
Raspberry Pi GPIO header
Connecting an RTC
DS3231 module setup
Testing the RTC
I2C device setup
Putting the real-time clock to final test
Chapter 3. Connecting Sensors - Measure the Real Things
Measuring flow sensor to calculate the volume of water
Reading and counting pulses with Arduino
Calculating water flow rate based on the pulses counted
Calculating flow and volume of water:
Measuring the concentration of gas
Measuring the level of alcohol with a sensor
Detecting fire with a sensor
Measuring the humidity for plants
Measuring the level of water in a recipient
Measuring temperature humidity and light and displaying data on an LCD
Detecting motion with a PIR sensor
Detecting if the door is open with a reed switch
Detecting who can get in the house with a fingerprint sensor
Chapter 4. Control-Connected Devices
Making a simple web server with Node.js
Controlling a relay from a Raspberry Pi Zero using Restful API and Node.js
Controlling the relay using aREST commands from a web browser
Configuring Node.js on a computer as a web server
Monitoring temperature humidity and light using Node.js with Arduino Wi-Fi
Monitoring temperature humidity and light using Node.js with Arduino Ethernet
Chapter 5. Adding a Webcam to Monitor Your Security System
Interaction between Arduino and Raspberry Pi
Arduino interface in Raspian
Controlling an output connected to Arduino from Raspberry Pi Zero
Controlling the Arduino board from Python
Connecting a TTL serial camera to Arduino and saving pictures to a micro SD
Detecting motion with the serial TTL camera
Controlling a snapshot from Raspberry Pi
Controlling your camera from a web page
Monitoring your USB camera for security in a network
Chapter 6. Building a Web Monitor and Controlling Devices from a Dashboard
Configuring MySQL database server
Installing PhpMyAdmin for administrating databases
Datalogger with MySQL
Data queries from the database
Controlling and dimming a LED
Controlling the speed of a DC motor
Controlling Lights with electrical circuits
Other appliances
Remote access from anywhere to your Raspberry Pi Zero
Controlling lights and measuring current consumption
Controlling and monitoring Arduino Wi-Fi and Ethernet shields on connected devices and sensors
Chapter 7. Building a Spy Police with the Internet of Things Dashboard
Spy microphone that detects noise
Regulating the current of an AC lamp dimmer
Controlling access with an RFID card
Detecting smoke
Building an alarm system using the Raspberry Pi Zero
Monitoring the climate from a remote dashboard
Chapter 8. Monitoring and Controlling Your Devices from a Smart Phone
Controlling a relay from a smart phone using APP Inventor
Creating our first application
Reading JSON response in Android Studio using ethernet shield
Android application
Controlling a DC motor using an Android Application
Controlling outputs from android using your Raspberry Pi Zero
Controlling outputs with Raspberry Pi via Bluetooth
Chapter 9. Putting It All Together