arduino-lesson-17-email-sending-movement-detector.pdf

(1071 KB) Pobierz
Arduino Lesson 17. Email Sending Movement Detector
Created by Simon Monk
Guide Contents
Guide Contents
Overview
Parts
Part
Qty
2
3
4
4
4
Breadboard Layout
Arduino Code
Installing Python and PySerial
Install Python on Windows
Install PySerial
6
7
9
9
10
Python Code
Other Things to Do
12
15
© Adafruit Industries
http://learn.adafruit.com/arduino-lesson-17-email-sending-movement-
detector
Page 2 of 15
Overview
In this lesson you will learn how to use a PIR movement detector with an Arduino and to have
the Arduino communicate with a Python program running on your computer to send an email
whenever movement is detected by the sensor.
© Adafruit Industries
http://learn.adafruit.com/arduino-lesson-17-email-sending-movement-
detector
Page 3 of 15
Parts
To build the project described in this lesson, you will need the following parts.
You will also need a computer with an Internet connection (so you can send email thru it)!
Part
Qty
PIR Sensor
1
Arduino Uno R3
1
© Adafruit Industries
http://learn.adafruit.com/arduino-lesson-17-email-sending-movement-
detector
Page 4 of 15
Half-sized Breadboard
1
Jumper wire pack
© Adafruit Industries
http://learn.adafruit.com/arduino-lesson-17-email-sending-movement-
detector
Page 5 of 15
Zgłoś jeśli naruszono regulamin