Cov txheej txheem:

RabbitPi - Alexa Enabled, IFTTT Txuas, Ear -Wiggling IoT Assistant: 12 Kauj Ruam
RabbitPi - Alexa Enabled, IFTTT Txuas, Ear -Wiggling IoT Assistant: 12 Kauj Ruam

Video: RabbitPi - Alexa Enabled, IFTTT Txuas, Ear -Wiggling IoT Assistant: 12 Kauj Ruam

Video: RabbitPi - Alexa Enabled, IFTTT Txuas, Ear -Wiggling IoT Assistant: 12 Kauj Ruam
Video: Raspberry pi with pir sensor use IFTTT 2024, Kaum ib hlis
Anonim
Image
Image
RabbitPi - Alexa Enabled, IFTTT Txuas, Ear -Wiggling IoT Assistant
RabbitPi - Alexa Enabled, IFTTT Txuas, Ear -Wiggling IoT Assistant
RabbitPi - Alexa Enabled, IFTTT Txuas, Ear -Wiggling IoT Assistant
RabbitPi - Alexa Enabled, IFTTT Txuas, Ear -Wiggling IoT Assistant
RabbitPi - Alexa Enabled, IFTTT Txuas, Ear -Wiggling IoT Assistant
RabbitPi - Alexa Enabled, IFTTT Txuas, Ear -Wiggling IoT Assistant

Qhov no yog qhov qub xyoo 2005 Nabaztag "tus luav ntse" uas kuv tau rov tsim dua tshiab rau hauv IoT Assistant niaj hnub siv Raspberry Pi 3 thiab Adafruit Motor HAT, nrog lub webcam microphone thiab Philips Soundshooter hais lus muaj nyob hauv cov ntaub ntawv qub ntxim nyiam. khawm pib lub suab hais kom siv Amazon's Alexa lub suab pabcuam, nyeem tawm cov lus teb ntawm tus hais lus sib xyaw. Cov lus txib lub suab kuj tseem siv los ua kom IFTTT (Yog Qhov No Yog Qhov ntawd) cov zaub mov txawv, kom cuam tshuam nrog lwm cov khoom siv txuas nrog internet xws li lub qhov ntse thiab lub xov tooj ntawm tes. Tsis txaus? Ntxiv rau qhov ua rau IFTTT cov xwm txheej nws tseem tau txais lawv ntawm Gmail, siv Ivona ntawv-rau-hais lus cav kom nyeem email, ntawv xov xwm thiab lwm yam ntawv ceeb toom, piv txwv li paj ntoos ceeb toom lossis ceeb toom los ntawm lub koob yees duab ruaj ntseg hauv tsev. Kuv puas tau hais nws muab koj pom kev tawm tswv yim nrog LEDS thiab lub mloog pob ntseg? Huag thiab nws muaj V2 Raspberry Pi Lub Koob Yees Duab hauv nws lub plab rau rub lub suab-qhib lub selfies rau Twitter.

Kauj Ruam 1: Keeb Kwm Me Nyuam Yaus ntawm Rabbits Ntse

Luv Keeb Kwm Ntawm Ntse Rabbits
Luv Keeb Kwm Ntawm Ntse Rabbits
Luv Keeb Kwm Ntawm Ntse Rabbits
Luv Keeb Kwm Ntawm Ntse Rabbits
Luv Keeb Kwm Ntawm Ntse Rabbits
Luv Keeb Kwm Ntawm Ntse Rabbits
Luv Keeb Kwm Ntawm Ntse Rabbits
Luv Keeb Kwm Ntawm Ntse Rabbits

Tus thawj Nabaztag "thawj tus luav ntse" tau tshaj tawm xyoo 2005, tau them nqi raws li tus pabcuam hauv tsev ib puag ncig (suab paub Amazon & Google?) - sib cav nws yog thawj "Internet ntawm Yam" yam thiab yog ntau txoj hauv kev ua ntej ntawm nws lub sijhawm, Kuv yuav ib qho ncaj qha. Nws zaum ntawm peb cov mantelpiece nyeem tawm kev kwv yees huab cua niaj hnub thiab cov ntawv ceeb toom qee zaum tab sis tsis muaj peev xwm ntau, tso siab rau WEP kev sib txuas Wi-nkaus thiab muaj cov software thiab cov tswv lag luam los muab nws cov ntawv-rau-hais lus (TTS) cov kev pabcuam. Nws nyuaj rau xav txog tam sim no tab sis nyob rau lub sijhawm tsis muaj ntau npaum li nws tuaj yeem txuas rau, kev tshaj xov xwm tsis muaj dab tsi, Nokia txiav txim siab lub ntiaj teb smartphone thiab teeb pom kev zoo LED yog qhov tshiab.

Hauv ob peb xyoos tom ntej no tau ua raws ob qhov txuas ntxiv, Nabaztag: Tag thiab Karotz, ob qho tib si muab kev ua haujlwm zoo dua tab sis tsis pom nws qhov tshwj xeeb hauv khw, thaum kawg cia los ntawm cov cuab yeej thiab software txwv. Kev txaj muag yog tias sai li sai tau thaum cov neeg txhawb nqa tau hloov pauv cov rabbits ntse yav dhau los dhau los ua ntau dua li cov khoom zoo nkauj. Ntau lub phiaj xwm hauv zej zog tau sim hloov cov kev pabcuam ntawm "official" servers, thiab peb tau siv "OpenKarotz" ib pliag, tab sis qhov no zoo li tuag ib xyoos lossis ob xyoos dhau los, ua rau kuv rabbits ntsiag to thiab tsis txav chaw ntawm kuv tus neeg hais lus.

Xijpeem keeb kwm kev kawm dhau! Qhov tshwm sim yog qhov peb nyiam nco txog qhov muaj Nabaztag hauv peb chav nyob, thiab kuv xav tau nws rov qab, tab sis raws li qhov tsim nyog IoT ntaus ntawv niaj hnub no.

Kauj ruam 2: Nabaztag 2.0

Nabaztag 2.0
Nabaztag 2.0

Kuv tau txais kev tshoov siab thaum kawg pib RabbitPi thaum kuv nyeem thaum Lub Peb Hlis tias Amazon Alexa lub suab pabcuam tau ua rau Raspberry Pi - qhov tseem ceeb yog lub pob tau xav kom qhib "mloog" - qhov no haum nrog Nabaztag zoo kawg nkaus, raws li nws muaj lub laub-khawm yaug nrog rau sab saum toj ntawm nws ci me ntsis taub hau. Kuv tau rhuav tshem kuv tus luav thiab sai tau Sam Machin qhov zoo AlexaPi tus lej khiav ntawm kuv Pi 3, qhib los ntawm nias tus luav lub pob. Txij ntawm no kuv tau txais kev cuam tshuam tag nrho los ntawm kev tsim AlexaPhone, tab sis dhia ncaj ncaj rov qab rau hauv rabbithole ntse sai li sai tau nws ua tiav. Kuv xav tau kuv qhov kev txhim kho Nabaztag kom tsawg kawg li ntse li qub, yog li kuv xav kom:

Ua lub suab tshawb nrhiav thiab nyeem cov txiaj ntsig

Nyeem tawm cov ntawv ceeb toom

Tsiv nws lub pob ntseg thiab nyem LEDs

Siv cov duab thiab tso cai saib xyuas tej thaj chaw deb

Sib cuam tshuam nrog cov ntse ntsais, teeb pom kev zoo thiab lwm yam

Kauj Ruam 3: Bunny Chop

Bunny Chop
Bunny Chop
Bunny Chop
Bunny Chop
Bunny Chop
Bunny Chop
Bunny Chop
Bunny Chop

Thawj txoj haujlwm yog txhawm rau rhuav tshem Nabaztag thiab saib seb qhov twg tuaj yeem rov siv tau. Lub pob ntseg tau tsim los hloov pauv thiab tsuas yog tuav nrog cov hlau nplaum, thiaj li yooj yim, thiab lub hau loj tsuas yog tuav los ntawm ob (cov duab peb sab txawv txawv) cov ntsia hlau. Qhov no tau nthuav tawm tag nrho cov kab hluav taws xob thiab cov khoom siv, tsim nyob ib puag ncig ntawm tus ncej yas yas. Ib sab tuav lub hauv paus tseem ceeb thiab LEDs, nrog tus hais lus nyob rau lwm sab thiab lub cev muaj zog/khawm nyob hauv tus ncej txheem saum toj kawg nkaus.

Raws li kuv tsuas yog npaj khaws cov cav kuv tau hla hla feem ntau ntawm cov kab hluav taws xob thiab pib tshem tawm cov ntsia hlau. Kuv tau txais qhov xav tsis thoob tiag ntawm qhov no! Qab ntawm tus luav "lub hlwb" Circuit yog ib qhov qhib tag nrho qhov siab ntawm tus ncej, uas muaj daim npav PCMCIA wi-fi puv puv, yam koj yuav siv hauv lub khoos phis tawj qub. Kuv kwv yees nws yog kev tsim lossis kev sib raug zoo ntawm lub sijhawm tab sis muab piv rau qhov loj me rau USB dongle niaj hnub no tau coj los tsev ntau npaum li cas thev naus laus zis tau poob qis hauv 10 xyoo.

Cov seem ntawm cov khoom tau yooj yim tshem tawm, tawm tsuas yog cov yas yas txhawb nqa tus ncej nrog qhov chaw txaus nyob ib puag ncig?

Kauj Ruam 4: Hais Lus thiab Mloog

Hais lus thiab Mloog
Hais lus thiab Mloog
Hais lus thiab Mloog
Hais lus thiab Mloog
Hais lus thiab Mloog
Hais lus thiab Mloog

Koj tsis tuaj yeem muaj lub suab hais lus tswj tus luav tsis muaj tus hais lus thiab lub microphone, yog li cov no yog thawj qhov kuv tau txheeb xyuas. Kuv tsis tau sim tiag tiag, Pi zoo li hloov pauv tau yooj yim txog USB microphones thiab kuv tsuas yog siv MSI StarCam Clip qub webcam rau kev tawm tswv yim, kho lub suab mus rau Max hauv Pi suab chaw. Txhawm rau txuag qhov chaw Kuv tau rhuav tshem lub vev xaib, tshem lub koob yees duab lub lens thiab rooj plaub. Kuv drilled lub qhov hauv paus rau lub microphone txhawm rau txhawm rau thiab txuas nws mus rau Pi's USB, khiav cov hlua kom zoo li sai tau.

Kuv tau siv KitSound MiniBuddy hais lus hauv AlexaPhone, raws li nws tau ua pov thawj zoo tiag tiag, tab sis thaum kuv mus yuav ib qho rau qhov haujlwm no kuv pom tias kev tsim qauv tau hloov pauv thiab lawv tsis tau them nyiaj siv lub micro-usb txuas! Kuv saib ib puag ncig rau qee yam zoo sib xws thiab tuaj nrog Philips SoundShooter, lub tsev me me zoo li lub foob pob tawg. Kuv tau cia siab tias nws yuav haum rau hauv rooj plaub yam tsis muaj kev rhuav tshem tab sis nws tau loj heev, yog li tawm tus ntsia hlau los txhawm rau rhuav nws. Kuv tau tswj tuav lub xov tooj cua hais lus nyob rau hauv tus txheej txheem, yog li tau muag hauv qee cov jumper cables kom ua kom yooj yim dua txuas dua. Ib feem ntawm tus neeg hais lus tau kub-glued rau rooj plaub nyob hauv ib qho chaw zoo li tus hais lus qub, nrog rau lub Circuit Court thiab roj teeb tsau rau lub txee me me hauv qab nws.

Hauv qhov rov qab xav kuv xav tias kuv tsuas yog siv lub siab ntawm lub zog -hais lus ntsaws ntsaws lossis ib yam dab tsi hloov, vim nws tsis zoo rau yuav tsum tau them tus neeg hais lus - tseem nws kav ntev heev thiab suab zoo, thiab raws li lub hau npog nqa tawm yooj yim nws tsis yog qhov teeb meem ua kom pom tseeb.

Kauj Ruam 5: Nyeem Zoo Li Luav

Nyeem Zoo Li Luav
Nyeem Zoo Li Luav
Nyeem Zoo Li Luav
Nyeem Zoo Li Luav

Tam sim no tias Alexa ib feem tau ua haujlwm Kuv tau txav mus los daws qhov teeb meem tom ntej, kuv yuav ua li cas kom tus luav los nyeem cov ntawv ceeb toom? Cov ntawv-rau-hais lus ntawm Nabaztag thawj yog qhov zoo kawg, txawm hais tias kuv nco nws ib txwm nyeem tawm kuv cov ntawv sau tawm (MM) li "Millimeters" thiab kuv tus poj niam (CM) ua "Centimeters"-Kuv xav siv lub niaj hnub thiab lub suab nrov zoo nkauj uas yuav txhais cov khoom zoo li "&" cim kom raug thiab nkag siab cov cim yooj yim zoo li:)

Raws li nrog txhua yam ntawm Raspberry Pi muaj ntau qhov kev xaiv sib txawv nyob ntawd thiab kuv tau saib mus rau ntau qhov ua ntej txiav txim siab ntawm Ivona, uas zoo li yog tib lub hauv paus siv los ntawm Alexa kev pabcuam. Nws yog qhov kev xaiv zoo tshaj plaws rau kuv raws li muaj ntau yam ntawm cov suab nrov thiab cov kev xaiv teeb tsa - kuj yog qhov loj ntxiv yog tias Zachary Bears tau ua kom muaj qhov yooj yim Python qhwv rau kev pabcuam, Pyvona.

Txhawm rau mus nrog Ivona koj yuav tsum xub teeb tsa tus lej tsim tawm, tom qab ntawd ib yam li nrog Alexa teeb tsa koj tau muab cov ntaub ntawv pov thawj los siv hauv koj daim ntawv thov, qhov no yog tsab ntawv nyeem tawm cov ntawv ceeb toom. Koj tau tso cai 50,000, tshawb nrhiav ib hlis nrog ib ntawm cov lej no, uas yog qhov txaus rau kuv.

Kev teeb tsa Pyvona tau hais ncaj ncaj, hauv ob peb feeb kuv muaj Python tsab ntawv tsim los ntawm qhov piv txwv uas yuav nyeem tawm ib kab lus uas kuv tau sau. ntawv tab sis hloov pauv cov ntawv ceeb toom tuaj.

Kauj Ruam 6: Hais Dab Tsi?

Hais Dab Tsi?
Hais Dab Tsi?
Hais Dab Tsi?
Hais Dab Tsi?

Yog li tam sim no kuv muaj tus luav (hauv ib daim thoob lub rooj ntev zaum) uas tuaj yeem hais lus, tab sis nws xav tau lub tswv yim kom tau txais cov ntawv ceeb toom thiab xa lawv mus rau Ivona kev pabcuam kom nyeem tawm. Kuv tau saib ntawm qhov muaj peev xwm ntawm kev xa xov ntawm kev pabcuam online lossis SIM daim npav hloov pauv, thiab Twitter thiab Dropbox rau xa cov ntawv/kab ntawv, tab sis txiav txim siab thaum kawg siv imaplib, Python-based txhais ntawm kev cuam tshuam nrog IMAP email account. Kuv txiav txim siab qhov kev xaiv no feem ntau vim tias nws koom ua ke tau zoo nrog IFTTT cov kev pabcuam, koj tuaj yeem muaj tswv yim tiag tiag nrog kev tsim cov ntawv ceeb toom email. Tsis tas li nws txhais tau tias kuv tuaj yeem xa email ncaj qha rau RabbitPi kom nyeem nrov nrov.

Kuv tau saib los ntawm ntau qhov piv txwv imaplib sej hauv online, thiab tom qab sib txuas cov khoom me me thiab cov khoom thiab ua haujlwm dhau los ntawm cov ntaub ntawv imaplib Kuv tau tswj kom xaus nrog cov ntawv uas tau tshuaj xyuas Gmail rau cov ntawv tsis tau nyeem ib ntus thiab luam tawm cov ntawv sib txawv ntawm qhov screen nyob ntawm cov ntsiab lus ntawm lub ntsiab lus. Qhov no yooj yim heev, vim tias kuv tuaj yeem hloov "IF" nqe lus hauv qhov chaws tsuas yog ua haujlwm yog tias email tuaj ntawm kuv tus kheej, thiab tom qab ntawd pauv qhov "Luam" ua rau tus lej hu rau Ivona kev pabcuam.

Kuv tau siv sijhawm me ntsis txhawm rau hloov kho qhov imaplib & Pyvona code kom nyeem tawm lub cev ntawm email tab sis qhov no tau dhau los ua qhov nyuaj heev - Kuv tsis ntev tau kawm tias cov email tseem ceeb teb (Los ntawm, Mus, Kawm thiab lwm yam) tau teeb tsa yooj yim heev, tab sis cov ntawv email lub cev tuaj yeem tsim kho hauv ntau txoj kev sib txawv. Thaum kawg nws tsis muaj teeb meem tiag tiag, Kuv muaj peev xwm ua tiav qhov kuv xav tau los ntawm kev siv Email Subject raws li daim teb uas cov ntawv ceeb toom yuav raug nyeem los ntawm.

Kuv tom qab yoog raws tus piv txwv imaplib kom tsis txhob siv tom qab txhua qhov kev txheeb xyuas email nws yuav rov ua dua ib zaug, txheeb xyuas email ob peb zaug hauv ib feeb thiab nyeem ib qho tshiab zoo nkauj npaum li lawv tuaj txog. Qhov no tau txais txiaj ntsig zoo rau kev sim tab sis hauv kev xyaum kuv yuav zaum ua rau nws txheeb xyuas tsawg dua. Tsis tas li nws tsim nyog sau cia tias tsab ntawv khaws tus password hauv kab ntawv yooj yim yog li yuav xav tau qee qhov encryption ntxiv hauv qee kis.

Kuv 100% paub tseeb tias qhov no tuaj yeem ua tiav ntau yam zoo nkauj thiab muaj txiaj ntsig hauv Python tab sis nws lom zem thiab nyuaj kom nws ua haujlwm txhua - Kuv tau qiv "Python rau Cov Menyuam" los ntawm lub tsev qiv ntawv lub lim tiam no yog li kuv tus lej yuav cia siab txhim kho raws li kuv kawm ntxiv.

Nrog qhov yooj yim-tau-email-thiab-nyeem-nws-tawm tsab ntawv ua haujlwm Kuv tau ntxiv hauv cov lej ntxiv ntawm cov cai uas yuav ua rau luav lub pob ntseg txav thiab LEDs teeb thaum nyeem cov ntawv ceeb toom. Cov cai kuv siv yog nyob ntawm GitHub tab sis thov nco ntsoov kuv tam sim no tsis muaj nab hab sej prowess!

Kauj Ruam 7: HAT rau RabbitPi

HAT rau RabbitPi
HAT rau RabbitPi
HAT rau RabbitPi
HAT rau RabbitPi
HAT rau RabbitPi
HAT rau RabbitPi
HAT rau RabbitPi
HAT rau RabbitPi

Ib qho tseem ceeb tshaj plaws txog Nabaztag yog txoj hauv kev nws yuav txav nws lub pob ntseg thaum muaj kev ceeb toom tuaj. tsuas yog kom lawv txav mus.

Kuv tsis tau siv lub cav nrog Raspberry Pi ua ntej yog li qhov no yog lwm qhov kev tshawb fawb tshiab rau kuv - ua ntej kuv xav tau kom paub seb lub cav twg kuv tau cuam tshuam nrog, txhua yam kuv paub yog muaj 2 lub cav, txhua nrog 2 lub xov hlau. Nyeem ntawv hauv online Kuv xaus qhov no yuav tsum yog DC lub cev muaj zog ntau dua li cov tshuab hluav taws xob stepper, qhov tseeb tau lees paub los ntawm qhov kev pab qhia zoo heev "Hack Nabaztag" los ntawm Liana_B, uas kuv xav tias kuv yuav tau nyeem ib hlis ua ntej.

Tseem tau ua tsaug rau Pi txoj kev hloov pauv tau muaj ntau txoj hauv kev sib txawv uas lub tshuab tuaj yeem tswj tau, tab sis kuv txiav txim siab siv Adafruit DC & Stepper Motor HAT board. Kuv tau siv Adafruit cov ntxaij vab tshaus & cov khoom me me ua ntej thiab kuv nyiam cov lus qhia ntxaws thiab piv txwv uas tuaj raws li tus qauv.

Siv lub rooj tsavxwm nrog HAT (Khoos Phis Tawj Txuas Rau Sab Saum) tus qauv txhais tau hais tias lub cav tswj lub cev yuav haum zoo nyob rau sab saum toj ntawm Pi siv qhov chaw tsawg, thiab vim tias nws siv I2C interface nws tso dawb GPIO pins kuv xav tau rau Alexa/Clap khawm thiab LEDs.

Raws li qhov xav tau soldering HAT ua ke yog qhov ncaj ncaj, thiab tsis ntev kuv tau teeb nws ntawm PI thiab txuas mus rau ob lub pob ntseg lub cev. Kuv tau npaj yuav khiav lub cav los ntawm lub txhab nyiaj usb kom kuv tsuas xav tau ib lub hwj huam ntsaws nkaus xwb, tab sis qhov no muab tawm kom tsis txhob muaj suab nrov txaus, nws yuav tsis pom lub teeb "Ua Haujlwm" coj ntawm HAT. Kuv txiav txim siab hloov pauv siv DC lub zog hloov pauv kom ua haujlwm HAT thiab pob ntseg, Kuv yooj yim muaj ib qho ntawm cov hauv qab no nrog cov lus qhia sib pauv tau yooj yim. Qhov kuv tsis muaj yog DC lub qhov (socket) los txuas lub adapter rau HAT. Kuv nyob ntawm qhov chaw tawm mus rau Norwich Maplin (dua) thaum kuv nco qab los ntawm kev rhuav tshem tias Nabaztag thawj lub hwj chim coj yog tus qauv DC ntsaws - yog li kuv tsuas tuaj yeem rov xaim lub qhov hluav taws xob qub rau HAT - zoo! Thaum kawg kuv tseem rov siv lub hwj chim Nabaztag qub, vim nws muab lub zog kom raug.

Nrog txhua yam txuas txuas thiab qhov ntsuas hluav taws xob uas tsim nyog tau xaiv Kuv tau sim ua piv txwv nab nab nrog rau DC Motor Hat, cov qauv piv txwv uas hloov pauv tas li qhov nrawm thiab kev taw qhia ntawm lub cev kom piav qhia qhov sib txawv tswj kev xaiv. Kuv zoo siab heev thaum nws ua haujlwm, kuv thawj Pi-tswj lub cev muaj zog! Tab sis tom qab ntawd kuv pom qee yam - lub suab nrov nrov nrov nrov zoo li ib tus neeg khiav ntiv tes ntub nyob ib ncig ntawm iav cawv. Qhov no tsis zoo hlo li, kuv xav kom lub pob ntseg txav mus thaum cov ntawv ceeb toom tau nyeem thiab txawm hais tias tsis ua lag luam nrov nrov yog qhov pom tau tiag. Kuv sim ntau qhov hluav taws xob tab sis tsis hloov pauv. Tig mus rau Google Kuv pom tias qhov no tuaj yeem tshwm sim vim yog PWM (mem tes dav tes taws los piav) thiab tias ib qho kev kho tuaj yeem ua rau cov kab hluav taws xob me me hla lub tshuab hluav taws xob. Saib cov motors cov no twb muaj lawm. Kuv kuj tau sim hloov PWM zaus tab sis tseem tsis hloov pauv. Tom qab qee qhov kev sim kuv pom tias qhov ntxhi tsuas yog tshwm sim thaum qhov nrawm ntawm lub cav tau hloov pauv los ntawm cov cai los ntawm qis mus rau siab - yog li teeb tsa nws mus rau qhov kev kub ceev tas li tshem tawm qhov ntxhi tag nrho - phew!

Kuv tsim ob peb qhov kev xeem nab nab raws li Adafruit cov piv txwv, ib qho rau kev txav chaw thaum lub sijhawm ceeb toom thiab lwm qhov ua kom pob ntseg ua tiav tag nrho "Circuit" ntawm kev pib, tsom mus rau luam cov cai ua haujlwm los ntawm cov no rau hauv cov ntawv loj siv los tswj Alexa thiab Gmail/Ivona kev sib cuam tshuam.

Kauj ruam 8: Lub koob yees duab thiab Tweaks

Lub Koob Yees Duab thiab Tweaks
Lub Koob Yees Duab thiab Tweaks
Lub Koob Yees Duab thiab Tweaks
Lub Koob Yees Duab thiab Tweaks
Lub Koob Yees Duab thiab Tweaks
Lub Koob Yees Duab thiab Tweaks

Ua ntej pib sib dhos kuv tau sim txhua yam. Txhua qhov ua tau ntawm qhov kev tsim no kuv siv cov hlua txuas txuas txuas cov khoom sib koom ua ke, yog tias yav dhau los tsim tau qhia kuv txhua yam nws yog npaj rau kev rhuav tshem yav tom ntej! Kuv kuj tau ua tus taw tes ntawm kev kos tawm daim duab sib txuas uas qhia pom tias cov xim cable mus rau qhov twg, jumper cables zoo heev tab sis qee zaum yooj yim tso tawm thaum ua cov khoom sib dhos rau hauv qhov chaw nruj!

Kuv txiav txim siab ncaj ncees mus rau hauv kev tsim kom suav nrog Pi Lub Koob Yees Duab, 8MP version 2 nyuam qhuav raug tso tawm thiab zoo li lwm yam tshiab rau kuv Kuv xav tias nws yuav ua rau muaj qhov zoo ntxiv. Qhov hloov tshiab kawg ntawm Karotz luav tau suav nrog lub vev xaib hauv nws lub plab tab sis qhov no yeej tsis ua haujlwm txhua qhov ntawd zoo, Kuv xav tias Pi lub koob yees duab yuav lom zem rau lub suab-qhib tus kheej thiab tej zaum txawm tias saib xyuas tej thaj chaw deb yog tias Pi tuaj yeem ua haujlwm khiav cov cai ntawm tib lub sijhawm zoo li txhua yam ntxiv.

Kuv tau ua tus tuav rau lub koob yees duab tawm ntawm yas-npog meccano thiab teeb nws rau hauv rooj plaub ua ntej, tom qab ntawd ua tib zoo ntsuas ntsuas qhov twg kuv xav tau los laum cov countersunk qhov hauv rooj plaub. Qhov no yog qhov tseeb ntawm "ntsuas ob zaug txiav ib zaug" raws li lub qhov nyob hauv qhov chaw tsis raug yuav ua rau muaj kev puas tsuaj. Ua tsaug nws tuaj tawm hauv qhov chaw tuag thiab tsuas yog me ntsis siab dhau, yog li kuv muaj peev xwm them nyiaj los ntawm kev ntxiv cov ntxhua khaub ncaws ntawm lub koob yees duab thiab lub hauv paus.

Kuv kuj tau ntxiv hauv Pimoroni Dual Micro USB Lub Hwj Huam Hluav Taws Xob ntawm qhov no - qhov no tau muab kuv lub micro -usb qhov zoo nyob tom qab ntawm rooj plaub, thiab muab lub hwj chim thib ob. Kuv npaj yuav siv lub ntsaws ntxiv txhawm rau them tus neeg hais lus lub roj teeb, thiab tsoo rau hauv nws kom kuv tuaj yeem txuas hauv Nabaztag tus thawj "hais tsis tau" hloov los tswj kev them nyiaj.

Kauj Ruam 9: Dab tsi yog Cookin 'Doc? IFTTT Cov Zaub Mov

Cookin 'Doc yog dab tsi? IFTTT Cov Zaub Mov!
Cookin 'Doc yog dab tsi? IFTTT Cov Zaub Mov!
Cookin 'Doc yog dab tsi? IFTTT Cov Zaub Mov!
Cookin 'Doc yog dab tsi? IFTTT Cov Zaub Mov!

Qhov tseem ceeb tshaj plaws ntawm kev tsim IoT lub cuab yeej tam sim no yog cov xov tooj ntawm cov kev pabcuam hauv web muaj, thiab IFTTT (Yog Yog Li No) Qhov kev pabcuam ua haujlwm zoo kawg nkaus khi txhua qhov no ua ke hauv qhov ncaj thiab ua haujlwm pob. Yog tias koj tsis tau siv nws tseem yog qhov kev pabcuam online, thiab thaum koj tau kos npe koj tuaj yeem txuas txhua yam ntawm koj lwm lub vev xaib raws li nws, xws li Gmail, Facebook, Twitter thiab (koj twv nws) Amazon Alexa. Muaj tag nrho smorgasbord ntawm cov kev pabcuam xaiv los ntawm, tseem suav nrog tswj kev xaiv rau cov cuab yeej ntse xws li lub teeb taws, lub ntsuas sov thiab lub qhov (socket).

Txoj cai IFTTT tau teeb tsa hauv "zaub mov txawv" - zoo ib yam li Outlook txoj cai lossis cov lus IF hauv SQL lossis Visual Basic, piv txwv li kuv muaj daim ntawv qhia uas hais tias "Yog leej twg cim kuv hauv daim duab hauv Facebook THIAB xa email rau kuv nrog Cov Ntawv "Dawb huv guacamole, [tagging tus neeg lub npe] tsuas tagged koj hauv facebook duab" - vim qhov no tau xa tuaj rau kuv los ntawm kuv tus kheej qhov chaw nyob RabbitPi tom qab ntawd nyeem tawm Cov Ntawv Kawm.

Lwm qhov siv tau zoo ntawm IFTTT yog nrog Alexa lub suab pabcuam - rau IF ib feem ntawm daim ntawv qhia koj tuaj yeem teeb tsa kab lus, piv txwv li "lub laser" thiab yog tias koj hais rau Alexa "Ua rau lub laser" nws yuav dhau qhov kev thov rau IFTTT, uas yuav tua THEN ib feem ntawm daim ntawv qhia, nyob rau hauv rooj plaub no qhib lub qhov hluav taws xob qhov hluav taws xob txuas nrog lub laser disco.

Nws txawm mus dhau "yam ntse" - yog tias koj muaj IFTTT teeb tsa hauv koj lub xov tooj (kuv li yog Android version) tom qab ntawd koj tuaj yeem cuam tshuam nrog nws ob qho lus qhia, ib daim ntawv qhia siv hauv video yog: "YOG Kuv hais" Tsaug Chas & Dave "rau Alexa, Tom qab ntawd ua cov nkauj tshwj xeeb" Luav "ntawm kuv lub xov tooj hauv xov tooj ntawd. ntawm daim ntawv qhia - yog li kuv muaj lub pob ntawm kuv lub vijtsam uas ua rau RabbitPi coj tus kheej thiab xa nws mus rau Twitter.

Lwm txoj haujlwm ua rau RabbitPi nyeem kuv cov ntawv, hauv kuv lub xov tooj Kuv muaj daim ntawv qhia "Yog tias kuv tau txais SMS tshiab tom qab ntawd xa kuv tus kheej email nrog cov ncauj lus hauv qab no" Hav! [text sender] hais tias [text message body]"

Nws yog qhov yooj yim siv, lom zem heev thiab ua haujlwm tau zoo, cov ntawv ceeb toom tau dhau mus rov qab & nrawm heev, tshwj xeeb tshaj yog rau WeMo Insight hloov kuv muaj, uas yog zoo nkauj npaum li sai tau. Muaj IFTTT thiab RabbitPi ua rau txuas cov khoom thiab cov kev pabcuam tau yooj yim heev.

Kauj Ruam 10: Sib dhos & Xeem

Sib dhos & Xeem
Sib dhos & Xeem
Sib dhos & Xeem
Sib dhos & Xeem
Sib dhos & Xeem
Sib dhos & Xeem

Tam sim no los txog qhov nyuaj - sau tag nrho cov khoom sib dhos rau hauv rooj plaub! Kuv tau zoo nkauj tias nws yuav haum txhua qhov tab sis qhov kev sib dhos tiag tiag yog qhov tsis txaus ntseeg, Kuv tau siv qee yam cuab yeej phais mob thiab tweezers txhawm rau txhawm rau xaim hluav taws xob los ntawm qhov khoob me me.

Thaum txhua yam tau nyab xeeb Kuv tau ntxiv rau qee qhov nws tus kheej -nplaum cable khi puag kom ntau lub xov hlau tuaj yeem rub ua ke kom huv si - qhov no yog qhov tseem ceeb heev vim tias kuv tsis xav kom tshem tawm ib qho ntawm lawv thaum muab rooj plaub rov los ua ke.

Kauj Ruam 11: Npaj Luav?

Npaj Liab?
Npaj Liab?
Npaj Liab?
Npaj Liab?
Npaj Liab?
Npaj Liab?
Npaj Liab?
Npaj Liab?

Tam sim no txhua qhov kev tsim kho lub cev tau ua tiav nws yog lub sijhawm los "txiav txoj hlua", tshem RabbitPi los ntawm kev nplij siab ntawm nws cov ethernet cable, saib xyuas thiab keyboard hauv lub rooj sib tham yog li kuv tuaj yeem ua tiav txoj cai lwm qhov ntawm SSH (Lub teeb liab wireless yog muaj zog tiag tiag nyob ntawd!)

Teem nyob ntawm lub rooj hauv kuv lub chaw haujlwm kuv thawb tus luav thiab - tsis muaj kev sib txuas Wi -nkaus txhua qhov, tsis muaj dab tsi. Kuv paub tias yuav tsum muaj lub teeb liab raws li kuv lub xov tooj ua haujlwm tau zoo - puas muaj teeb meem nrog lub network adapter ntawm Pi 3 uas kuv tsis tau hnov dua? Me ntsis ntawm googling ceeb toom rau kuv tias Pi 3 tsuas yog pom lub teeb liab wi-fi yog tias lub router tshaj tawm hauv xov tooj cua 1-11-kuv tau teeb tsa rau channel 13! Ob peb tweaks tom qab thiab peb tau txuas nrog, xyov loj ntawm nyem.

Tom ntej no txheeb tawm cov ntawv sau sib txawv. Ua ntej kuv hloov kho qhov tseem ceeb.py tsab ntawv ntawm AlexaPi code, ntxiv rau kab ntxiv kom zoo li ua rau nws lub teeb ci thaum pib RabbitPi tseem yuav ua lub pob ntseg zoo wiggle. Kuv kuj hloov tus qauv "Nyob Zoo" cov lus nrog kev ua si "boing" lub suab kom lom zem.

Tsab ntawv thib ob hu ua rabbit.py (SWIDT?) Thiab muaj tag nrho cov cai rau rov qab tau cov lus gmail thiab nyeem lawv nrog Pyvona. Kuv kuj tau ntxiv qee qhov Twython code kuv hloov pauv los ntawm Raspberry Pi "Tweeting Babbage" nyeem, ua rau RabbitPi thaij duab thiab muab tso rau nws tus account Twitter (@NabazPi). Kuv ntxiv hauv qee lub pob ntseg txav thiab LED flashes kom muab kev ceeb toom ncaj ncees rau koj thaum cov duab yuav raug coj mus, nrog rau lub suab nrov kaw thiab Pyvona-nyeem tweet kev lees paub.

Thaum kawg kuv tau ntxiv rau hauv nqe lus IF rau imaplib gmail code, yog li yog tias tus email email yog "selfie" ces RabbitPi yuav ua nws qhov selfie, tab sis lwm yam yuav nyeem tawm tus email li ib txwm muaj.

Cov cai kuv siv muaj nyob ntawm GitHub - thov nyeem ReadMe file!

Raws li qhov kov tiav kuv tau luam tawm Raspberry Pi lub logo rau daim ntawv tshab thiab muab nws lo rau sab hauv RabbitPi rooj plaub, kom lub plab dawb LED yuav ci lub duab los ntawm nws cov tawv nqaij.

Kauj Ruam 12: Nabaztag Rov Qab

Nabaztag Rov Qab!
Nabaztag Rov Qab!
Nabaztag Rov Qab!
Nabaztag Rov Qab!
Nabaztag Rov Qab!
Nabaztag Rov Qab!

Nrog txhua yam ua tiav tsuas muaj cov vis dis aus tso ua. Nws yog qhov lom zem heev tso RabbitPi los ntawm nws cov paces ntawm lub koob yees duab, qhov tsis zoo tsuas yog kho cov duab HD ntawm kuv lub laptop laus tom qab. Rau qee qhov kev ceeb toom (feem ntau yog cov ntawv xov xwm vim yog kuv lub suab Vodafone txaus ntshai) Kuv tau txiav qhov kev ncua ntawm kev ua thiab ceeb toom, lossis nws yuav yog cov vis dis aus ntev thiab txaus siab, tab sis feem ntau nws qhia qhov tseeb ntawm kev teb.

Kuv tau sim sim siv lub npuaj ntsuas kom ua rau Alexa cov kev pabcuam (zoo li pom hauv Snap rau nws Alexa video), tab sis tso nws tawm ntawm qhov kev tsim kawg vim nws tsis ntseeg tau txaus thaum muaj suab nrov tom qab. Kuv paub lwm tus tinkerers tab tom ua haujlwm ntawm kev siv IR remotes, wii cov tswj hwm thiab txawm tias mloog zoo nrog AlexaPi code yog li muaj ntau qhov kev xaiv rau yav tom ntej.

Kuv vam tias yuav ntxiv rau hauv lub nplhaib adafruit neopixel los hloov lub plab LED vim qhov no yuav ua rau pom kev pom tau zoo dua, thiab kuv kuj xav tau qhov "hloov pauv" lub suab ceeb toom thaum hmo ntuj. Kuv cov menyuam tau muab qee cov lus qhia zoo ib yam, thiab tam sim no kuv tau yooj yim dua nrog Python peb yuav ua haujlwm ua ke txhawm rau nthuav dav cov ntawv ceeb toom, piv txwv li kom cov ntawv lees paub tus kheej tau muab los ntawm cov npe ntawm qhov tseem ceeb, thiab yog li tus luav tuaj yeem qhia kom sim ua las voos macarena nrog nws pob ntseg thiab LEDs.

Kuv tsuas yog tshwm sim kom muaj lwm Nabaztag ntawm no, nrog rau tom qab Karotz luav, yog li kuv yuav tsim qee yam ntxiv nrog lawv - nws yog kev ntxias sim nrog kev saib xyuas tej thaj chaw deb thiab ntsuas txhua yam! Nws yog lub khoos phis tawj zoo tshaj plaws rau Pi nrog nws cov ntaub ntawv zoo tshaj plaws, lub cev muaj zog thiab khawm. Kuv xav paub yog tias cov tuam txhab tsim khoom qub muaj cov khoom lag luam uas tsis muag Nabaztags nyob qhov twg, zoo li Atari qhov chaw pov tseg? Muaj tseeb nrog qee qhov 3d luam tawm qhov zoo rau kev teeb tsa lub koob yees duab thiab PI thiab kev cai HAT kom khiav lub cav, LEDs thiab lub suab lawv yuav ua qhov zoo tshaj Raspberry Pi tus tsim khoom siv, txhua lub koom haum coding yuav tsum muaj ib qho!

Yog tias koj nyiam txoj haujlwm no thiab xav pom ntau dua koj tuaj yeem tshawb xyuas kuv lub vev xaib rau qhov ua tiav qhov haujlwm tshiab ntawm bit.ly/OldTechNewSpec, koom nrog hauv Twitter @OldTechNewSpec lossis sau npe yuav ua rau YouTube loj hlob zuj zus ntawm bit.ly/oldtechtube - muab qee qhov ntawm koj li qub Tech qhov tshwj xeeb tshiab!

Internet ntawm Yam Kev Sib Tw 2016
Internet ntawm Yam Kev Sib Tw 2016
Internet ntawm Yam Kev Sib Tw 2016
Internet ntawm Yam Kev Sib Tw 2016

Khiav Tawm Hauv Internet ntawm Kev Sib Tw Xyoo 2016

Pom zoo: