Cov txheej txheem:

Smile Activated Marshmallow Launcher: 4 Kauj Ruam (nrog Duab)
Smile Activated Marshmallow Launcher: 4 Kauj Ruam (nrog Duab)

Video: Smile Activated Marshmallow Launcher: 4 Kauj Ruam (nrog Duab)

Video: Smile Activated Marshmallow Launcher: 4 Kauj Ruam (nrog Duab)
Video: CGI Animated Short Film: "Mind Games" by Jiaqi Emily Yan | CGMeetup 2024, Kaum ib hlis
Anonim
Image
Image

Koj puas xav txhawb cov qhua, cov npoj yaig, cov phooj ywg thiab tsev neeg kom muaj kev zoo siab? Koj xav tau Lub ntsej muag luag nyav qhib Marshmallow Launcher. Raspberry Pi siv "SAML" pom lub luag nyav thiab tom qab ntawd tso marshmallow ntawm nws - kev zoo siab them tawm!

Kauj Ruam 1: Cheebtsam, Software thiab Cov Cuab Yeej

Txhim Kho Software
Txhim Kho Software

Txhawm rau tsim koj SAML koj yuav xav tau:

Cheebtsam

  1. Raspberry Pi Qauv 3 -
  2. MotoZero lub cev muaj zog tswj hwm -
  3. Micro Hlau Gearmotor-https://thepihut.com/products/micro-metal-gearmot…
  4. 4 xAA Holder Battery-https://thepihut.com/products/adafruit-4-x-aa-bat…
  5. Webcam
  6. Saib xyuas
  7. Wifi Dongle
  8. Keyboard
  9. Nas
  10. USB thiab Cov Hluav Taws Xob rau Raspberry Pi
  11. Hlau
  12. 4 AA roj teeb
  13. Qho khoom ua si Catapult
  14. Tsho Khaub Ncaws
  15. Txoj hlua
  16. Kev Nyab Xeeb Pin
  17. Solder
  18. Cov Kab Xev
  19. Marshmallows!

Software

  1. Raspbian -
  2. Qhib CV - Qhib Qhov Chaw Pom Lub Computer -
  3. Smile Detection Software - rub tawm los ntawm.zip cov ntaub ntawv hauv qab no

Cov cuab yeej

  1. Soldering Hlau
  2. Ntsia Hlau me me
  3. Hlau Stripper
  4. Hlau Cutter
  5. Txiab
  6. Pliers

Npaj? OK - cov kauj ruam tom ntej…

Kauj ruam 2: Txhim Kho Software

OK yog li koj tau sau cov khoom. Pib los ntawm kev tsom mus rau Raspberry Pi. Txuas lub hwj chim, keyboard thiab nas, internet (wifi dongle lossis ethernet), saib xyuas thiab USB lub koob yees duab. Hloov lub zog thiab thaum koj nyob online, rub Raspbian.

Tom ntej no koj yuav tsum rub tawm Qhib CV, lub khoos phis tawj lub zeem muag pom kev, thiab tom qab ntawd luag pom lub ntsej muag software hauv.zip cov ntaub ntawv hauv qab no. Muaj Cov Lus Qhia Zoo ntawm https://www.instructables.com/id/Smile-Detection-W… uas yuav coj koj mus txog qhov no. Peb hloov kho qhov luag nyav nrhiav software los ntawm kev tso cov lus qhia los ntawm MotoZero lub cev tswj lub tshuab phau ntawv kom tsis txhob luam tawm cov lus ntawm lub vijtsam, Raspberry Pi hloov chaw ua haujlwm lub cev muaj zog ntawm GPIO pins thiab MotoZero lub cev muaj zog tswj (peb yuav los ua li cas teeb tsa lawv tom qab). Kev hloov kho qhov luag nyav nrhiav software suav nrog cov lus qhia rau lub cev kom khiav ib nrab ib pliag thaum pom luag ntxhi.

Kauj Ruam 3: Sib dhos Cov Khoos Phis Tawj

Sib dhos cov cuab yeej
Sib dhos cov cuab yeej

Koj twb tau sau ua ke Raspberry Pi, thiab teeb tsa lub software, yog li tam sim no nws yog lub sijhawm kom muaj tswv yim nrog lub launcher. Rau peb qhov no txhais tau tias yoog raws qhov tawg tawg qub uas cov menyuam tau dag ib puag ncig. Muaj ntau txoj hauv kev rau lwm lub launchers, tab sis cov tswj hluav taws ua haujlwm zoo li no.

Pib nrog MotoZero lub cev muaj zog tswj. Ua raws li cov lus qhia kom muab cov khoom sib dhos ua ke. Tom qab ntawv txuas rau GPIO tus pin ntawm Raspberry Pi. Tom qab ntawd ntxig 4 lub roj teeb AA rau hauv lub roj teeb thiab txuas rau lub hwj chim ntawm MotoZero. Ceev faj siv qhov tseeb. Tom qab ntawd txuas Micro Hlau Gearmotor mus rau MotoZero lub dav hlau rau lub cev muaj zog 1.

Tom ntej no koj yuav tsum txiav txim siab yuav siv li cas 0.5 thib ob kev sib hloov ntawm Gearmotor kom ua rau lub foob pob hluav taws. Rau peb qhov no koom nrog kaw lub cav mus rau sab ntawm lub catapult, kaw qee txoj hlua nrog txiav tus pin kom nyab xeeb ntawm lwm qhov kawg mus rau lub qag ntawm Gearmotor, thiab pub qhov no los ntawm tus tuav tuav los ntawm khoov lub tsho khuam kom peb tuaj yeem tuav tau caj npab ntawm catapult nqes los thiab tso nws los ntawm kev tig lub cev muaj zog thiab tso txoj hlua ib ncig ntawm lub qag.

Yuav muaj ntau txoj hauv kev los ua qhov no.

Tom ntej no teeb tsa catapult nrog lub vev xaib kom cov marshmallow raug rho tawm ntawm lub ntsej muag luag ntxhi.

Thaum kawg, tuav lub catapult thiab nqa nrog marshmallow!

Kauj ruam 4: Qhib

Qhib!
Qhib!

Kho vajtse tag nrho teeb? Cov theem tom ntej yog txhawm rau Ua Haujlwm Kev Tshawb Fawb Python.

Pib los ntawm qhib lub davhlau ya nyob twg qhov rai. Yog tias koj tau teeb tsa lub software ntawm koj lub desktop koj yuav xav tau cov lus txib hauv qab no:

cd duab

cd luag_detection

sudo smile_detection_Rosemodification.py

Qhov no yuav tsum qhib lub nplaub tshev raug thiab tom qab ntawd khiav lub software. Lub qhov rai yuav qhib uas pom lub webcam saib, thiab thaum koj luag ntxhi tau lees paub - lub cav yuav khiav, ua rau lub catapult.

Txaus siab rau!

Pom zoo: