# IOT-Pi3-Alexa-Automation
I updated the code. It is working with Echo dot Gen 3 and Gen 2
Youtube tutorial https://www.youtube.com/watch?v=uS5dTx8vjq4
Use Raspberry Pi 3 as home automation device with Alexa. This project allows you to control multiple devices connected to Raspberry Pi 3 with voice command. You are able to control GPIO pins thus control GPIO connected devices.
Ported from original repos for python 3
https://github.com/toddmedema/echo
https://github.com/xtacocorex/CHIP_IO
## Instructions:
1. Download "RASPBIAN STRETCH WITH DESKTOP" and unzip "2017-04-10-raspbian-jessie.zip"
https://www.raspberrypi.org/downloads/raspbian/
1. Download "win32diskimager-1.0.0-install.exe" program from following URL
https://sourceforge.net/projects/win32diskimager/files/latest/download
1. Install "win32diskimager-1.0.0-install.exe"
1. Connect mini-sd card to a computer. In windows explorer right click your sd card drive letter and click on format menu.
In format window select "FAT" in "File System" list and click start. Wait for the task to complete.
![alt text](https://raw.githubusercontent.com/nassiramalik/IOT-Pi3-Alexa-Automation/master/images/formatsdcard.jpg)
1. Launch "win32diskimager" program. Select image file "2017-04-10-raspbian-jessie.img" and your sd card drive letter and click "Write"
(Wait for program to finish writing REAPBIAN image to the sd card)
![alt text](https://raw.githubusercontent.com/nassiramalik/IOT-Pi3-Alexa-Automation/master/images/win32diskimager.jpg)
1. Once image writing is completed, Copy "ssh" (ssh file is empty) and "wpa_supplicant.conf" files to root of the sd card. Open "wpa_supplicant.conf" in text editor and update ssid (wi-fi name) & password.
1. Insert the sd card into Raspberry Pi 3 and boot and wit for 10 seconds
1. In windows go to run & type "cmd" and type arp -a in command prompt. Look for "Physical Address" that starts with b8-27\* & note the Internet Address. This is your Raspberry Pi3 Wi-fi IP address on your network.
![alt text](https://raw.githubusercontent.com/nassiramalik/IOT-Pi3-Alexa-Automation/master/images/pi3ipaddress.jpg)
1. Download "Putty.exe" from following URL https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
1. Run "Putty.exe" and type IP address in host name field and click start button & click yes to popup. On putty command line type in "pi" for "Login as:" & enter. For password enter "raspberry" and hit enter. You should see "pi@raspberrypi:~ $" prompt.
![alt text](https://raw.githubusercontent.com/nassiramalik/IOT-Pi3-Alexa-Automation/master/images/puttypi3prompt.png)
1. Type "sudo raspi-config" and go to "Interfacing Options" and enable VNC. Reboot pi3 by typing this command "sudo reboot". You will loose ssh connection.
1. (Optional) download and install VNC client on youe pc https://www.realvnc.com/download/vnc/windows/. Connect VNC to Respberry Pi3 using IP address. Login with user name "pi" and password "raspberry". You should see Pi3 desktop.
![alt text](https://raw.githubusercontent.com/nassiramalik/IOT-Pi3-Alexa-Automation/master/images/pi3vnc.png)
1. Launch Pi ssh session with putty or localy through VNC and type following two commands Pi command prompt to update it. "sudo apt-get update" and "sudo apt-get upgrade" (This will take a while)
1. Download this github project as zip file with following command
"wget https://github.com/nassiramalik/IOT-Pi3-Alexa-Automation/archive/master.zip"
1. Unzip downloaded zip file with "unzip master.zip" command and type "cd IOT-Pi3-Alexa-Automation-master" command after unzip completes
1. (Optional) Entery "sudo pip install virtualenv" command to install virtualenv on Pi
1. (Optional) Enter "virtualenv ipaa-env" command to create virtual environment for your project
1. (Optional) Enter ". ipaa-env/bin/activate" command to activate your project's virtualen vironment
1. Enter "sudo python3 RPi_name_port_gpio.py" command to run Pi IOT program
1. Give voice command to Alex to discover devices "Alexa discover devices" it will search your network and discover your Raspberry Pi 3 as an IOT device.
1. Give a voice command to Alexa "Turn on the office" you should hear a relay clicking sound and led turn on
1. Give a voice command to Alexa "Turn off the office" you should hear a relay clicking sound and led should turn off
没有合适的资源?快使用搜索试试~ 我知道了~
使用RaspberryPi3作为带Alexa的家庭自动化设备_Python_.zip
共33个文件
py:11个
xml:7个
png:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 198 浏览量
2023-04-05
13:00:10
上传
评论
收藏 301KB ZIP 举报
温馨提示
使用RaspberryPi3作为带Alexa的家庭自动化设备_Python_.zip
资源推荐
资源详情
资源评论
收起资源包目录
使用RaspberryPi3作为带Alexa的家庭自动化设备_Python_.zip (33个子文件)
IOT-Pi3-Alexa-Automation-master
CHIP_name_port_gpio.py 2KB
ssh 0B
RPi_name_port_gpio_8_Relays2.py 4KB
.gitattributes 378B
CHIP_IO
__init__.py 0B
LRADC.py 6KB
OverlayManager.py 7KB
Utilities.py 5KB
.idea
webServers.xml 613B
vcs.xml 180B
workspace.xml 33KB
misc.xml 288B
IOT-Pi3-Alexa-Automation.iml 617B
inspectionProfiles
profiles_settings.xml 228B
modules.xml 300B
deployment.xml 1KB
RPi_name_port_gpio_8_Relays.py 4KB
RPi_name_port_gpio.py 2KB
wpa_supplicant.conf 162B
fauxmo.py 17KB
debounce_handler.py 1KB
.gitignore 649B
images
pi3ipaddress.png 33KB
puttypi3prompt.png 34KB
pi3vnc.png 37KB
win32diskimager.jpg 47KB
formatsdcard1.png 29KB
pi3ipaddress.jpg 50KB
puttypi3.png 36KB
formatsdcard.jpg 38KB
__pycache__
fauxmo.cpython-34.pyc 13KB
README.md 4KB
example-minimal.py 2KB
共 33 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功