Cov txheej txheem:

Plantagotchi! Ntse Planter: 8 Kauj Ruam (nrog Duab)
Plantagotchi! Ntse Planter: 8 Kauj Ruam (nrog Duab)

Video: Plantagotchi! Ntse Planter: 8 Kauj Ruam (nrog Duab)

Video: Plantagotchi! Ntse Planter: 8 Kauj Ruam (nrog Duab)
Video: AQUASCAPING COUCH Ep. 6 - INTERVIEW WITH TROPICA CEO, LARS GREEN 2024, Hlis ntuj nqeg
Anonim
Plantagotchi! Ntse Planter
Plantagotchi! Ntse Planter
Plantagotchi! Ntse Planter
Plantagotchi! Ntse Planter

Plantagotchi tuag yog li koj cov nroj tsuag tsis tas yuav.

Tsis ntev los no kuv tau los ua tus tswv tswv ntawm tsev cog khoom tshiab (hu ua Chester) thiab kuv xav kom nws muaj lub neej nyob ntev thiab noj qab nyob zoo. Hmoov tsis zoo, kuv tsis muaj tus ntiv tes xoo ntsuab. Kuv tau ntseeg tam sim ntawd tias kuv yuav xa Chester mus rau qhov ntxa thaum ntxov yog tias kuv tsis tau txais kev pab. Nws twb tau tu siab me ntsis saib thaum kuv tau txais nws.

Nov yog qhov kuv tuaj nrog Plantagotchi - cov cog cog ntse uas qhia rau koj paub thaum koj tab tom ua niam txiv cog tsis zoo. Plantagotchi hloov koj cov nroj tsuag mus rau hauv cyborg uas tawm tswv yim thaum nws tsis xav tau. Yog tias nws tsis tau tshav ntuj lossis dej txaus nws tuag (nws lub qhov muag tig mus rau Xs). Qhov no tso cai rau koj kom ua rau koj cov nroj tsuag ua ntej nws yuav lig dhau lawm!

Nco tseg: qhov no yog kev nkag mus rau Planter Challenge & Kuv siv Tinkercad hauv kuv qhov kev tsim.

Kauj Ruam 1: Tsim Kev Txhawb Siab & Ua Haujlwm

Tsim Kev Txhawb Siab & Ua Haujlwm
Tsim Kev Txhawb Siab & Ua Haujlwm
Tsim Kev Txhawb Siab & Ua Haujlwm
Tsim Kev Txhawb Siab & Ua Haujlwm
Tsim Kev Txhawb Siab & Ua Haujlwm
Tsim Kev Txhawb Siab & Ua Haujlwm

Thaum npau suav txog Plantagotchi, Kuv xav txog tus ntoo khaub lig nruab nrab ntawm Tamagotchi (cov tsiaj digital los ntawm 90s uas tsis tuaj yeem ua kom muaj sia nyob), thiab Anana (cov txiv hmab txiv ntoo anthropomorphic los ntawm cov peev txheej qis 80s Canadian Fab Kis kev kawm qhia - Téléfrancais!)

Hauv theem pib yooj yim tshaj plaws, Kuv nkag siab tias kuv tsob ntoo xav tau ob yam txhawm rau kom muaj sia nyob: Dej, thiab Teeb. Raws li, Plantagotchi muaj lub ntsuas dej thiab lub teeb pom kev zoo. Yog tias tsob ntoo tsis tau txais lub teeb rau lub sijhawm ntev, lossis yog tias nws cov dej qhuav, Plantagotchi lub qhov muag tig mus rau Xs.

Thaum nruab hnub, Plantagotchi ob lub qhov muag ntsia ib ncig ntawm chav. Thaum nws tsaus ntuj nws kaw lawv (saib video hauv intro). Qhov no muab nws me ntsis ntawm tus kheej!

Kauj Ruam 2: Sib sau Cov Khoom Siv

Sib Sau Cov Khoom Siv
Sib Sau Cov Khoom Siv
Sib Sau Cov Khoom Siv
Sib Sau Cov Khoom Siv

Qhov no tsis yog txoj haujlwm nyuaj; Txawm li cas los xij, Kuv tsis pom zoo nws rau qhov pib ua tiav rau cov laj thawj hauv qab no:

  • Koj yuav tsum tau muab cov ntxaij vab tshaus TFT
  • Koj yuav tsum xis nyob txhim kho thiab daws teeb meem Arduino cov tsev qiv ntawv
  • Yog tias koj xav hloov kho qhov muag tsim koj yuav tsum tau ua haujlwm Python hauv kab hais kom ua.

… Yog tias txhua yam no zoo OK - cia peb pib !!

Lub qhov muag yog raws li qhov qhia tau zoo Adafruit: Electronic Animated Eyes siv Teensy. Kuv tau hloov kho kom hloov kho txoj haujlwm no, tab sis thawj qhov kev qhia muaj ntau cov peev txheej zoo thiab cov lus qhia daws teeb meem yog tias cov ntxaij vab tshaus tsis ua haujlwm zoo.

Cov khoom siv rau lub qhov muag & cov cim:

  1. 2 cov ntxaij vab tshaus TFT me me
  2. Teensy 3.1 lossis 3.2 microcontroller
  3. Hlau
  4. Photoresistor
  5. 10K Ohm resistor
  6. 2 cov ntsia hlau me me
  7. 2 Qaib Qaib (xaiv tau)
  8. Me ntsis ntawm daim txhuam cev
  9. Cov qhob cij
  10. Cov neeg hlau
  11. Cov tshuab hluav taws xob xev
  12. 3D luam ntawv rooj rau qhov muag

Cov khoom siv rau soldering

  1. Soldering hlau
  2. Solder
  3. Solder wick (yog tias koj ua yuam kev)

Cov khoom siv rau cog:

  1. Cov kas fes loj loj
  2. Lub thawv khoom qab zib nyuaj rau lub tsev microcontroller (Kuv siv pob ntawm Excel mints)
  3. Acrylic xim
  4. Txhuam txhuam
  5. Txiab
  6. Ntsia & rauj rau xuas qhov
  7. Daim npog qhov ncauj (xaiv tau - tsis muaj duab)
  8. Lub thawv kua txiv (xaiv tau - tsis muaj duab)
  9. Phom phom (yeem)
  10. Tinfoil rau kho kom zoo nkauj (xaiv tau - tsis muaj duab)

Kauj Ruam 3: Ua Kom Qhov Muag Ua Haujlwm

Tau Qhov Muag Ua Haujlwm
Tau Qhov Muag Ua Haujlwm
Tau Qhov Muag Ua Haujlwm
Tau Qhov Muag Ua Haujlwm
Tau Qhov Muag Ua Haujlwm
Tau Qhov Muag Ua Haujlwm

Raws li tau hais yav tas los, Kuv tau ua raws li Adafruit cov lus qhia no kom tau lub qhov muag pib teeb tsa.

Kev qhia Adafruit muaj cov lus qhia ntxaws ntau dua li kuv muaj chaw los npog ntawm no. Kuv yuav piav qhia cov lus qhia dav dav, thiab hais txog cov kev cov nyom uas kuv tau ntsib.

1. Siv cov xov hlau txuas rau lub vijtsam. Koj yuav tsum txuas cov xov hlau rau cov pins hauv qab no:

  • VIN
  • GND
  • SCK
  • SI
  • TCS
  • RST
  • D/D

Kev Sib Tw - Kuv tau siv lub taub hau rau kuv lub vijtsam tam sim rau kev ua zaub mov noj, tab sis tom qab ntawd lawv yuav tsis haum rau hauv 3D lub thawv ntawv luam tawm. Qhov no txhais tau tias kuv yuav tsum tau tshem lawv thiab rov ua dua ntawm cov xov hlau. Hla qhov kev ntxhov siab no los ntawm kev siv xov hlau hloov chaw ntawm lub hauv paus.

2) Nruab Teensyduino libraryChallenge - tsis txhob cia lub installer suav nrog ib lub tsev qiv ntawv Adafruit thaum koj mus dhau txheej txheem teeb tsa. Cov tsev qiv ntawv no dhau lawm, thiab yuav ua rau koj cov cai cuam tshuam yuam kev.

3) Ntsuas TeensyUpload qhov yooj yim ntsais muag kom pom yog tias koj Teensyduino kev teeb tsa ua tiav.

4) Txhim kho cov tsev qiv ntawv duab hauv Arduino IDE Koj yuav xav tau Adafruit_GFX lub tsev qiv ntawv, thiab Adafruit_ST7735 lub tsev qiv ntawv

5) Hlau txuas qhov screen rau Teensy siv lub khob cij txuas koj cov xov hlau raws li hauv qab no rau Teensy (nyem qhov no rau daim duab qhia chaw ntawm Teensy tus pin)

  • VIN - USB
  • GND - NCO
  • SCK - SPI CLK
  • SI - SPI MOSI
  • TCS - Pin 9 (sab laug lub qhov muag), lossis 10 (sab xis qhov muag)
  • RST - Tus Pin 8
  • D/C - Tus Pin 7

6) Tshaj tawm "qhov muag tsis pom kev" cov ntaub ntawv rau Teensy Nws yog qhov zoo tshaj los pib nrog tus lej qub los ntawm Adafruit Tutorial, ntau dua li kuv hloov kho, raws li kuv tsuas yog tso saib Xs tsis siv lub qhov muag thaum tsis muaj lub ntsej muag.

Kev Sib Tw -Breadboarding nrog TFT cov ntxaij vab tshaus tuaj yeem ua rau mob vim lawv nkag siab heev. Yog tias cov xov hlau tsis tau muag tau jiggled tag nrho, Kuv yuav xaus nrog lub vijtsam dawb kom txog thaum kuv rov qab kos duab dua. Soldering cov kev sib txuas tau kho qhov teeb meem no rau kuv.

Kauj Ruam 4: Kho Qhov Muag Tsim

Lub qhov muag tsis zoo uas tuaj nrog lub tsev qiv ntawv no muaj tiag tiag. Txawm li cas los xij, lawv xav tias txaus ntshai heev rau txoj haujlwm no - Kuv xav tau qee yam ntxiv zoo li qhov muag pom.

Txhawm rau ua koj tus kheej qhov muag, hloov kho cov ntaub ntawv-p.webp

Nov yog cov lus txib koj yuav tsum tau khiav kom tsim tau cov bitmap tshiab (nco ntsoov koj xav tau Python* & ntau pob khoom suav nrog PImage rau qhov no kom ua haujlwm tau zoo).

nab hab sej tablegen.py defaultEye/sclera-p.webp

Thaum koj khiav tsab ntawv, cov ntaub ntawv tshiab.h yuav tsum tshwm sim. Cias rub cov ntawv no mus rau hauv tib daim nplaub tshev raws li cov ntaub ntawv uncannyEyes.ino, thiab tom qab ntawd hloov kho #include sectionin hauv Arduino code kom nws paub saib rau koj li tshiab.h ua ntaub ntawv thov. Thaum koj tso cov cai rau Teensy, koj cov ntxaij vab tshaus yuav tsum tso saib koj lub qhov muag tsim tshiab.

*Nco ntsoov tias cov ntaub ntawv tablegen.py los ntawm Adafruit nyeem tsuas yog ua haujlwm ntawm Python 2. Cov ntawv kuv tau tshaj sau ua haujlwm nrog Python 3.

Kauj Ruam 5: Luam Ntawv 3D

3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv
3D Luam Ntawv

Kuv yeej tsis tau luam tawm 3D ua ntej, yog li qhov no zoo siab heev!

Kuv xub xav sau tag nrho lub lauj kaub nrog txiav tawm rau qhov muag & microcontroller, tab sis kuv tsis paub meej txog kev xa khoom ntawm kev luam qee yam me me. Kuv txiav txim siab hloov qhov pib me me los ntawm kev siv hloov kho ntawm 3D luam ntawv casing muaj nyob hauv Adafruit nyeem. Nws tau pheej yig dua los luam tawm, thiab tuaj yeem siv dua hauv lwm txoj haujlwm yav tom ntej.

Kuv xav tias kev hloov kho cov ntaub ntawv 3D yuav yog qhov nyuaj tshaj plaws ntawm txoj haujlwm no, tab sis nws tau dhau los ua qhov yooj yim txaus luag. Kuv siv Tinkercad, thiab cov txheej txheem onboarding tsuas yog siv ob peb feeb.

Tom qab ua si ib puag ncig ob peb feeb ua cov qauv vwm (rau cov phiaj xwm yav tom ntej). Kuv muab cov ntaub ntawv.stl los ntawm Adafruit, thiab tom qab ntawd ntxiv cov ceg txheem ntseeg los pab nws sawv hauv av. Kuv tsuas yog yuav tsum tau rub thiab tso lub duab plaub kom haum rau qhov tsim thiab hloov pauv. Yooj yim! Nws tau npaj txhij rau luam tawm tsis muaj sijhawm.

Cov txheej txheem no tsis yog yam tsis muaj tib neeg ua yuam kev tab sis - kuv yuam kev xa cov ntaub ntawv tsis raug mus rau lub khw luam ntawv, thiab xaus nrog tsuas yog "pem hauv ntej" daim (ob qho nrog cov duab plaub fab sib koom nrog, ob yam tsis muaj), thiab tsis kaw qhov thim rov qab. Qhov no ua haujlwm tau zoo txawm hais tias, cov khoom ua ntej ntxiv tuaj yeem ua ob zaug ua nraub qaum, thiab qhov loj ntxiv ua rau nws yooj yim dua hla cov xov hlau hla (qhov yuam kev yeej!)

Kev tsim 3d luam tawm los ntawm Adafruit kuj tseem muaj qhov chaw kom suav nrog cov yas hlaws puag ncig rau saum kom ua rau lub qhov muag pom tseeb dua. Kuv txiav txim siab tom qab luam ntawv tias kuv tsis xav suav nrog qhov no vim tias nws tau txheeb xyuas ntawm lub hav tsis paub, yog li kuv tau npog qhov khoob no sab laug ntawm ib sab ntawm lub vijtsam nrog kws kho hluav taws xob daim kab xev. Daim kab xev kuj pab tiv thaiv kuv cov khoom tiv thaiv los ntawm ya raws. Pom zoo, cov kws kho hluav taws xob daim kab xev tsis yog qhov kev daws teeb meem mus sij hawm ntev. Yog tias kuv rov ua qhov haujlwm no kuv yuav hloov kho kuv cov khoom 3D kom haum rau kuv tus qauv tsim tau zoo dua.

Kuv tau txuas kuv qhov hloov kho ntawm 3D casing hauv qab no. Lub hauv paus tuaj yeem pom ntawm qhov txuas no.

Kauj Ruam 6: Ntxiv Sensors thiab Housing Microcontroller

Ntxiv Sensors thiab Housing Microcontroller
Ntxiv Sensors thiab Housing Microcontroller
Ntxiv Sensors thiab Housing Microcontroller
Ntxiv Sensors thiab Housing Microcontroller
Ntxiv Sensors thiab Housing Microcontroller
Ntxiv Sensors thiab Housing Microcontroller

Lub teeb Sensor

Kuv tau ua raws daim duab los ntawm Adafruit lub vev xaib txhawm rau txuas lub photoresistor txhawm rau pin A3 ntawm lub microcontroller.

Hauv txoj cai, thaum tus nqi hluav taws xob photoresistor qis dua qhov pib, Plantagotchi nkag mus pw hom. Nws lub qhov muag kaw, thiab lub timer pib. Yog tias lub sijhawm txuas ntxiv rau 24 teev yam tsis muaj kev cuam tshuam, Plantagotchi lub qhov muag tig mus rau Xs qhia tias nws xav tau qee lub teeb.

Nco tseg: cov nroj tsuag xav tau lub teeb pom kev zoo kom loj hlob, tab sis Photoresistor nkag siab zoo rau lub ntuj thiab lub teeb ci. Yog li ntawd nws yog qhov tseem ceeb rau kev teeb tsa Plantagotchi xws li lub ntsuas cua no yuav tsis tig mus rau qhov pom kev sab hauv tsev.

Dej Sensor

Kuv nyeem tias cov ntsuas dej xeb yooj yim, yog li kuv txiav txim siab mus super DIY rau qhov no yog li nws tuaj yeem hloov pauv tau yooj yim. Kuv txuas cov kais dej rau ob kab thiab txuas ib qho rau hauv av, thiab lwm qhov los pin A0. Yog tias A0 tsis txuas nrog hauv av, nws feem ntau khaws cov txiaj ntsig ib puag ncig 50-150, thaum kuv txuas nws mus rau hauv av qhov tseem ceeb nqis mus rau 1. Kuv siv cov nab kuab tuav mus rau ob lub ntsia hlau galvanized, uas kuv tau nyob ze ua ke siv ib qho ntawm daim txhuam cev Qhov kev txiav txim yog raws li hauv qab no:

(Hauv av ----- Ntsia1 [daig hauv daim txhuam cev] Ntsia2 <------ A0)

Bromeliads khaws cov dej hauv khob uas ua hauv paus ntawm lawv cov nplooj (saib duab). Thaum daim txhuam cev ntub los ntawm cov dej hauv khob no, ob lub xov hlau tuav kev sib txuas, thiab A0 tus nqi ntsuas tseem qis. Thaum daim txhuam cev qhuav, txawm li cas los xij, qhov kev sib txuas tau tawg, thiab tus nqi nkag tau nce. Qhov no ua rau Plantagotchi lub qhov muag tig mus rau Xs.

Cov khoom vaj khoom tsev

Txhawm rau tiv thaiv kuv cov khoom Kuv tau siv pob ntawv mints uas haum rau kuv cov hluas, nws txawm tias muaj lub hau nrog lub qhov yog qhov loj me rau cov xov hlau. Kuv qhwv lub pob hauv kab xev hluav taws xob kom nws zoo li qhov muag.

Thaum kawg kuv qhwv lub xov hlau sensor nrog daim kab xev dub ib yam vim tias nws khaws cov xov hlau ua ke thiab ua rau lawv txav tau yooj yim dua. Yog tias kuv yuav rov ua txoj haujlwm no, Kuv yuav twv yuav raug nqis peev hauv qee qhov Tshav Kub Kub thiab cia siab rau daim kab xev tsawg dua.

Kauj Ruam 7: Kho lub lauj kaub & Ntxiv Chaw rau Microcontroller

Kho lub lauj kaub & Ntxiv Chaw rau Microcontroller
Kho lub lauj kaub & Ntxiv Chaw rau Microcontroller
Kho lub lauj kaub & Ntxiv Chaw rau Microcontroller
Kho lub lauj kaub & Ntxiv Chaw rau Microcontroller
Kho lub lauj kaub & Ntxiv Chaw rau Microcontroller
Kho lub lauj kaub & Ntxiv Chaw rau Microcontroller

Tau siv nyiaj ntau dua ntawm cov khoom thiab 3d luam ntawv uas kuv mob siab lees paub, Kuv xav ua lub lauj kaub kom pheej yig li sai tau.

Kuv rov qab siv lub kas fes kas fes uas haum zoo me me ntawm kuv lub lauj kaub cog (txawm li cas los xij, kuv yuav tsum rauj rau ntawm daim di ncauj me ntsis kom nws tuaj yeem haum sab hauv). Ua ntej kho lub lauj kaub, Kuv ntsia qee qhov hauv qab yog tias nws puas tau hla dhau.

Raws li kuv xav khaws kuv cov khoom siv hluav taws xob me ntsis tshem tawm cov cog (dej + khoom siv hluav taws xob = tsis yog ib lub tswv yim zoo), Kuv txiav cov kua txiv hmab txiv ntoo thiab lo rau sab nraum qab ntawm lub peev xwm los tuav cov khoom. Qhov no ua rau lawv qhuav, thiab cia kuv tshem lawv yooj yim thaum xav tau.

Kuv tsis nyiam yuav ua li cas cov kua txiv hmab txiv ntoo tawm ntawm nraub qaum, yog li kuv siv daim npog qhov ncauj kom muab nws me ntsis. Tom ntej no, Kuv pleev xim txhua yam nrog cov xim acrylic. Rau kev kho kom zoo nkauj, Kuv tso ib txoj kab nyiaj ntawm cov tin, thiab ua raws qhov no ntawm cov kua txiv hmab txiv ntoo nrog cov kab me me ntawm tinfoil. Thaum kawg, kuv tau ntxiv kab txaij dub nrog cov kws kho hluav taws xob daim kab xev… vim li cas ho tsis!

Kauj Ruam 8: Muab Nws Ua Ke & Cov Kauj Ruam Ntxiv

Thawj qhov khoom plig hauv Planter Challenge

Pom zoo: