Cov txheej txheem:

Zam Tsis Pom Kev LED Cov Neeg Ua Haujlwm: 11 Kauj Ruam (nrog Duab)
Zam Tsis Pom Kev LED Cov Neeg Ua Haujlwm: 11 Kauj Ruam (nrog Duab)

Video: Zam Tsis Pom Kev LED Cov Neeg Ua Haujlwm: 11 Kauj Ruam (nrog Duab)

Video: Zam Tsis Pom Kev LED Cov Neeg Ua Haujlwm: 11 Kauj Ruam (nrog Duab)
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Hlis ntuj nqeg
Anonim
Kev ua haujlwm tsis pom kev ntawm Cov Neeg Ua Haujlwm LED
Kev ua haujlwm tsis pom kev ntawm Cov Neeg Ua Haujlwm LED
Kev ua haujlwm tsis pom kev ntawm Cov Neeg Ua Haujlwm LED
Kev ua haujlwm tsis pom kev ntawm Cov Neeg Ua Haujlwm LED
Zam Kev Pom Zoo ntawm Cov Neeg Ua Haujlwm LED
Zam Kev Pom Zoo ntawm Cov Neeg Ua Haujlwm LED

Nws paub zoo tias txawm tias tom qab lub teeb raug kaw, tib neeg lub qhov muag khaws "pom" nws rau ib feem ntawm ob. Qhov no hu ua Persistence of Vision, lossis POV, thiab nws tso cai rau ib tus "pleev xim" cov duab los ntawm kev txav ib kab ntawm LEDs sai sai, kos ib kab ntawm cov duab ib zaug ua ntu zus. Yog tias koj tshawb hauv online (piv txwv li ntawm Etsy), koj tuaj yeem pom ob peb qho khoom ua si raws li lub tswv yim no: pois, cov neeg ua haujlwm, thiab ntau ntxiv.

Txawm li cas los xij, cov no yog kim: tus nqi raug rau POV cov neeg ua haujlwm ntawm kev daws teeb meem pib ntawm $ 500, thiab lawv siv software muaj tswv, yog li tsis muaj txoj hauv kev yooj yim los hloov lawv tus cwj pwm lossis ntxiv kev ua haujlwm ntxiv. Yog li, thaum tab tom nrhiav khoom plig hnub yug rau tus phooj ywg uas nyiam pleev xim nrog lub teeb, Kuv txiav txim siab los tsim kuv tus kheej qhib qhov qhib version uas siv cov khoom npaj tau yooj yim.

Kuv qhov haujlwm tsim los ntawm Phillip Burgess thiab Erin St Blaine los ntawm Adafruit; txawm li cas los xij, Kuv tau hloov qee qhov, hloov kho cov khoom siv hluav taws xob. Hauv qab no yog cov yam ntxwv tseem ceeb ntawm txoj haujlwm no:

  • Nws yog tus neeg ua haujlwm ob tog, tag nrho ntev 141 cm (55in); nws tsis yog collapsible. Txhua sab ntawm cov neeg ua haujlwm muaj ob daim kab xev 50cm/72 pixels, rau tag nrho 288 LEDs. Yog li, koj tuaj yeem siv nws los qhia cov duab nrog 72-px daws teeb meem.
  • Cov neeg ua haujlwm tau siv ob lub roj teeb 18650 Li-Ion, uas yuav tsum txaus rau tsawg kawg 1 teev ua yeeb yam, muaj peev xwm ntau npaum li 2 teev, nyob ntawm qhov siv ntawm koj cov duab. Cov roj teeb tuaj yeem rov los ntawm micro-USB txuas; lub sijhawm them tag nrho yog kwv yees li 5 teev.
  • Cov duab (hauv hom bitmap) tuaj yeem muab xa mus rau cov neeg ua haujlwm tau yooj yim los ntawm kev txuas cov neeg ua haujlwm rau lub khoos phis tawj, qhov uas nws zoo li yog USB tso khoom. Nws muaj lub cim xeeb txaus rau txog 50 daim duab. Qhov kev txiav txim uas cov duab tau piav qhia tau piav qhia hauv cov ntawv cais cais, uas koj tuaj yeem tso cov npe ntawm cov duab thiab sijhawm. Ib daim duab tuaj yeem teev muaj ob peb zaug, lossis tsis muaj ib qho hlo li.
  • Cov neeg ua haujlwm muaj chav Inertial Motion Unit (IMU) uas tuaj yeem siv los tshuaj xyuas thaum cov neeg ua haujlwm tsis txav chaw. Lub software siv nws los kho qhov hloov pauv zaus rau cov duab, yog li cov duab yuav tsis zoo li nthuav lossis nthuav tawm txawm hais tias koj tig nws nrawm npaum li cas. Koj tseem tuaj yeem siv nws rau kev tswj hwm koj cov yeeb yam: piv txwv li nres cov neeg ua haujlwm kab rov tav yog siv los ua lub cim taw qhia kom txav mus rau cov duab tom ntej hauv daim duab swb.
  • Lub software yog ua raws Arduino IDE. Nws muaj nyob hauv qab daim ntawv tso cai qhib thiab yooj yim los hloov kho kom haum rau koj cov kev xav tau.

Txoj haujlwm no yog qhov qhib; txhua tus lej thiab cov lej muaj nyob hauv kuv qhov chaw khaws khoom github hauv MIT daim ntawv tso cai.

Khoom siv:

Koj yuav xav tau cov khoom siv hauv qab no:

  • APA102 (DotStar) LED sawb, 144 LED/meter, PCB dub, los ntawm Adafruit lossis Aliexpress. Koj xav tau 4 daim kab xev ntawm 50cm (72 LEDs); koj tseem tuaj yeem yuav cov kab ntev thiab txiav lawv mus rau hauv 50cm daim. Cov hlua yuav tsum tsis txhob muaj dej tsis haum. Adafruit cov hlua tuaj nrog cov dej tsis thwj uas koj tuaj yeem tshem tawm thiab muab pov tseg.
  • Ob lub roj teeb 18650 Li-Ion. Saib kom muaj peev xwm siab (tsawg kawg 3000mAh), tiv thaiv roj teeb los ntawm cov chaw tsim khoom muaj npe xws li Panasonic, Samsung, lossis Sanyo; Kuv pom zoo cov roj teeb no los ntawm Sanyo lossis Panasonic. Tsis txhob sim txuag nyiaj los ntawm kev yuav lub roj teeb tsis muaj npe ntawm eBay lossis Amazon.
  • Polycarbonate raj, 11F (55in/141cm), 1 nti txheej sab nrauv, los ntawm flowtoys.com
  • Ob qhov kawg thiab tuav tes ntaus pob tesniv rau lub raj los ntawm Amazon
  • 1/2 inch square wood dowel, los ntawm HomeDepot lossis lwm lub khw muag khoom kho vajtse. Koj xav tau 4 ft (lossis ob 2ft daim)
  • Adafruit ItsyBitsy M4 lossis ItsyBitsy nRF52840microcontroller. NRF52840 yog me ntsis kim dua, tab sis nws los nrog Bluetooth, uas qhib ntau qhov muaj peev xwm ntxiv. Txawm li cas los xij, tam sim no ntawm kuv tus lej tsis siv Bluetooth - qhov no tau npaj rau kev hloov kho yav tom ntej. Tsis txhob siv 32u4 lossis M0 ItsyBitsy - lawv tsis muaj RAM txaus rau peb lub hom phiaj.
  • Kev cai POV thaiv pawg thawj coj saib rau ItsyBitsy thiab ob txoj cai faib khoom faib khoom tsim los ntawm kuv tus kheej. Koj tuaj yeem ua rau lawv tus kheej los ntawm rub tawm cov duab, BOM, thiab Gerber cov ntaub ntawv los ntawm github, lossis yuav tag nrho peb qho ua ke los ntawm kuv lub khw ntawm Tindie
  • Rocker hloov
  • Kev xaim hluav taws xob: nws yog qhov zoo tshaj los siv cov kab hluav taws xob tiv thaiv silicone, vim nws hloov pauv tau ntau dua li niaj zaus PVC insulated ib qho. Koj xav tau 20 AWG xov hlau rau lub zog (2.5m liab, 1 m dub) thiab 24-26 awg rau teeb liab (ob xim sib txawv ntawm koj xaiv, 50 cm txhua)
  • 8mm txoj kab uas hla dub ntsws qhwv tubing, 1 meter
  • Peb JST XH 4 txoj haujlwm txuas nrog 15 cm lossis ntev dua cov hlau ua, 22awg. Cov txuas zoo li no feem ntau siv ua qhov ntsuas ua kom them cov roj teeb lithium. Nco tseg tias 4 txoj haujlwm txuas yuav raug muag raws li 3s ntsuas cov hlau lead (ib qho txhuas rau txhua lub roj teeb ntawm tes thiab ib qho rau hauv av). Yog tias koj nyiam crimping koj tus kheej txuas, koj tuaj yeem yuav hloov JST XH vaj tse thiab tiv tauj los ntawm Digikey lossis Mouser thiab ua koj tus kheej ua; qhov no yuav yooj yim qee cov kauj ruam hauv qab no.
  • 3d luam spacers thiab hloov mount. Cov ntawv STEP tuaj yeem pom hauv cov ntawv kho vajtse ntawm github chaw cia khoom. Koj yuav xav tau 3 spacers thiab ib qho hloov pauv hloov. Koj tuaj yeem siv txhua lub tshuab luam ntawv 3d thiab txhua yam ntsiab lus (PLA, ABS, …).
  • Nqaim (2mm) dub zipties. Nco tseg: feem ntau 4 hauv zipties muaj qhov dav ntawm 0.1 "= 2.5mm, uas yog dav heev rau peb - koj xav tau tiag tiag 2mm lossis nqaim.
  • Breakaway txiv neej headers, 0.1"

Yog tias koj tab tom yuav koj cov LEDs los ntawm AliExpress thiab tau npaj tos 3-4 lub lis piam rau kev xaiv xa khoom dawb, tag nrho tus nqi ntawm cov khoom siv saum toj no yuav yog kwv yees li $ 150 (suav nrog thauj khoom). Yog tias koj tab tom yuav koj cov LED los ntawm Adafruit, ntxiv $ 60 rau tus nqi saum toj no.

Yog tias koj xaiv txau-pleev xim rau cov ntoo ntoo dub kom zoo dua (pom zoo), koj kuj xav tau cov tshuaj tsuag xim dub.

Koj tuaj yeem yuav cov khoom siv ntawm cov khoom uas muaj qee qhov (tab sis tsis yog txhua yam!) Ntawm cov ntu saum toj no los ntawm kuv lub khw ntawm Tindie: https://www.tindie.com/stores/irobotics/. Txoj kev no, koj tuaj yeem zam kev yuav pob ntawm kaum tus hloov pauv thaum koj tsuas xav tau ib qho.

Cov cuab yeej

Koj yuav xav tau cov cuab yeej ib txwm muaj thiab cov khoom siv: cov hlua hlau, cov tshuab txiav, cov txiab, cov hlau zoo tsim nyog, qhwv qhwv, kab xev hluav taws xob, rab phom cua sov kom ua rau cov ntaub qhwv ntsws ntsws, cov qauv siv rab riam lossis rab riam siv tau zoo. Tsis tas yuav hais, koj tseem yuav xav tau lub khoos phis tawj los teeb tsa lub microcontroller thiab USB them nyiaj kom them lub roj teeb. Nws tau kwv yees tias koj twb muaj qee qhov kev paub dhau los nrog Arduino thiab nrog cov phiaj xwm hluav taws xob yooj yim, tsawg kawg ntawm qib ntawm kev siv lub taub hau txuas rau cov laug cam lossis txuas cov xov hlau.

Kauj ruam 1: Txheej txheem cej luam

Cov neeg ua haujlwm sib sau ua ke yuav suav nrog cov pawg hauv qab no:

  • Ob lub roj teeb 18650 thiab thaiv kab nruab nrab ntawm cov neeg ua haujlwm. Cov roj teeb tau sib cais los ntawm ib leeg thiab los ntawm cov khoom sib dhos LED los ntawm 3d luam spacers; tag nrho ntev ntawm cov roj teeb+spacers yog li 28 cm.
  • Ob lub rooj sib txoos LED, ib sab ntawm cov neeg ua haujlwm. Txhua lub rooj sib txoos muaj ob lub 50 cm LED kab txaij txuas rau ntawm tus ntoo. Cov kab hluav taws xob LED yuav muab muag rau ib puag ncig lub rooj faib khoom faib hluav taws xob ntawm qhov kawg ntawm sab hauv. Lub rooj sib txoos LED tau txuas nrog ib leeg thiab roj teeb los ntawm JST XH cov khoom sib txuas, ntsaws rau hauv lub taub hau ntawm lub rooj faib hluav taws xob.
  • Ntawm qhov kawg ntawm cov neeg ua haujlwm, muaj kev hloov pauv, nrog ob lub xov hlau coj los ntawm nws mus rau cov roj teeb nyob hauv nruab nrab thiab tiv thaiv los ntawm endcap nrog qhib rau qhov hloov.
  • Ntawm qhov kawg ntawm cov neeg ua haujlwm, tus tswj hwm, suav nrog ItsyBitsy microcontroller txuas nrog rau kev cai POV daim phiaj thaiv, tiv thaiv los ntawm endcap. Ib txoj hlua 4-xaim txuas rau hauv JST XH lub taub hau ntawm POV ntaub thaiv npog; cov xov hlau khiav qhov ntev ntawm LED sib dhos mus rau qhov chaw
  • Ntaus pob tesniv tuav cov kab xev npog cov roj teeb sib dhos hauv nruab nrab ntawm cov neeg ua haujlwm, kom tuav tau zoo dua.

Kauj ruam 2: Software

Yog tias koj siv cov khoom siv los ntawm kuv lub khw Tindie uas suav nrog ItsyBitsy M4 (qhov kev xaiv no tau ntxiv rau thaum Lub Kaum Ob Hlis 2020), koj tuaj yeem hla cov kauj ruam no - ItsyBitsy twb tau npaj ua ntej rau koj lawm

Peb pib los ntawm kev ua haujlwm rau ItsyBitsy microcontroller. Qhov no tuaj yeem ua tiav hauv ib ntawm ob txoj hauv kev:

- siv pre-built binary. Nov yog txoj hauv kev yooj yim tshaj plaws rau cov tib neeg uas muaj kev paub me me lossis tsis muaj kev paub txog lub cajmeem. Txawm li cas los xij, qhov no tsis tso cai rau koj hloov kho cov neeg ua haujlwm rau koj cov kev xav tau

- tsim los ntawm qhov chaw. Qhov no muab kev hloov pauv yooj yim tshaj plaws, vim nws yooj yim los hloov cov cai rau koj cov kev xav tau, tab sis xav tau qee qhov (tsawg heev) paub nrog Arduino IDE.

Hauv ob qho xwm txheej twg, koj yuav tsum rub tawm qhov kev tso tawm zaum kawg los ntawm github chaw cia khoom. Rub tawm Source code.zip archive (lossis Source code.tar.gz yog tias koj nyob ntawm Linux); Txawm hais tias lub npe, cov ntawv khaws cia tsis tsuas yog muaj cov lej nkaus xwb tab sis kuj muaj cov lej thiab cov duab piv txwv. Tom qab rub tawm, rho tawm nws mus rau qhov chaw ib ntus.

Siv pre-built binaries

Txuas koj ItsyBitsy rau lub khoos phis tawj siv lub micro-USB cable. (Yog tias koj ua nws thawj zaug, koj yuav tau txais cov lus hais txog kev txhim kho cov tsav tsheb; qhov no, tos kom txog thaum nws qhia koj tias koj lub khoos phis tawj tau npaj siv.) Ob npaug nias lub pob pib dua; koj ItsyBitsy yuav tsum tshwm raws li kev tsav sab nraud ntawm koj lub computer, nrog lub npe zoo li ITSYM4BOOT. Qhib tus tsav ntawd hauv koj lub browser browser qhov rai; sab hauv koj yuav tsum pom cov ntaub ntawv CURRENT. UF2, INDEX. HTM, thiab UF2_INFO. TXT.

Tam sim no qhib hauv lwm cov ntaub ntawv browser qhov rai cov npe tau muab rho tawm los ntawm rub tawm los ntawm github. Nrhiav hauv nws phau ntawv teev npe binaries thiab pom muaj cov kab ntawv ຍ່ອຍ sib piv hom Itsy Bitsy koj muaj (M4 lossis nRF52840). Hauv nws, koj yuav pom ob daim ntawv: formatter. UF2 thiab povstaff-vX. X. UF2, qhov twg X. X yog tus lej version.

Ua ntej tshaj plaws koj yuav tsum tau rub tawm thiab khiav cov ntawv ua haujlwm. UF2 cov ntaub ntawv, uas yuav teeb tsa lub flash cia sab hauv ntawm lub microcontroller rau yav tom ntej siv (koj tsuas yog yuav tsum ua qhov no ib zaug). Txhawm rau ua qhov ntawd, luag cov ntaub ntawv formatter. UF2 rau ITSY ** BOOT tsav; yog tias koj tau txais lo lus nug "koj puas xav theej cov ntawv no yam tsis muaj nws cov khoom, nyem" Yog ". Tom qab ntawd, ItsyBitsy yuav rov pib dua, ITSY ** BOOT yuav ploj ntawm koj lub computer, thiab cov ntawv sau ua haujlwm yuav khiav; koj yeej ' t pom ib qho pom kev tso tawm.

Ob npaug nias lub khawm rov pib dua; ITSY ** BOOT tsav yuav tsum rov tshwm sim hauv koj lub computer. Lub sijhawm no, rub povstaff-vX. X. UF2 rau nws. Ib zaug ntxiv, ItsyBitsy yuav rov pib dua. Qhov no yog txhua yam - microcontroller tam sim no muaj povstaff software.

Kev sib sau los ntawm qhov chaw

Koj yuav xav tau Arduino IDE (version 1.8.6 lossis siab dua). Nco ntsoov tias koj tau teeb tsa cov tsev qiv ntawv hauv qab no:

  • Adafruit DotStar
  • Adafruit BusIO
  • Adafruit TinyUSB
  • Adafruit Unified Sensor
  • Adafruit MPU6050 Cov
  • Adafruit SPIFlash
  • SdFat - Adafruit diav rawg. Nco tseg: koj xav tau Adafruit diav rawg, tsis yog thawj lub tsev qiv ntawv SdFat!

Saib nplooj ntawv no yog tias koj xav tau kev pab txhim kho cov tsev qiv ntawv.

Nruab lub rooj txhawb nqa cov ntaub ntawv rau koj pawg thawj coj raws li tau piav qhia ntawm no (rau ItsyBitsy M4) lossis ntawm no (ItsyBitsy nrf52840). Txheeb xyuas tias nws ua haujlwm los ntawm kev txuas koj ItsyBitsy rau lub khoos phis tawj, xaiv hom board thiab chaw nres nkoj uas tsim nyog, thiab khiav Blink kos duab. Yog tias koj siv ItsyBitsy M4, xaiv hauv cov cuab yeej ntawv qhia zaub mov-> USB Stack-> TinyUSB.

Tom ntej no, koj yuav tsum tau teeb tsa QSPI flash cia suav nrog hauv lub rooj tsavxwm. Txhawm rau ua li ntawd, nrhiav hauv cov ntawv qhia zaub mov File-> Piv txwv-> Adafruit SPIFlash-> SdFat_format. Kho kab

#define DISK_LABEL "EXT FLASH"

hloov EXT FLASH los ntawm daim ntawv uas koj xaiv, mus txog 11 lub cim (piv txwv li "POVSTAFF"). Tshaj tawm cov duab kos rau koj lub rooj tsavxwm thiab pib saib xyuas ntawm 115200 baud. Koj yuav tsum pom cov lus nug koj kom lees paub kev hloov kho tshiab; teb "OK" kom paub meej thiab koj yuav tsum pom cov lus "Formatted flash".

Tam sim no koj npaj txhij xa cov duab kos tseem ceeb mus rau pawg thawj coj saib. Hauv qhov muab rho tawm los ntawm github, nrhiav cov ntaub ntawv code/povstaff/povstaff.ino thiab qhib nws hauv Arduino IDE. Hloov nws mus rau Itsy Bitsy board.

Lus ceeb toom: xa cov duab mus rau ItsyBitsy tsuas tuaj yeem ua tiav tom qab koj muab nws txuas rau POV daim phiaj thaiv: lub software tso siab rau qhov faib hluav taws xob faib hluav taws xob ntawm daim ntaub thaiv kom pom thaum lub rooj sib tham txuas nrog USB. Yog tias koj xav ntsuas lub rooj tsavxwm yam tsis muaj daim ntaub thaiv, siv cov hlua txuas txuas txuas A1 tus pin rau 3.3V.

Kauj Ruam 3: Siv POV Shield

Soldering POV Shield
Soldering POV Shield
Soldering POV Shield
Soldering POV Shield

Solder tus txiv neej lub taub hau rau ItsyBitsy; rau ItsyBitsy M4, tsuas yog siv lub taub hau nrog ob sab ntev ntawm lub rooj tsavxwm. Tam sim no muab POV daim thaiv npog rau cov ntawv no hauv qab Itsy Bitsy, tsim "Sandwich" ntawm ob lub laug cam raws li pom hauv cov duab saum toj no. Nco tseg: txhua feem ntawm POV ntaub thaiv npog yuav tsum nyob sab nraud, tsis yog sab hauv qhaub cij!

Tom qab koj ua tiav cov khoom siv tas, siv kab pheeb ces kaum los txiav cov pins ntev ntawm lub taub hau kom lawv tsis nyob hauv txoj kev.

Kauj Ruam 4: Ua Cov Teeb LED

Ua cov khoom sib dhos LED
Ua cov khoom sib dhos LED
Ua cov khoom sib dhos LED
Ua cov khoom sib dhos LED
Ua cov khoom sib dhos LED
Ua cov khoom sib dhos LED
  1. Nqa 1/2 nti ntoo dowels thiab txiav lawv siv hacksaw los ua ob daim ntawm 51cm txhua. Sim ua kom koj txiav plaub fab.
  2. Yeem tau: tsuag-pleev cov xim dub thiab tawm mus kom qhuav. Qhov no yuav ua rau cov neeg ua haujlwm saib zoo nkauj dua (thaum nws tawm; ib zaug nws qhib, tsis muaj leej twg yuav pom tias cov xim rub tawm yog dab tsi).
  3. Tau txais LED sawb (s). Yog tias lawv sab hauv cov ntaub thaiv tsis tau dej, tshem tawm thiab muab pov tseg. Yog tias lawv muaj cov xov hlau txuas, tshem lawv tawm; tshem tawm cov laug ntau dhau uas siv cov hlua khi. Yog tias koj xaj 1m lossis 2m ib daim kab xev, txiav lawv mus rau 50 cm daim, ua kom pom tseeb tias tawm mus kom ntau li ntau tau raws li cov khoom sib dhos thaum pib ntawm txhua kab txaij (qhov no yuav tsum yooj yim, raws li feem ntau ntev daim kab xev tau tsim los ntawm kev sib dhos ua ke 50cm ib leeg, yog li koj yuav tsuas yog rov ua dua lwm tus txoj haujlwm).
  4. Cov kab laug sab laug tus txiv neej lub taub hau mus rau qhov pib ntawm txhua kab LED raws li qhia hauv daim duab. Qhov yooj yim tshaj plaws los ua nws yog los ntawm ntsaws cov txiv neej lub taub hau rau hauv kab ntev ntawm poj niam lub taub hau, muab nws tso ncaj rau ntawm lub rooj ua haujlwm (hom phiaj, ntawm silicone lossis lwm yam cua sov uas tiv taus cua sov) thiab coj lawv mus rau lub lev kom ua lub taub hau nyob hauv qhov chaw, raws li qhia hauv cov duab saum toj no. Tom qab ntawv kho cov hlua LED thiab siv qee qhov hnyav kom nws nyob hauv qhov chaw thaum koj tab tom siv lub taub hau. Thov nco tseg: koj tab tom siv lub luv luv ntawm lub taub hau rau kab txaij, ua rau sab ntev tsis pub dawb. Koj yuav raug siv ze ze rau thawj LED, yog li thov saib xyuas koj cov hlau kom zoo - tsis txhob kov lub LED!
  5. Txhua daim ntawv APA102 muaj 4 kab cim: hauv av (GND, feem ntau sau luv G), Moos (CLK, lossis CI rau Moos Hauv), Cov Ntaub Ntawv (DAT, lossis DI), thiab VCC, lossis 5V. Txawm li cas los xij, qhov kev txiav txim ntawm cov kab teeb liab no ntawm kab ntawv sib txawv ntawm cov tuam ntxhab. Yog li, tam sim no yog lub sijhawm zoo los sau nws rau yav tom ntej siv. Muab daim kab xev tso rau ntawm lub rooj nrog pib ntawm kab txaij mus rau sab laug, thiab sau cov cim tseg, mus ntawm saum toj mus rau hauv qab thiab sau lawv A… D. Piv txwv li, rau kab txaij hauv cov duab saum toj no koj yuav tau txais cov npe hauv qab no:

    • AW = GND
    • B = CLK
    • C = DAB
    • D = VCC

    Khaws cov npe no kom npaj tau los ntawm kev sib dhos tas li - koj yuav xa mus rau nws ntau dua ib zaug.

  6. Tshem daim ntawv thim rov qab los ntawm daim nplaum rau sab nraum qab ntawm LED thiab muab daim kab xev txuas rau cov ntoo txuas kom cov yas txuas rau ntawm cov kab laug sab laug tau yaug nrog qhov kawg ntawm lub duav. Muab lwm txoj hlua khi rau sab nraud ntawm tus duav. Rov ua dua nrog lwm tus dowel.
  7. Nqa cov laug cam faib hluav taws xob thiab muab lawv txuas rau lub taub hau raws li qhia hauv daim duab. Cov laug cam yuav tsum yaug nrog qhov kawg ntawm cov ntoo ntoo. Siv kab pheeb ces kaum txiav kom txiav ntev ntxiv ntawm cov kab taub hau.

Tam sim no koj yuav tsum muaj ob qhov ua tiav LED sib dhos. Nco tseg: cov nplaum rau ntawm daim kab xev LED tsis muaj zog heev, yog li koj cov kab ntawv yuav pib tev tawm. Nws yog OK; peb yuav ua qhov txuas ntxiv mus tas li tom qab.

Kauj Ruam 5: Txuas Lub Rooj Tswjhwm Saib

Txuas lub Rooj Tswjhwm Saib
Txuas lub Rooj Tswjhwm Saib
Txuas lub Rooj Tswjhwm Saib
Txuas lub Rooj Tswjhwm Saib
Txuas lub Rooj Tswjhwm Saib
Txuas lub Rooj Tswjhwm Saib
Txuas lub Rooj Tswjhwm Saib
Txuas lub Rooj Tswjhwm Saib
  1. [Yog tias koj yuav cov khoom siv los ntawm kuv lub khw Tindie thaum Lub Kaum Ob Hlis 2020 lossis tom qab, koj tuaj yeem hla cov kauj ruam no - tsuas yog siv cov JST XH txuas nrog 55 cm ua.] Coj ib qho ntawm JST XH txuas nrog cov coj. Siv cov xov tooj silicone ntxiv (22-24 awg) rau cov hlau lead, ua rau tag nrho ntev txog 55-57 cm (suav nrog qhov txuas). Nws tau qhia tias koj xaiv cov xim xaim kom phim lub teeb liab nqa, siv liab rau VCC, dub rau GND, thiab lwm yam. Koj tuaj yeem pom cov xov tooj twg nqa lub teeb liab los ntawm ntsaws nws rau hauv lub hauv paus ntawm POV daim phiaj thaiv tsev thiab sab laj cov ntawv tom ntej mus rau lub taub hau. Sim ua cov hlais me me li sai tau kom nws yuav yooj yim kom haum rau hauv lub raj; txhawm rau ua kom nws yooj yim dua, thim qhov txuas, ua txuas rau cov xov hluav taws xob sib txawv hauv qhov chaw sib txawv (piv txwv li, txiav VCC thiab GND 10 cm los ntawm qhov txuas, thiab lwm ob lub xov hlau, 15 cm ntawm qhov txuas).
  2. Ua ib qho ntawm cov khoom sib dhos LED uas tau tsim hauv cov kauj ruam dhau los. Nco tseg tias pawg thawj coj faib hluav taws xob muaj 4 qhov ntxiv uas tseem tsis tau siv. Sawb txog 5mm ntawm txhua ntawm 4 lub xov hlau ntawm lub xov tooj sib dhos uas koj nyuam qhuav tau ua thiab muab cov xov hluav taws xob tshem tawm los ntawm cov qhov no (los ntawm ib sab ntawm LED sib dhos) thiab muab lawv pov rau hauv raws li pom hauv cov duab saum toj no. Cov cim (VCC, GND,…) yuav tsum muab sib dhos rau cov ntawv lo ntawm lub rooj tsavxwm (A, B, C, D) siv lub rooj uas koj sau rau hauv Kauj Ruam 3.
  3. Txhawm rau zais cov xov hlau thiab ua kom nws zoo dua, siv 8 hli ntsws qhwv tubing. Txiav txog 50-51 cm ntev daim. Feem ntau, ntsws qhwv tubing ntawm txoj kab uas hla no raug muag raws li tiaj tus, nrog cov ntawv ntawm ib sab. Siv txiab txiav lub raj qhib qhov ntev, los ntawm ib kawg mus rau lwm qhov, ua nws ntawm ib sab nrog ntawv. Ua tib zoo muab cov xov hlau tso rau hauv tubing thiab npaj nws raws lub qhov rooj, qhib sab. Xyuas kom cov xov hlau nyob tiaj tus thiab tsis hla ib leeg.
  4. Siv zipties los tuav cov hlua LED thiab cov hlua txuas mus rau lub duav. Zipties yuav tsum haum hauv qhov chaw nruab nrab ntawm LEDs (qhov no yog vim li cas peb thiaj xav tau 2mm dav). Lub taub hau ntawm zipties yuav tsum nyob hauv nruab nrab ntawm qhov khoob ntawm lub dowel (tsis muaj LEDs lossis txuas) - tsis yog ntawm lub ces kaum! Muab cov zipties txhua 7-8 cm los yog li ntawd. Tighten lawv thiab txiav.

Kauj Ruam 6: Txuas Cov Roj Teeb

Txuas Cov Roj Teeb
Txuas Cov Roj Teeb
Txuas Cov Roj Teeb
Txuas Cov Roj Teeb
Txuas Cov Roj Teeb
Txuas Cov Roj Teeb
Txuas Cov Roj Teeb
Txuas Cov Roj Teeb

Hauv cov kauj ruam no, koj yuav tau siv cov hlau lead rau Li-Ion roj teeb. Qhov no tuaj yeem txaus ntshai yog tias ua tsis tiav! Thov nyeem txhua cov lus qhia kom zoo thiab hnav qhov muag tiv thaiv. Koj ua haujlwm ntawm koj tus kheej txoj kev pheej hmoo!

  1. Txiav txog 5-6 cm ntawm 20awg liab xaim; sawb txog 1 cm tawm ntawm ib qho kawg thiab txuas rau lub davhlau ya nyob twg zoo ntawm ib ntawm 18650 roj teeb los ntawm kev ua tib zoo ua raws cov lus qhia ntawm nplooj ntawv no. Tam sim no tus laug 13 cm dub 20awg xaim mus rau lub dav hlau tsis zoo. Ib zaug ntxiv, nco ntsoov ua raws cov lus qhia! Rov ua qhov qub nrog lwm lub roj teeb.
  2. Coj ob JST XH txuas nrog coj. Yog tias cov hlau lead ntev dua 15 cm, txiav lawv mus rau 15 cm (suav nrog qhov txuas). Plug (ib ntus) txhua qhov txuas mus rau lub rooj faib hluav taws xob thaum kawg ntawm LED sib dhos thiab siv cov ntawv lo ntawm lub rooj tsavxwm (A… D) ua ke nrog cov lus koj tau tsim hauv Kauj Ruam 3 txhawm rau txheeb xyuas lub teeb liab (VCC, GND, …) rau txhua xov hlau. Siv cov xim ntsws qhwv cov tubing, kab xev hluav taws xob xim, lossis qee qhov txhais tau tias los lo rau cov xov hlau; ib zaug koj tau ua qhov ntawd, koj tuaj yeem tshem qhov txuas ntawm LED sib dhos.
  3. Sawb txog 1cm los ntawm txhua cov hlau lead. Solder CLK hlau ntawm thawj xaim sib dhos rau CLK xaim ntawm qhov thib ob; tsis txhob hnov qab muab cov tubing ntsaws rau ntawm xaim ua ntej yuav xuas phom. Rov ua qhov qub nrog DAT xov hlau; siv rab phom cua sov los ua kom cov tubing. Nco ntsoov tias tag nrho qhov ntev ntawm cov hlua sib dhos ua ke, los ntawm ib qho JST XH txuas mus rau lwm qhov, yog yam tsawg 28 cm.
  4. Txiav txog ob 70 cm ntev daim ntawm liab 20awg xaim rau hloov ua. Siv ib qho ntawm lawv ua ke nrog ob VCC ua los ntawm ob lub JST XH txuas, thiab lwm qhov, ua ke nrog ob txoj hauv kev los ntawm cov roj teeb zoo raws li qhia hauv kab duab kab saum toj no. Ib zaug ntxiv, tsis txhob hnov qab muab cov cua sov ntswj tubing rau ntawm cov xov hlau ua ntej soldering; ib zaug koj ua tiav cov khoom siv tas, siv cov phom cua sov los ua kom cov tubing qis.
  5. Cov laug ua ke GND coj ntawm ob qho JST XH txuas nrog ob txoj hauv kev los ntawm qhov tsis zoo ntawm lub roj teeb, raws li qhia hauv kab duab kab. Tsis txhob hnov qab lub ntsws tubing.
  6. Siv daim kab xev hluav taws xob los xaim cov xov hlau rau lub roj teeb, tso lub roj teeb 5cm sib nrug (tom qab ntawd, peb yuav muab 4.5cm 3d luam ntawv sib nrug nruab nrab ntawm lawv). Nco ntsoov tias cov xov hlau tsis hla ib leeg ntawm cov roj teeb - yog tias lawv ua, qhov sib dhos ua ke yuav tsis haum rau hauv lub raj. Ntsuam xyuas tias lub roj teeb sib dhos haum rau sab hauv lub raj (nws zoo yog tias nws haum nruj). Qhov xaus ntawm JST XH cov khoom sib txuas yuav tsum yog yam tsawg 5 cm ntawm lub roj teeb xaus. Nws tsis ua li cas yog tias muaj kev txuas ntev ntxiv ntawm cov roj teeb - yuav muaj chav los nkaum nws.

Kauj Ruam 7: Txuas lub Hloov

Txuas lub Hloov
Txuas lub Hloov
Txuas lub Hloov
Txuas lub Hloov
Txuas lub Hloov
Txuas lub Hloov
  1. Muab cov khoom sib dhos LED ntxiv (TSIS yog ib qho nrog cov tswj hwm ua) nyob ib sab ntawm lub roj teeb sib dhos, nyob rau sab nrog cov hloov ua, tso 3d luam ntawv qhov sib nrug nruab nrab ntawm lawv. Khiav qhov hloov pauv los ntawm kev txiav tawm hauv pawg tswj hwm hluav taws xob thaum kawg ntawm kev sib dhos LED thiab nyob ib sab ntawm cov ntoo ntoo. Lawv yuav tsum ntev txaus los khiav qhov ntev ntawm lub rooj sib txoos thiab txuas ntxiv yam tsawg 5 cm tshaj qhov kawg ntawm cov ntoo ntoo; Yog tias lawv ntev dua, txiav lawv mus rau 5cm dhau ntawm qhov kawg ntawm tus duav.
  2. Sawb txog 5mm tawm qhov kawg ntawm txhua qhov ntawm cov xov hlau hloov pauv thiab muab lawv txuas rau qhov txuas ntawm qhov hloov pauv raws li qhia hauv daim duab. Nws tsis muaj teeb meem twg cov hlau lead txuas rau lub davhlau ya nyob twg. Nco ntsoov tias qhov hloov pauv nyob rau hauv OFF txoj haujlwm ua ntej txuas ntxiv.
  3. Raws li hauv Kauj Ruam 5, siv 8 hli nqaim tub los zais cov xov hlau uas khiav ntawm cov ntoo. Siv zipties txhawm rau txuas lub tub rau lub duav.

Kauj Ruam 8: Sib sau Cov Neeg Ua Haujlwm

Sib Sau Cov Neeg Ua Haujlwm
Sib Sau Cov Neeg Ua Haujlwm
Sib Sau Cov Neeg Ua Haujlwm
Sib Sau Cov Neeg Ua Haujlwm
Sib Sau Cov Neeg Ua Haujlwm
Sib Sau Cov Neeg Ua Haujlwm
Sib Sau Cov Neeg Ua Haujlwm
Sib Sau Cov Neeg Ua Haujlwm

Teem txhua daim ua ke hauv qhov kev txiav txim no: - hloov - LED sib dhos (nrog hloov ua) - teeb tsa roj teeb - teeb tsa LED thib ob (nrog tswj lub rooj tsav xwm) - Tswj lub rooj tsavxwm (ItsyBitsy +POV ntaub thaiv npog)

Txuas cov xov hlau los ntawm cov roj teeb rau hauv JST XH lub taub hau ntawm cov khoom sib dhos LED. Txuas cov xaim hluav taws xob rau hauv JST XH lub taub hau ntawm POV daim phiaj thaiv. Ua qhov kev xeem yooj yim los ntawm kev qhib lub qhov hluav taws xob; yog tias lub roj teeb raug them (tsawg kawg ib nrab) cov LEDs yuav tsum nyem rau 2 vib nas this uas qhia lub roj teeb.

Muab cov ntawv luam tawm 3d nruab nrab ntawm ob lub roj teeb thiab tseem nyob nruab nrab ntawm cov roj teeb thiab txhua qhov sib dhos LED raws li qhia hauv daim duab. Muab tus tes hloov qhov 3d luam tawm tus tuav tuav. Txiav tawm ib daim nyias nyias (5mm lossis tsawg dua) 22mm txoj kab uas hla lub voj voog los ntawm qee cov khoom siv mos (piv txwv li ntim ua npuas ncauj) thiab ntxig nws nruab nrab ntawm Pawg Tswj Xyuas thiab cov ntoo.

Tam sim no ua tib zoo ntxig tag nrho cov sib dhos rau hauv lub raj polycarbonate, tswj lub rooj zaum kawg ua ntej. Yog tias koj tau ua txhua yam kom raug, thaum tso tag nrho, pawg tswj hwm yuav nres tsawg dua 1cm ntawm qhov kawg ntawm lub raj.

Kauj ruam 9: Ua tiav

Tiav tiav
Tiav tiav
Tiav tiav
Tiav tiav
Tiav tiav
Tiav tiav

Siv ob lub PVC qhov kawg. Siv tus qauv riam lossis riam riam los txiav hauv ib qho ntawm lawv qhib lub ntsej muag txog 11x17mm lossis ntau dua (nws yuav tsum tsis yog qhov tseeb). Kuv kuj tseem siv lub tshuab txiav cov yub kom ua tiav. Muab lub qhov kawg kaw nrog qhov qhib ntawm qhov hloov qhov kawg ntawm cov neeg ua haujlwm. Muab lwm lub endcap tso rau lwm qhov kawg.

Thaum kawg, siv daim kab xev ntaus pob tesniv hla ntawm qhov nruab nrab ntawm lub raj, uas muaj lub roj teeb sib dhos. Koj tuaj yeem saib cov vis dis aus no kom pom txoj hauv kev zoo los thov daim kab xev overgrip: https://www.youtube.com/embed/HNc34XlUBww. Nco ntsoov khaws qhov sib tshooj ntawm daim kab xev hloov me me - yog tias koj ua rau lawv loj dhau, koj daim kab xev yuav tawm ua ntej koj mus txog qhov kawg ntawm lub roj teeb+lub rooj sib dhos.

Nrog koj zoo siab, koj tau ua tiav koj cov neeg ua haujlwm

Kauj Ruam 10: Siv Thawj

Txhawm rau ntsuas koj cov neeg ua haujlwm, xyuas kom tseeb tias qhov hloov pauv OFF. Tshem lub hau ntawm sab uas muaj lub rooj tswj hwm; txuas cov neeg ua haujlwm rau lub khoos phis tawj siv lub microUSB cable. Nws yuav tsum tshwm raws li lub USB tsav sab nraud, nrog lub npe POVSTAFF.

Mus rau cov npe uas muaj cov ntawv rho tawm los ntawm github (saib Kauj Ruam 2); nrhiav muaj cov duab qhia chaw. Nws yuav tsum muaj qee qhov piv txwv cov ntaub ntawv bitmap (s) thiab cov ntaub ntawv imagelist.txt. Luag tag nrho cov ntaub ntawv no rau POVSTAFF nplaub tshev, tom qab ntawd tshem tawm nws (raws li koj ib txwm tshem tawm USB tsav). Txuas tus neeg ua haujlwm los ntawm lub khoos phis tawj thiab hloov lub hau.

Tam sim no cov neeg ua haujlwm tau npaj siv. Txhawm rau siv nws, tig qhov hloov ON; cov neeg ua haujlwm yuav tsum nyem me ntsis, qhia lub roj teeb hluav taws xob, thiab tom qab ntawd mus dawb, tos koj kom pib ua yeeb yam. Tsuas yog pib twirling cov neeg ua haujlwm thiab nws yuav los rau lub neej!

Txog cov lus qhia ua haujlwm tag nrho, suav nrog cov lus qhia ntawm kev rub koj tus kheej cov duab thiab tsim koj tus kheej cov duab swb, thov saib cov ntawv USER_GUIDE.pdf hauv qhov muab rho tawm github archive (tseem txuas nrog rau theem no) Koj tuaj yeem rub tawm ntau cov duab los ntawm Visual POI lub vev xaib: https:/ /visualpoi.zone/patterns/; thov ua raws cov lus qhia hauv phau ntawv qhia siv kom xa lawv mus rau cov neeg ua haujlwm.

Kauj Ruam 11: Cov Lus Kawg

Hauv qab no yog qee qhov kev xav txog qhov tsim thiab phiaj xwm yav tom ntej.

  • Tam sim no, muaj ob txoj hauv kev hloov los ntawm ib daim duab mus rau lwm qhov: xws li muab lub sijhawm ntev npaum li cas cov duab yuav tsum tau qhia hauv cov duab imagelist.txt, lossis txwv cov neeg ua haujlwm hauv txoj haujlwm kab rov tav. Kuv npaj yuav sim nrog lwm txoj hauv kev los tswj kev ua yeeb yam - xws li siv Bluetooth app. Yog leej twg muaj tswv yim, kuv yuav zoo siab tau hnov lawv.
  • Kev them tus neeg ua haujlwm yog ua tiav thaum lub roj teeb txuas nrog LEDs. Txawm tias LEDs tawm, lawv tseem siv lub zog tseem ceeb (kwv yees li 300mA), ua rau cov txheej txheem them nyiaj qeeb. Ib zaug ntxiv, qee yam los xav txog rau kev tshaj tawm yav tom ntej
  • Nws yuav yog qhov zoo kom cov neeg ua haujlwm sib tsoo, yog li nws tuaj yeem hloov pauv mus rau ob peb yam tshuaj lom. Qhov no yuav xav tau kev ua haujlwm tseem ceeb - ob qho tib si txhua yam (ua kom nruj kev sib txuas thiab tsim hluav taws xob sib txuas kom yooj yim ntsaws/tshem tawm) thiab hluav taws xob (peb xav tau ob lub rooj tswj hwm). Yog li qhov no yog txoj haujlwm ntev dua.

Yog koj muaj lus pom lossis tawm tswv yim, thov sau lawv hauv qab no!

Kuv xav ua tsaug Adafruit rau kev txhim kho ntau ntawm cov software thiab kho vajtse siv hauv txoj haujlwm no thiab ua kom nws muaj nyob hauv cov ntawv tso cai qhib. Kuv kuj tseem xav ua tsaug txhua tus neeg ntawm Adafruit kev tsis sib haum xeeb rau lawv txoj kev pab.

Kev Sib Tw Roj Teeb
Kev Sib Tw Roj Teeb
Kev Sib Tw Roj Teeb
Kev Sib Tw Roj Teeb

Khiav Tawm Hauv Kev Sib Tw Roj Teeb

Pom zoo: