Cov txheej txheem:

EWON Raspberry Pi Powered Tsev Neeg Hlau: 7 Cov Kauj Ruam (nrog Duab)
EWON Raspberry Pi Powered Tsev Neeg Hlau: 7 Cov Kauj Ruam (nrog Duab)

Video: EWON Raspberry Pi Powered Tsev Neeg Hlau: 7 Cov Kauj Ruam (nrog Duab)

Video: EWON Raspberry Pi Powered Tsev Neeg Hlau: 7 Cov Kauj Ruam (nrog Duab)
Video: Get access to devices behind Ewon Flexy IIoT Router 2024, Hlis ntuj nqeg
Anonim
EWON Raspberry Pi Powered Tsev Neeg Hlau
EWON Raspberry Pi Powered Tsev Neeg Hlau
EWON Raspberry Pi Powered Tsev Neeg Hlau
EWON Raspberry Pi Powered Tsev Neeg Hlau
EWON Raspberry Pi Powered Tsev Neeg Hlau
EWON Raspberry Pi Powered Tsev Neeg Hlau

Los ntawm sharathnaikSharathnaik.com Ua raws ntau los ntawm tus sau:

Lub Plawv Visualizer | Pom Koj Lub Plawv Dhia
Lub Plawv Visualizer | Pom Koj Lub Plawv Dhia
Lub Plawv Visualizer | Pom Koj Lub Plawv Dhia
Lub Plawv Visualizer | Pom Koj Lub Plawv Dhia
DIY- Cool Denim Pocket Notebook (nrog Duab)
DIY- Cool Denim Pocket Notebook (nrog Duab)
DIY- Cool Denim Pocket Notebook (nrog Duab)
DIY- Cool Denim Pocket Notebook (nrog Duab)
PUPPI
PUPPI
PUPPI
PUPPI

Txog: Engineering thiab Tsim Ntau Yam Txog sharathnaik »

Kuv nyuam qhuav pom kuv tus kheej binge-saib ntau Netflix series vim qhov xwm txheej tam sim no, Kuv vam tias koj txhua tus muaj kev nyab xeeb, thiab kuv pom tias lub caij 5 ntawm Daim iav Dub tau tso tawm. Ib zaj dab neeg hais txog dab neeg uas nyob ib puag ncig ntawm pab pawg ntawm tib neeg lub neej thiab kev siv thev naus laus zis siv lawv tus cwj pwm li cas.

Thiab ib qho ntawm ntu uas ua rau kuv mloog yog Rachel, Jack, thiab Ashley Too. Ib ntawm cov cim tseem ceeb ntawm koob no yog tsev neeg hlau npe hu ua Ashley O thiab tus neeg hlau ntawd muaj ntau tus cim nyob ib puag ncig nws thiab kuv xav rau kuv tus kheej Kuv yuav tsum tsim ib qho, nws yog txoj haujlwm zoo rau kev pib ua haujlwm yog tias tsis yog li ntawd tsawg kawg Kuv tuaj yeem kho nws kom luag ntawm kuv qhov kev tso dag.!

Dab tsi / Leej twg yog Ewon? Nws ua tau dab tsi?

Yog li ua ntej kuv pib ua haujlwm ntawm txoj haujlwm no kuv teeb tsa qee txoj cai hauv av kom ua raws. Txoj haujlwm no yuav tsum yog

  • Yooj yim rau txhua tus sim
  • Tsis tsuas yog hais txog kev ntxim hlub tab sis kuj tseem muaj txiaj ntsig yog li nws tsis xaus rau hauv txee
  • Modular, yog li koj tuaj yeem txuas ntxiv cov yam ntxwv tshiab.

Tom qab teeb tsa txoj cai no kuv txiav txim siab siv Google Assistant SDK. SDK no muab ntau yam tshwj xeeb uas kuv tab tom nrhiav thiab yog tias koj tau dhuav ntawm Ewon koj lub tsheb npav ib txwm siv nws li Google Tsev ntaus ntawv thiab ua dab tsi hauv tsev Google ua.

Dab tsi Ewon yuav ua yog ntxiv tus cwj pwm rau Google tus pabcuam. Qhov ntawd yog qhia kev xav thiab ua rau cov neeg siv hais li cas. Tam sim no nws tsis yog lub suab uas koj hnov tab sis koj kuj tau pom tias yuav ua li cas.

NCO TSEG: Cov lus qhia no tseem tab tom txhim kho. Kuv yuav xa tag nrho cov ntaub ntawv cuam tshuam. Ua tsaug

Kauj Ruam 1: Qhov Yuav Tsum Tau Ua rau Ewon

ELECTRONICS

  • Raspberry PI PIB
  • Servo SG90 (x 4)
  • Servo MG995 - tus qauv (x2)
  • PCA9685 16-Channel Servo Driver
  • USB daim npav suab
  • Microphone
  • Hais lus (Txhua tus hais lus me me yuav ua, qee yam zoo li no)
  • Txiv neej thiab poj niam tus pin header txuas
  • Cov qhob cij
  • Nextion Zaub

FASTENERS THIAB BEARINGS

  • M3*10 hli (x10)
  • M3*8mm (x10)
  • M3 Ceev (x20)
  • Cov kabmob

    • OD: 15mm ID: 6mm Dav: 5mm (x2)
    • OD: 22mm ID: 8mm Dav: 7mm (x2)

Lwm cov ntaub ntawv

  • Sawv ntsug

    • 40 hli (x4)
    • 30 hli (x4)

Cov cuab yeej

3D tshuab luam ntawv

Kauj Ruam 2: Nkag siab Ewon thiab Kev Ua Haujlwm

Nkag siab Ewon thiab Programming
Nkag siab Ewon thiab Programming
Nkag siab Ewon thiab Programming
Nkag siab Ewon thiab Programming
Nkag siab Ewon thiab Programming
Nkag siab Ewon thiab Programming

Ua ntej kuv pib nrog cov phiaj xwm kev qhia cia kuv piav qhia luv luv ntawm daim duab thaiv ntawm Circuitry ntawm Ewon.

RPI (Raspberry pi) yog lub hlwb ntawm cov kab ke. Servo tsav tswj los ntawm RPI tsav lub servo. Zaub tswj los ntawm RPI nrog kev sib txuas lus hauv xov tooj cua los qhia kev xav thiab kawg, mic thiab hais lus siv los sib tham nrog Ewon. Tam sim no peb paub tias kho vajtse ua dab tsi cia peb pib ua haujlwm Ewon.

Txhim kho google tus pab SDK

Cia kuv piav qhia ob qho laj thawj vim li cas kuv npaj yuav siv Google Assistant:

  • Kuv xav Ewon kom tsis tsuas yog ua neeg hlau lom zem tab sis kuj tseem muaj txiaj ntsig zoo. Google Assistant SDK twb muaj tuj ntawm cov peev txheej uas koj tuaj yeem siv los ua kom muaj nuj nqis ntawm Ewon.
  • Koj kuj tseem tuaj yeem siv kev nqis tes ua hauv google thiab sib tham sib tham kom muab Ewon lub peev xwm los tham nrog cov lus teb ua ntej. Txog tam sim no, peb yuav tsom mus rau tsuas yog SDK yooj yim.

Cia peb pib los ntawm kev txhim kho google pabcuam SDK. Qhov no yuav tsis yog qhov nyuaj vim tias muaj ntau qhov peev txheej los pab koj teeb tsa Google Assistant SDK ntawm RPI. Koj tuaj yeem ua raws qhov kev qhia no nrog:

Qhia:

Tom qab qhov kawg ntawm cov txheej txheem saum toj no, koj yuav tsum tuaj yeem nyem nkag mus ntawm cov keyboard thiab tham nrog tus pabcuam. Nov yog txhua yam hais txog kev txhim kho Google Assistant SDK.

Kuv yuav tsum sau nws npe li cas? Ewon?

Hav Google! Qhov ntawd yog dab tsi siv los pib hais lus rau google tus pabcuam thiab hmoov tsis zoo google tsis tso cai rau lwm cov lus tsim los siv. Yog li cia saib yuav ua li cas peb tuaj yeem hloov qhov no kom google tus pab cuam tau tshwm sim thaum ib tus neeg hu Ewon.

Snowboy: qhov kev hloov kho siab heev lo lus tshawb nrhiav lub cav uas tau siv rau hauv lub sijhawm tiag tiag nrog Raspberry Pi, (Ubuntu) Linux, thiab Mac OS X.

Lo lus kub (tseem paub tias yog lo lus tsim los yog ua rau lo lus) yog lo lus tseem ceeb lossis kab lus uas lub khoos phis tawj mloog tas li los ua lub cim qhia rau lwm yam kev ua.

Cia peb pib los ntawm kev txhim kho Snowboy ntawm RPI. Nco ntsoov qhib qhov chaw ib puag ncig rau nruab Snowboy ib yam li koj tau teeb tsa Pabcuam SDK. Txhua yam peb teeb tsa los ntawm no yuav tsum tau teeb tsa hauv qhov chaw ib puag ncig virtual. Txhim kho Snowboy tuaj yeem ua rau me ntsis tab sis qhov txuas no yuav tsum pab koj nruab nws yam tsis muaj teeb meem. Txuas:

Nov yog cov txheej txheem teeb tsa ua ke yog qhov txuas saum toj no ua rau tsis meej pem lossis teeb tsa ua tsis tiav.

$ [sudo] apt-get install libatlas-base-dev swig $ [sudo] pip nruab pyaudio $ git clone https://github.com/Kitt-AI/snowboy $ cd snowboy/swig/Python3 $ ua $ cd.. /.. $ python3 setup.py tsim $ [sudo] python setup.py nruab

Thaum Nruab Nrab khiav cov ntawv tso tawm [pom hauv daim nplaub tshev - snowboy/piv txwv/Python3/] kom pom tias txhua yam ua haujlwm zoo.

Nco tseg: koj tuaj yeem hloov pauv koj lub npe neeg hlau rau lwm yam ib yam nkaus. Txhua yam koj yuav tsum ua yog mus rau https://snowboy.kitt.ai/ thiab qhia cov lus tshwj xeeb thiab tom qab ntawd muab lo lus kub ntawd tso rau hauv tib daim nplaub tshev zoo li ewon.pmdl.

Ewon puas tuaj yeem nkag siab?

Tam sim no Ewon muaj lub npe Kuv yuav siv Ewon tsis txhob hu nws ua neeg hlau. Ua li ntawd kev xav, cov lus teb tsis yog, Ewon tsis tuaj yeem nkag siab qhov kev xav yog li peb yuav ua dab tsi ntawm no yog ua rau Ewon pom qhov kev xav hauv peb cov lus siv lo lus tseem ceeb thiab tom qab ntawd ua lub ntsej muag sib luag uas cuam tshuam nrog nws.

Txhawm rau ua qhov no yam kuv tau ua yog cov ntawv yooj yim tsom xam kev xav. Muaj 6 qib kev xav sib txawv.

Duab
Duab

Zoo Siab, Tu Siab, Npau Suav, Ntshai, Tsis Txaus Siab, thiab Ua Phem. Cov no yog cov chav kawm kev xav tseem ceeb thiab txhua tus ntawm lawv muaj cov npe ntawm cov ntsiab lus cuam tshuam nrog kev xav. (piv txwv zoo, zoo, zoo siab, txhua yam los ntawm kev zoo siab).

Yog li thaum twg peb hais ib yam ntawm cov lus tseem ceeb hauv chav kawm kev xav qhov kev xav sib xws tau tshwm sim. Yog li thaum koj hais tias "Hav Ewon!" thiab tos kom Ewon hais lus thiab kuv tseem hais ntxiv "Hnub no yog hnub zoo!", nws khaws cov lus tseem ceeb "Zoo" thiab ua rau muaj kev xav zoo siab 'Zoo siab' uas ua rau lub ntsej muag zoo siab.

Puas yog cov pob ntseg ntawm Ewon?

Cov kauj ruam tom ntej yuav yog siv qhov kev xav ua kom muaj lub ntsej muag zoo ib yam. Nrog Ewon, lub ntsej muag qhia tau pom tab sis txav nws pob ntseg thiab caj dab siv servos thiab hloov cov zaub los hloov qhov muag txav.

Ua ntej, cov servos, los khiav qhov no nws yooj yim yooj yim koj tuaj yeem ua raws cov ntawv qhia no kom teeb tsa Adafruit servo library. Txuas:

Duab
Duab

Tom qab ntawd peb muab tus nqi siab kawg thiab yam tsawg kawg nkaus rau txhua qhov kev pabcuam. Qhov no yog ua tiav los ntawm kev txav tus kheej rau txhua qhov kev pabcuam thiab txheeb xyuas nws cov kev txwv. Koj tuaj yeem ua qhov no ib zaug koj tau teeb tsa Ewon.

Qhov muag rau Ewon

Txog qhov muag, Kuv tab tom siv Nextion zaub uas muaj cov duab zoo li hauv qab no.

Duab
Duab

Nws yog cov kab ke ntawm cov duab kuv tsim hauv photoshop uas thaum ua si hauv ib theem zuj zus ua cov duab. Ib ntu sib xws tau tsim rau txhua qhov kev xav. Tam sim no los tso saib ib qho kev xav txhua yam koj yuav tsum tau ua yog hu rau cov duab tshwj xeeb uas ua rau muaj cov duab. Cov ntaub ntawv nyob hauv 'Cov ntaub ntawv tso saib' nplaub tshev, rub tawm txuas hauv qab no.

Thaum kawg

Muab nws tag nrho ua ke thaum qhov kev xav zoo siab tau tshwm sim los ntawm tsab ntawv txoj haujlwm zoo siab tau hu thiab servo txav mus rau qhov tau teeb tsa cov ces kaum thiab tso saib ua lub ntsej muag zoo siab ua duab. Yog li qhov no yog qhov peb ua tiav "nkag siab" ntawm tib neeg txoj kev xav. Txoj kev no tsis yog qhov zoo tshaj plaws thiab muaj qee lub sij hawm thaum cov ntsiab lus tsis poob rau hauv qhov kev xav zoo ib yam tau npaj ua ntej, tab sis tam sim no, qhov no ua haujlwm tau zoo txaus thiab koj ib txwm tuaj yeem ntxiv cov ntsiab lus ntxiv txhawm rau ua kom raug qhov tseeb. Ntxiv mus, qhov no tuaj yeem hloov pauv los ntawm kev kawm paub ntau ntxiv txog kev xav zoo ib yam li Paralleldots Emotion tsom qauv kom tau txais txiaj ntsig zoo dua. Tab sis thaum kuv sim nws muaj ntau qhov qeeb uas yuav ua rau Ewon ua rau qeeb dua. Tej zaum Ewon version 2.0 yuav muaj qee yam zoo li no.

Nov yog qhov txuas rau txhua cov ntaub ntawv xav tau los khiav EWON. Rub tawm cov ntawv thiab ua raws cov theem hauv qab no:

  • Unzip cov ntawv tso rau daim nplaub tshev no (Ewon) tom tsev/pi/
  • Ntxiv Ntaus Tus Qauv thiab Tus Qauv ID hauv daim ntawv main.py. Tus lej tau txais thaum txhim kho google pabcuam SDK.
  • Qhib qhov hais kom ua sai thiab khiav lub hauv paus ntawm cov lus txib hauv qab no:

qhov chaw env/bin/activatepython main.py qauv/Ewon.pmdl

Kauj Ruam 3: Luam Ntawv Lub Cev

Koj tuaj yeem pom cov ntawv 3d ntawm no:

Tam sim no peb txhua tus tau teeb tsa nrog lub hlwb ntawm Ewon nws lub sijhawm luam tawm nws lub cev. Muaj 18 qhov tshwj xeeb uas yuav tsum luam tawm, feem ntau ntawm lawv yog qhov me me zoo nkauj, nrog rau tag nrho cov sijhawm luam tawm ntawm ib ncig 15-20 teev. (tsis suav cov rooj plaub).

Kuv siv PLA dawb nrog 50% ntxiv thiab txheej qhov siab ntawm 2mm. Koj tuaj yeem hloov cov txiaj ntsig no yog tias xav tau nws yuav tsum ua haujlwm zoo tab sis xyuas kom tseeb tias cov khoom me me muaj 100% ntxiv, kom muaj zog.

Tom qab cov ntaub ntawv tau luam tawm lawm koj tuaj yeem siv cov ntawv xuab zeb lossis cov ntaub ntawv txhais tes thiab ntxuav tawm cov ntawv luam tawm tshwj xeeb tshaj yog cov ntawv txuas uas cov ntu swb ib leeg. Ua kom cov pob qij txha sib zog ua kom lub tshuab ua haujlwm tau zoo thiab yuav muab kev tiv thaiv tsawg dua rau servo. Cov txheej txheem no tuaj yeem siv sijhawm ntev li koj xav tau raws li ib tus tuaj yeem ploj sim ua kom cov ntawv luam tawm zoo zoo.

Cov ntawv sau ntxiv: Koj tuaj yeem rov xyaum qhov hauv qhov 3d luam tawm qhov siv 3mm me ntsis. Txhua qhov yog ntawm qhov ntev tib yam. Qhov no yuav ua kom yooj yim dua thaum ntswj rau hauv cov txiv ntoo tom qab ntawm kev sib dhos.

Kauj Ruam 4: Muab Ewon Ua Ke

Muab Ewon Ua Ke
Muab Ewon Ua Ke
Muab Ewon Ua Ke
Muab Ewon Ua Ke
Muab Ewon Ua Ke
Muab Ewon Ua Ke
Muab Ewon Ua Ke
Muab Ewon Ua Ke

Ua ntej peb pib nrog lub rooj sib txoos muaj qee qhov kev hloov kho xav tau rau cov ntawv luam tawm. Cov ntaub ntawv npe servo txuas yuav tsum tau txuas nrog servo txuas uas tuaj nrog servo, qhov no ua rau 3d luam ntawv txuas los txuas tau zoo nrog lub servo.

Kev sib dhos ntawm Ewon yuav tsum ncaj nraim rau pem hauv ntej. Kuv tau txuas cov duab rau koj ua raws.

Cov ntawv sau ntxiv: Nco ntsoov tias koj tsis thim ib qho ntawm cov ntsia liaj qhov rooj lossis cov ntsia hlau vim qhov no yuav tawg thiab hnav cov ntawv luam tawm.

Kauj Ruam 5: Txuas Txuas Ewon

Kev Tiv Thaiv Ewon
Kev Tiv Thaiv Ewon
Kev Tiv Thaiv Ewon
Kev Tiv Thaiv Ewon
Kev Tiv Thaiv Ewon
Kev Tiv Thaiv Ewon

Peb nyob ntawm cov kauj ruam kawg kom Ewon los ua lub neej. Nov yog daim duab kab xev rau cov khoom siv nrog rau cov duab qhia txog kev sib txuas.

  • Servo tsav tau txuas nrog I2C tus pin uas yog SDA thiab SCL ntawm RPI.
  • Cov zaub tau txuas nrog RX thiab TX pins ntawm RPI
  • Lub mloog pob ntseg thiab hais lus tau txuas nrog USB Card daim npav uas txuas nrog RPI los ntawm USB chaw nres nkoj.

Lus ceeb toom: Ceev faj kom luv koj li RPI. Thov txheeb xyuas txhua qhov koj txuas ob zaug thiab xyuas kom koj tsis tau ua yuam kev. Txhua yam khoom siv uas yog tus hais lus, tus tsav tsheb servo, thiab cov khoom siv tau siv los ntawm 5v roj teeb cais thiab tsis txhob siv kab Raspberry Pi 5v. Raspberry pi tsuas yog siv los xa cov ntaub ntawv rau cov khoom siv tab sis tsis yog los txhawb lawv.

Kauj Ruam 6: Hey Ewon! Koj Puas Paub Kuv?

Hlo Ewon! Koj Puas Paub Kuv?
Hlo Ewon! Koj Puas Paub Kuv?

Yog li peb tau txuas tag nrho peb cov khoom siv thiab teeb tsa txhua lub tsev qiv ntawv tsim nyog. Koj tuaj yeem pib Ewon los ntawm kev siv lub plhaub tsab ntawv siv./run Ewon.sh Tab sis dab tsi no.sh tsab ntawv? Ewon siv ntau lub tsev qiv ntawv sib txawv nrog cov ntawv sib txawv (Google pabcuam SDK, Snowboy, Adafruit, thiab lwm yam). Txhua cov ntawv sau tau muab tso rau hauv lawv cov ntawv tais ceev tseg. (Peb tuaj yeem txav tag nrho cov ntaub ntawv hauv tib txoj kev thiab muaj tag nrho cov ntawv sau ua ke tab sis tam sim no, qee lub tsev qiv ntawv tsis tso cai txav cov ntaub ntawv los, yog li, tam sim no, peb tsuas yog khaws lawv hauv lawv qhov chaw nkaus xwb).sh yog lub plhaub ntawv uas khiav tag nrho cov ntawv ib los ntawm ib qho los ntawm txhua qhov chaw yog li koj tsis tas yuav ua tus kheej mus rau txhua qhov chaw thiab khiav cov ntawv sau. Qhov no ua rau nws yooj yim los lis txhua cov lus txib.

Thaum koj khiav lub plhaub tsab ntawv tsuas yog hais "Hey Ewon!" thiab koj yuav tsum pom Ewon pib mloog koj. Tam sim no koj tuaj yeem siv Ewon ua tus pabcuam google thiab tham nrog nws thiab koj tuaj yeem pom Ewon hloov cov kab lus los ntawm qhov koj hais. Sim qee yam xws li "Hav Ewon! Kuv tu siab hnub no "thiab koj tuaj yeem pom Ewon tu siab nrog koj. Nug Ewon rau qhov tso dag thiab pom nws luag ntawm qhov tso dag.

Kauj Ruam 7: Dab Tsi Ntxiv?

Ewon tsis nres ntawm no. Ewon tam sim no muaj txoj hauv kev los tshuaj xyuas thiab qhia kev xav tab sis peb tuaj yeem ua kom nws ua ntau yam ntxiv. Nov yog qhov pib xwb.

Hauv qhov hloov tshiab yuav los tom ntej, peb yuav ua haujlwm seb yuav ua li cas

  • Ewon kuaj pom lub ntsej muag thiab taug qab koj lub ntsej muag thiab txav nrog koj lub ntsej muag.
  • Peb yuav ntxiv cov suab los muab qhov tob ntxiv rau tus ua cim.
  • Ntxiv kev txav mus kom Ewon tuaj yeem txav nrog koj.

Nco tseg: Vim yog qhov xwm txheej tam sim no nws tau nyuaj heev rau qhov chaw rau qhov haujlwm. Qhov no ua rau kuv hloov kev tsim qauv thiab kev ua haujlwm txiav txim siab qhov kev xav uas kuv muaj hauv kuv cov khoom muag. Tab sis sai li sai tau thaum kuv tau txais kuv txhais tes ntawm txhua ntu mob hloov kho txoj haujlwm saum toj no.

Hloov tshiab:

  • Ua qee qhov kev hloov pauv hauv cov cai, tshem tawm cov ntawv plhaub.
  • Ntxiv lub cev plaub fab rau EWON.

Pom zoo: