Cov txheej txheem:

RASPBERRY PI ALEXA HNUB TSHIAB: 4 Kauj Ruam
RASPBERRY PI ALEXA HNUB TSHIAB: 4 Kauj Ruam

Video: RASPBERRY PI ALEXA HNUB TSHIAB: 4 Kauj Ruam

Video: RASPBERRY PI ALEXA HNUB TSHIAB: 4 Kauj Ruam
Video: Raspberry PI Amazon Alexa Voice Service | Artificial Intelligence 2024, Hlis ntuj nqeg
Anonim
Image
Image
Yam Koj Xav Tau
Yam Koj Xav Tau

Cov Lus Qhia no npog cov ntsiab lus ntawm Amazon alexa eho dot, Raspberry pi Gpio tswj los ntawm kev siv alexa.

Qhov teeb meem tseem ceeb thaum tuav alexa yog txhua lub sijhawm koj xav tau ntxiv qee qhov txuj ci hauv koj tus as khauj uas xav tau sijhawm ntau, txhawm rau tsim kev sib txuas lus ntawm alexa thiab cov cuab yeej sab nraud, tab sis cov lus qhia no yuav tshem tawm qhov mob taub hau no thiab kuv tsuas yog xav ua kom yooj yim xws li kuv ua tau ….

Kauj Ruam 1: Yam Koj Xav Tau:

Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau

1. Raspberry Pi

2. Amazon Alexa

3. Relay Board / Coj.

Kauj ruam 2:

teeb tsa Raspberry Pi:

1. Nruab pip

Hais kom ua: sudo apt-tau nruab sej-pip

2. hloov tshiab thiab Upgrage

sudo apt-tau nruab hloov tshiab & sudo apt-tau hloov tshiab

Kauj ruam 3: Khiav koj li CODE

Khab nias rau tus txiv neej no::

Txhua qhov credit mus rau

Rub tawm cov ntawv zip

drive.google.com/open?id=1suIa9OhyHsxW35EB…

rho tawm cov ntawv zip rau raspberry pi desktop

ces ntaus cov lus txib no:

hauv lub davhlau ya nyob twg

1.pi@Raspberrypi: $ cd /Desktop /

2.pi@Raspberrypi: $ cd /Desktop /$: cd /ALEXA HOME

3.pi@Raspberrypi: $ cd /Desktop /alexa home $ cd /IOT-Pi3-Alexa-Automation-master

4. sudo nab hab sej RPi_name_port_gpio.py

Ua li ntawd….

Tam sim no nug alexa kom "nrhiav cov cuab yeej txuas", tom qab ntawd nws yuav nug koj kom tos 20 vib nas this

ces hais tej yam zoo li

alexa, chav ua noj

alexa, chav ua noj tawm

Kauj Ruam 4: Cov Cai Sib Txawv rau Cov Ntawv Thov Sib Txawv

yog tias koj rho tawm cov ntawv zip koj yuav tau txais 2 tus lej:

drive.google.com/open?id=1lGHFDJxbU5y6h7Zk…

1. RPi_name_port_gpio.py

2. RPi_name_port_gpio_8_Relays.py

1. txuas ob lub leds / txuas (phycial tus pin 7, 11 (tsis yog tus lej pin gpio7, 11))

RPi_name_port_gpio.py- khiav cov cai no yog tias koj xav tswj ob lub cuab yeej nkaus xwb

txib:

alexa, yog lawm

alexa, ua tsaug

alexa, ua tsaug

alexa, tua tawm

2. txuas yim leds / relays

RPi_name_port_gpio_8_Relays.py (phycial pin 7, 11, 13, 5, 15, 8, 12, 10 (tsis yog tus lej pin gpio))

rau cov lus txib saib qhov program.

Pom zoo: