Cov txheej txheem:

Tsim kom muaj Arduino-powered Tham Nrog Robot Lub Taub Hau !: 26 Kauj Ruam (nrog Duab)
Tsim kom muaj Arduino-powered Tham Nrog Robot Lub Taub Hau !: 26 Kauj Ruam (nrog Duab)

Video: Tsim kom muaj Arduino-powered Tham Nrog Robot Lub Taub Hau !: 26 Kauj Ruam (nrog Duab)

Video: Tsim kom muaj Arduino-powered Tham Nrog Robot Lub Taub Hau !: 26 Kauj Ruam (nrog Duab)
Video: thaum tus tswv tsim kom muaj nej ces twb yog yuav los ua hauj lwm 3-6-2023 2024, Kaum ib hlis
Anonim
Tsim kom muaj Arduino-powered Talking Robot Head!
Tsim kom muaj Arduino-powered Talking Robot Head!

Lub taub hau neeg hlau no tau tsim ua thaum xaus ntawm lub xyoo rau kuv chav kawm suav lub cev, tab sis lub caij ntuj sov nws tau "kawm" yuav tham li cas. Lub taub hau yog siv los ntawm ob Freeduinos, 3 TLC5940NT chips thiab Adafruit Industries Wave Shield pom ntawm no: www.ladyada.net/make/waveshield/. Tam sim no lub taub hau txuas nrog lub khoos phis tawj los ntawm ob lub xov tooj USB, ib qho rau lub zog, ib qho rau xa nws cov lus txib ua ntu zus hais txog dab tsi/hais tawm. Thaum lub taub hau tau txais cov lus txib ntawm yuav hais dab tsi/emote nws ua rov qab cov ntaub ntawv cov lus ib leeg txhawm rau tsim kab lus lossis ntau kab lus. Nws kuj tseem hloov nws txoj kev xav raws li kev xav hauv siab xa los ntawm lub khoos phis tawj. Lub taub hau neeg hlau no yog lub hauv paus rau ntau daim ntawv thov tau vim nws tuaj yeem hais txhua yam uas nws muaj cov lus siv rau. Tam sim no kuv tab tom ua haujlwm txuas nws hauv is taws nem thiab ua nws tshawb xyuas thiab nyeem kuv li email ntawm tsab ntawv PHP. Kuv yuav hloov kho Cov Lus Qhia no thaum kuv ua tiav nrog rau qhov ntawd. Nov yog daim vis dis aus ntawm nws hauv kev nqis tes: Lub taub hau tseem yog qhov haujlwm txuas mus ntxiv yog li cov lus hais txog txhua yam ntawm no yog qhov zoo siab txais tos! Tshwj xeeb ua tsaug rau Liz Arum rau kev pab kuv nrog txhua yam! daim vis dis aus ntawm tus neeg hlau tham thiab qhia nws tus kheej! Txaus siab rau ntawm koj lub sijhawm so!

Kauj Ruam 1: Sau tag nrho Cov Khoom Siv/ntu/khoom siv hluav taws xob

Lub taub hau neeg hlau no siv: 1 Breadboard (Nws yuav tsum muaj ntau dua 48 kab ntev nrog qhov sib txawv khiav hauv nruab nrab ntawm pawg thawj coj los txuas IC chips. 2 RGB Leds (Rau lub qhov muag ntau xim) Hom Anode. $ 1.50 - 1.95 txhua. 2 X $ 1.75 = $ 3.5036 Leds Leds (Rau lub qhov ncauj) nyob ib puag ncig 40-50 xees tus nqi ntau rau txhua tus. 36 X $.45 = $ 16.202 HXT900 Micro Servos (Rau txav pob muag) Pom tau ntawm: https://www.hobbycity.com/hobbycity/store/uh_viewItem.asp?idProduct=662 2 X $ 3.65 = $ 7.303 TLC5940NT's (To tsav/teeb txhua Leds thiab tswj cov kev pabcuam) tuaj yeem pom ntawm Digi-key https://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=296-17732-5-ND qhov twg lawv raug nqi ntawm $ 4.28. 3 X $ 4.28 = $ 12.84or Mouser https://www.mouser.com/ProductDetail/Texas-Instruments/TLC5940NT/?qs=sGAEpiMZZMu8%252bGBKj8XSFEjwsgnt5grMZ49G/W4nR14%3d3 Capacitors (~ 1000uf) servos) Khaws los ntawm lub khoos phis tawj qub zog. Free2 Thawj Freeduinos lossis Arduinos. Freeduinos tuaj yeem yuav ntawm https://www.freeduino.org/buy.html Lawv raug nqi ntawm 23.99 txhua. 2 X $ 23.99 = $ 47.98 lossis www.sparkfun.com/commerce/product_info.php rau Arduinos. Nqe ntawm $ 29.95 txhua. 2 X $ 29.95 = $ 59.90. Warning: Cov Freeduinos xav tau qee qhov kev paub paub qhov muag, yog tias koj tsis xav kom koj cov laug laug laug ces yuav Arduino. Lus Ceeb Toom: Phau ntawv qhia no xav tau qee qhov kev paub dhau los, yog vim li cas thiaj tsis pib tam sim no?:) 1 Waveshield los ntawm Adafruit Industries (Kom tso cai rau tus neeg hlau tham) tuaj yeem yuav ntawm: https://www.ladyada.net/make/waveshield/ Nqe ntawm $ 22 txhua. Kwv yees kwv yees tus nqi ntawm txhua qhov khoom siv siab (tsis suav nrog shipping) yog tias koj yuav Freeduinos hloov chaw ntawm Arduinos yog…. $ 109.82! Tus nqi tag nrho ntawm txhua qhov cuab yeej siv siab yog tias koj yuav Arduinos hloov chaw Freeduinos yog…. $ 121.74! Thiab raws li cov khoom siv thev naus laus zis qis koj yuav xav tau: Lub thawv ntawv thawv muaj qhov loj ib yam uas koj xav kom koj lub taub hau ua. Ib qho me me ntawm cov duab los qhiaTapeGlueBreadboard tau tshaj xaim (22 ntsuas, khoom) Hlau rau txuas cov khoom rau lwm yam khoom ntawm woodPower laum. Heat Shrink tubing rau cais cov xov hlau nthuav tawm thiab ib yam dab tsi uas tshuab cua kub kom ntsws nws nrog (Cov phom cua kub) Lub thawv txiav.

Kauj Ruam 2: Sib sau ua ke thiab Muab Tshuaj Txhuam Txhuas Txhuas Circuit Court thiab Shields

Sib sau ua ke thiab ua kom zoo tag nrho cov Circuit Court thiab Shields
Sib sau ua ke thiab ua kom zoo tag nrho cov Circuit Court thiab Shields

Solder Freeduinos (zoo li kuv tau ua), lossis tsis quav ntsej txoj kab no yog tias koj yuav Arduino. Nov yog qhov txuas rau lawv cov lus qhia sib dhos rau txhua tus neeg uas yuav Freeduinos: mcukits.com/2009/03/12/assembling-the-freeduino-board-kit/Solder Waveshields. Lady Ada muaj phau ntawv qhia zoo heev yuav ua li cas ntawm nws lub vev xaib ntawm https://www.ladyada.net/make/waveshield/solder.html Ntxiv cov xaim ntev txuas mus rau tus tiv thaiv R7 ntawm sab uas ze rau lub tshuab ua kom nrov nrov. Qhov no yuav txuas nrog Analog Input 1 ntawm Freeduino uas yog tswj cov LEDs ntawm lub taub hau neeg hlau. (Tsis txhob txhawj xeeb txog qhov yuav txuas lwm qhov kawg ntawm cov xaim rau tam sim no, uas yuav piav qhia ntxaws tom qab.) Saib daim duab kom pom meej txog qhov twg los xaim hlau.

Kauj Ruam 3: Tsim Tus Neeg Hlau Lub Taub Hau

Tsim lub taub hau Neeg Hlau
Tsim lub taub hau Neeg Hlau

Coj lub thawv ntawv uas koj tau xaiv los ua koj lub taub hau thiab kos tawm qhov chaw uas koj xav txiav tawm rau lub qhov muag thiab qhov ncauj los ntawm kev txiav daim ntawv thiab muab tso rau saum koj lub npov. Thaum koj zoo siab nrog qhov kev npaj koj tuaj yeem txav mus rau kev txiav cov khoom.

Kauj Ruam 4: Tsim Koj Lub Taub Hau Robot: Txiav Qhov Muag Tawm

Tsim Koj Lub Taub Hau Neeg Hlau: Txiav Qhov Muag Tawm
Tsim Koj Lub Taub Hau Neeg Hlau: Txiav Qhov Muag Tawm

Daim kab xev lossis kos daim rau lawv txoj haujlwm zaum kawg rau ntawm lub npov thiab txiav tawm. (Khaws daim ntawv uas koj siv los sawv cev rau lub qhov ncauj, koj yuav xav tau tom qab.)

Kauj Ruam 5: Tsim Koj Lub Taub Hau Robot: Ua LED Matrix rau Lub Qhov Ncauj

Tsim Koj Lub Taub Hau Neeg Hlau: Ua LED Matrix rau Lub Qhov Ncauj
Tsim Koj Lub Taub Hau Neeg Hlau: Ua LED Matrix rau Lub Qhov Ncauj
Tsim Koj Lub Taub Hau Neeg Hlau: Ua LED Matrix rau Lub Qhov Ncauj
Tsim Koj Lub Taub Hau Neeg Hlau: Ua LED Matrix rau Lub Qhov Ncauj
Tsim Koj Lub Taub Hau Neeg Hlau: Ua LED Matrix rau Lub Qhov Ncauj
Tsim Koj Lub Taub Hau Neeg Hlau: Ua LED Matrix rau Lub Qhov Ncauj

Txhua LED hauv lub qhov ncauj yuav teeb ntawm nws tus kheej. Txhawm rau ua qhov ntawd koj yuav tsum ua lub teeb ci LED rau lub qhov ncauj. (Rau lub tswv yim ntawm dab tsi yog LED matrix, saib daim duab 1) Siv daim ntawv uas yuav tsum yog lub qhov ncauj thiab, nrog tus xaum thiab tus pas ntsuas, Muab daim ntawv faib ua 36 ntu (9 X 4), Ib qho rau txhua tus LED hauv daim phiaj. Tom qab koj tau ua li ntawd, kaw daim ntawv rau ib daim ntoo thiab ua tib zoo saib kom tsis txhob tho hauv av (Qhov no tau tshwm sim rau kuv yog li kuv pom zoo kom khawb rau saum lub thawv ntawv thawv.) Laum qhov qhov kab sib tshuam nrog 1/4 nti laum ntsis, kom koj cov LEDs haum haum. Qhov loj ntawm qhov laum me me yog pom tseeb nyob ntawm qhov loj ntawm koj li LEDs yog li siv me ntsis laum me me rau LEDs. (Pib me me thiab ua haujlwm koj txoj hauv kev!) Saib cov duab 2 & 3 kom paub meej ntxiv txog qhov drilling/cim.

Kauj Ruam 6: Ua Qhov Ncauj LED Matrix: Soldering hauv LEDs

Ua Lub Qhov Ncauj LED Matrix: Soldering hauv LEDs
Ua Lub Qhov Ncauj LED Matrix: Soldering hauv LEDs
Ua Lub Qhov Ncauj LED Matrix: Soldering hauv LEDs
Ua Lub Qhov Ncauj LED Matrix: Soldering hauv LEDs
Ua Lub Qhov Ncauj LED Matrix: Soldering hauv LEDs
Ua Lub Qhov Ncauj LED Matrix: Soldering hauv LEDs

Ua ntej ua lwm yam, xyuas tias tag nrho koj cov LEDs tsis raug hlawv lossis ploj. Koj tuaj yeem ua qhov no los ntawm kev nrhiav lub me me 3V lub roj teeb thiab tuav ob txhais ceg ntawm LEDs rau lub roj teeb (Nco ntsoov ob txhais ceg ntev yog qhov zoo, qhov tsis zoo luv luv). Txhua tom ntej ntxig LEDs ib kab ntawm ib lub sijhawm rau hauv koj qhov drilled tawm daim phiaj jig. Khaws ob txhais ceg ntev kom lawv sib luag mus rau ib leeg thiab muab lawv sib dhos ua ke, ua kab ib kab (Saib cov duab 2 & 3). Cov laug ua ke ob txhais ceg ntev txij li koj yuav siv TLCs los tswj cov LEDs no, thiab TLCs yog lub hwj chim dab dej. Qhov no txhais tau tias lawv tswj cov LEDs los ntawm kev hloov pauv qhov sib txawv ntawm lub zog thiab hauv av.

Kauj Ruam 7: Ua Qhov Ncauj LED Matrix: Soldering Tswj Cov Hluav Taws Xob rau ntawm LEDs

Ua Lub Qhov Ncauj LED Matrix: Soldering Tswj Cov Hluav Taws Xob rau ntawm LEDs
Ua Lub Qhov Ncauj LED Matrix: Soldering Tswj Cov Hluav Taws Xob rau ntawm LEDs
Ua Lub Qhov Ncauj LED Matrix: Soldering Tswj Cov Hluav Taws Xob rau ntawm LEDs
Ua Lub Qhov Ncauj LED Matrix: Soldering Tswj Cov Hluav Taws Xob rau ntawm LEDs
Ua Lub Qhov Ncauj LED Matrix: Soldering Tswj Cov Hluav Taws Xob rau ntawm LEDs
Ua Lub Qhov Ncauj LED Matrix: Soldering Tswj Cov Hluav Taws Xob rau ntawm LEDs

Cov kab xaim ntev ntev uas tuaj yeem haum rau hauv lub khob cij (22 ntsuas) mus rau txhua qhov LED cathode coj. Cov xov hlau no yuav tswj cov LEDs. Tom qab ntawd nco ntsoov insulate txhua tus tib neeg cov xov hluav taws xob nrog daim kab xev hluav taws xob (tsis lom zem) lossis cov cua sov ntsws (pom zoo). Ntxiv rau qhov txuas cov xov hlau mus rau txhua qhov ntawm LEDs Cathode ua, txuas 2 lossis 3 xaim mus rau Anode ib feem ntawm kab sib chaws (Ib feem uas yog txhua yam ua ke ua ke). Cov xov hlau no yuav ua haujlwm raws li lub zog txhawb nqa faib hluav taws xob thoob plaws hauv kab sib chaws. Lawv yuav txuas nrog 5V.

Kauj Ruam 8: Txhim Kho Qhov Tsov Qhov Muag-txav Servos Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau

Txhim Kho Qhov Muag Tsiaj Qis-Servos Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau
Txhim Kho Qhov Muag Tsiaj Qis-Servos Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau
Txhim Kho Qhov Muag Tsiaj Qis-Servos Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau
Txhim Kho Qhov Muag Tsiaj Qis-Servos Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau
Txhim Kho Qhov Muag Tsiaj Qis-Servos Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau
Txhim Kho Qhov Muag Tsiaj Qis-Servos Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau

Ua ntej txhim kho koj lub mini-servos sab hauv ntawm koj lub taub hau neeg hlau, kub kua nplaum ntev muaj zog (Tab sis tseem tuaj yeem kho tau) xaim mus rau sab caj npab servo. Cov xaim no yuav nce mus rau sab hauv ntawm koj tus neeg hlau, tawm ntawm sab saum toj thiab nkag rov qab los txav lub pob muag. (Saib cov duab kom pom meej.) Nqa koj lub mini-servos (nrog cov xov txuas nrog) thiab kub kua nplaum rau sab hauv ntawm koj lub taub hau neeg hlau, sab xis hauv qab lub qhov muag, ua kom ntseeg tau tias cov xov hlau tuaj yeem txav ntawm ib sab mus rau ib sab.

Kauj Ruam 9: Txhim Kho Daim phiaj Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau

Txhim Kho Daim phiaj Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau
Txhim Kho Daim phiaj Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau
Txhim Kho Daim phiaj Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau
Txhim Kho Daim phiaj Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau

Kub kua nplaum kab sib chaws rau ib daim duab los ntawv uas koj tau ua qhov dej nkag rau hauv thiab kub kua nplaum uas nkag rau sab hauv ntawm lub taub hau neeg hlau.

Kauj Ruam 10: Solder RGB LEDs

Solder RGB LEDs
Solder RGB LEDs

Solder Common Anode RGB LED ua rau cov xaim ntev. Tom qab ntawd muab cov hlau xaim xim (liab, ntsuab, xiav) rau RGB LED cov hlau lead uas sib raug rau nws (Cov xim ntawm tus kheej ib leeg tuaj yeem pom los ntawm kev siv lub pob 3V lub roj teeb kom pom lub teeb txhuas txhuas nyob rau hauv lem). Tsis txhob hnov qab insulate cov xov hlau!

Kauj Ruam 11: Txhim Kho RGB LEDs Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau

Txhim kho RGB LEDs Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau
Txhim kho RGB LEDs Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau
Txhim kho RGB LEDs Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau
Txhim kho RGB LEDs Sab Hauv ntawm Tus Neeg Hlau Lub Taub Hau

Nruab cov LEDs sab hauv ntawm lub taub hau neeg hlau los ntawm kev tso lawv nyob qhov twg koj xav tau lawv thiab tom qab ntawd khawm thiab kaw cov xov hlau rau sab hauv lub thawv. Muab cov quav quav tso rau hauv qab LED kuj pab ua kom nws nyob hauv qhov chaw. (Saib cov duab kom paub meej)

Kauj Ruam 12: Ua Kom Qhov Muag Pom

Ua tiav Qhov Muag
Ua tiav Qhov Muag
Ua tiav Qhov Muag
Ua tiav Qhov Muag

Kua nplaum ib daim ntawv me me uas loj dua lub qhov uas koj tau txiav tawm. Kaw nws hla lub qhov kom npog lub qhov thiab LED qab nws. Koj kuj tseem xav tau kaw qee daim ntawv ntawm daim phuam mus rau sab hauv ntawm lub qhov muag kom nthuav lub teeb los ntawm LEDs.

Kauj Ruam 13: Hlau TLC5940NT Chips

Hlau TLC5940NT Chips
Hlau TLC5940NT Chips
Hlau TLC5940NT Chips
Hlau TLC5940NT Chips
Hlau TLC5940NT Chips
Hlau TLC5940NT Chips

Hauv cov kauj ruam no koj yuav tsum tau daisy saw 3 TLC5940NTs ua ke los tsav tag nrho 42 LED cov zis (36 rau lub qhov ncauj, 6 rau ntau lub qhov muag). Cov neeg ntawm Arduino chaw ua si muaj cov ntaub ntawv qhia tau zoo heev txog yuav ua li cas daisy saw 3 TLC5940NTs ua ke. Ntawm no nws yog nyob rau hauv daim ntawv compressed: Arduino pin 13 -> SCLK (TLC pin 25) Arduino pin 11 -> SIN (TLC pin26) Arduino pin 10 -> Blank (TLC pin 23) Arduino pin 9 -> XLAT (TLC pin 24) Arduino tus pin 3-> GSCLK (TLC tus pin 18) -------------- U ------------ LED Tawm 1 | 128 | ib LED Tawm 0LED Tawm 2 | 227 | ib GNDLED Tawm 3 | 3 26 | ib SIN (Ard tus pin 11. 1) LED Tawm 4 | 4 25 | ib SCLK (Ard tus pin 13)… | 524 | ib XLAT (Ard tus pin 9)… | 6 23 | ib KAWG (Ard tus pin 10)… | 7 22 | ib NQA… | 8 21 | ib VCC (5V)… | 920 | ib 2K Resistor rau hauv av… | 1019 | 5V … | 1118 | GSCLK (Ard tus pin 3)… 12 17 | ib SOUT (Txuas rau SIN ntawm TLC tom ntej hauv Daisychain) … | 13 16 | ib XERR Tawm 14 | 1415 | LED Tawm 15 ----------------------------- Nco tseg: peb yog Daisychaining 3 TLCs yog li SIN ntawm thawj TLC txuas nrog Arduino tus pin 11. Tus so ntawm TLCs muaj lawv cov SIN txuas nrog rau SOUT ntawm TLC ua ntej nws. Txhua tus BLANKs txuas nrog ib leeg (BLANK ntawm TLC1 txuas nrog BLANK ntawm TLC2 thiab lwm yam …) Txhua XLATs tau txuas nrog. SCLKs tau txuas nrog. Txhua tus GSCLKs tau txuas nrog. Txhua XERRs tau txuas nrog. Ntau txuas rau 2 lossis 3 Cov Hluav Taws Xob Hluav Taws Xob rau lub khob cij hauv av thiab Lub Hwj Chim (Tsis zoo ntawm lub capacitor mus rau hauv av, Zoo rau 5V). Tus nqi them uas nws tuav tsis yog qhov tseem ceeb tab sis nws yuav tsum tau ntsuas rau 5V lossis siab dua. Cov capacitors no yuav ua tus lim, lim tawm txhua qhov tsis zoo (suab nrov) hauv qhov hluav taws xob uas TLCs tsim tawm. Qhov no tseem ceeb vim tias Waveshield uas peb yuav siv sib koom ib yam li TLCs thiab tiag tiag tsis nyiam suab nrov hluav taws xob (nws ua qhov txawv, nyem suab nrov).

Kauj Ruam 14: Txuas Cov LEDs mus rau TLCs

Xaim Cov LEDs rau TLCs
Xaim Cov LEDs rau TLCs
Xaim Cov LEDs rau TLCs
Xaim Cov LEDs rau TLCs

Txuas tag nrho cov LEDs mus rau TLCs, ua kab ib kab, pib nrog ib qho nyob rau sab saud sab laug thiab txav mus rau LED ncaj qha ntawm sab xis. Nov yog kab sib chaws ntawm txhua tus LED TLC tus pin tawm nrog rau koj kom yooj yim. Saib cov duab kom pom meej. Lub qhov ncauj: 0 1 2 3 4 5 6 7 89 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Tam sim no kuj yog lub sijhawm zoo los ntsaws koj lub RGB LED qhov muag rau TLCs ntawm no yog tus pin tawm … RGB LED qhov muag: Sab laug: RGB Txoj Cai: RGB 36 40 38 37 41 39 Tsis txhob hnov qab txhawm rau txuas cov xov hluav taws xob thoob ntiaj teb rau Daim phiaj thiab RGB LEDs rau hauv 5V!

Kauj Ruam 15: Xaim Cov Kev Pabcuam rau TLCs

Xaim Cov Kev Pabcuam rau TLCs
Xaim Cov Kev Pabcuam rau TLCs

Txuas Lub Hwj Huam thiab Hauv Paus ntawm cov servos rau Lub Hwj Chim thiab Hauv av ntawm koj lub khob cij. Txuas cov xov hlau tswj ntawm Sab laug servo (Koj sab laug thaum ntsib tus neeg hlau.) Rau tus pin 43 (Nco ntsoov pib ntawm xoom.) Thiab Txoj cai servo rau tus pin 44. Koj yuav tsum txuas 3.3K ohm resistor los ntawm ob qho ntawm cov pins mus rau 5V vim tias TLCs yog lub hwj chim dab dej thiab xav tau lub hwj chim los tog.

Kauj Ruam 16: Tam sim no koj tab tom nkag mus rau thaj av ntawm Software thiab Code! (feem ntau)

Thov tsis txhob hla dhau…

Kauj Ruam 17: Rub TLC Lub Tsev Qiv Ntawv

TLC lub tsev qiv ntawv tshiab kawg rau Arduino tuaj yeem pom ntawm lawv tus lej Google nplooj ntawv ntawm: code.google.com/p/tlc5940arduino/. Download lub tsev qiv ntawv tshiab kawg thiab ntxig rau unzipped nplaub tshev "Tlc5940" rau hauv [qhov tseeb Arduino version nplaub tshev]/kho vajtse/ cov tsev qiv ntawv/

Kauj Ruam 18: Xeem TLCs

Thauj kuv cov ntawv nthuav qhia cov ntawv xeem uas koj tuaj yeem rub tawm hauv qab no. Thauj nws rau hauv Freeduino thiab ntaus qee cov lus txib rau hauv lub luag haujlwm saib xyuas kom paub tseeb tias txhua yam ua haujlwm. Nov yog cov npe ntawm cov lus txib: coj tus cwj pwm zoo

Kauj Ruam 19: Rub Tawm Txhim Kho, Muaj Peev Xwm Muaj Peev Xwm Txhawb Tau (Me ntsis), Waveshield Library

Rub tawm qhov hloov kho tshiab Adafruit nthwv dej los ntawm Google code (Ua tsaug Mr Fat16 rau kev ua lub tsev qiv ntawv txhim kho no): code.google.com/p/wavehc/ Ib zaug ntxiv lo unzipped nplaub tshev hauv kho vajtse/tsev qiv ntawv/nplaub tshev.

Kauj ruam 20: Hom ntawv thiab thauj koj daim npav SD

Ntxig koj daim npav SD rau hauv koj lub computer thiab siv lawv hom FAT lossis FAT16 hom ntawv. Tsis yog FAT32! Tom qab ntawd ntsaws koj daim npav SD nrog cov ntaub ntawv hais los ntawm AT & T cov ntawv zoo rau kev hais lus lub vev xaib www.research.att.com/~ttsweb/tts/demo.php#top Hloov cov ntaub ntawv lub npe ntawm lo lus uas nws tau hais hauv cov ntawv thiab txiav luv lub npe ntawv ntawd rau qee yam uas muaj 6 lossis tsawg dua ntawv. (Lub dav hlau yoj tsuas tuaj yeem tuav cov ntaub ntawv uas nws lub npe cov npe yog 6 tus cim lossis tsawg dua.) Ex.

Kauj Ruam 21: Ntsuam Xyuas Koj Lub Nkoj

Rub tawm thiab ua haujlwm kuv daim ntawv teev npe Waveshield test sketch. Koj yuav tsum muaj peev xwm hla dhau lub davhlau ya nyob twg, ntaus kab lus thiab muaj Waveshield ua si nws (Tsuav nws muaj. Wav cov ntaub ntawv uas nws xav tau). Nws yuav siv lo lus thawj, ntxiv ".wav" thiab ua si ua ntej txav mus rau qhov thib ob. Ex.you yam: Nyob zoo kuv lub npe yog Bob Nws yuav ua si: nyob zoo.wavmy.wavname.wavis.wavbob.wav Nco tseg: Ntsuas Waveshield ntawm lwm qhov Freeduino (ib qho uas tsis txuas nrog TLCs) vim tias ob lub Waveshield thiab TLCs siv pins13, 12, 11 thiab 10 (ntawm Freeduino). Qhov no vim tias cov pins no muaj kev txhawb nqa kho vajtse rau lub interface hu ua Serial Peripheral Interface (SPI) uas ob qho tib si TLCs thiab Waveshield xav tau. Cov pins no tsis tuaj yeem sib koom ntawm lawv yog li peb yuav tsum txuas ob Freeduinos ua ke siv I2C interface kom lawv thiaj li kis tau cov ntaub ntawv nruab nrab ntawm lawv. Xav paub ntau ntxiv txog qhov no hauv qib 22.

Kauj Ruam 22: Txhim Kho I2C Kev Sib Txuas Ntawm Ob Qhov Freeduinos

Hlau Up I2C Interface Ntawm Ob Freeduinos
Hlau Up I2C Interface Ntawm Ob Freeduinos

Tos … Vim li cas peb thiaj xav tau xov tooj I2C interface ntawm ob Freeduinos? Vim li cas peb thiaj tsis tuaj yeem ntsaws Waveshield thiab TLCs rau hauv ib qho Freeduino? Nov yog vim li cas: Ob lub Waveshield thiab TLCs siv tus pin 13, 12, 11 thiab 10 ntawm Freeduino. Qhov laj thawj rau qhov no yog cov pins no muaj kev txhawb nqa kho vajtse rau lub interface hu ua Serial Peripheral Interface (SPI) uas ob qho tib si TLCs thiab Waveshield xav tau thiab tsis tuaj yeem sib koom. Qhov no txhais tau tias peb yuav tau txuas ob Freeduinos ua ke siv qee yam ntawm cov ntaub ntawv sib txuas kom lawv ob leeg ua haujlwm ua ke. Serial tsis yog qhov kev xaiv vim tias kuv lub khoos phis tawj twb tau siv nws los sib txuas lus rau Waveshield Freeduino, yog li tom qab qee qhov Googling khaus kuv pom qhov yooj yim thiab yooj yim kev sib tham. Kuv 2c! Nov yog yuav ua li cas xaim xov tooj sib cuam tshuam: Txuas Analog Tus lej pin 4 ntawm ob qho Freeduinos (Qhov no yog SDA lossis Cov Ntaub Ntawv Teev Npe Kab.) Txuas Analog Input tus pin 5 ntawm Freeduinos (Qhov no yog SCL lossis Serial Clock Line.) Txuas hauv av ntawm ob qho tib si Freeduinos (Txwv tsis pub I2C interface yuav tsis ua haujlwm.) Txuas cov xov hlau uas koj tau siv thaum pib ntawm Cov Lus Qhia no los ntawm resistor R7 ntawm Waveshield rau Analog Input pin 1 ntawm TLC tswj Freeduino (Cov xov hlau no yog txhawm rau txheeb xyuas qhov ntim ntawm cov lus hais los ntawm Waveshield thiab tsis yog ib feem ntawm I2C interface). (Saib daim duab kom paub meej)

Kauj Ruam 23: Pab kom I2C ntawm TLC Tswj Freeduino

Pab kom I2C ntawm Freeduino uas koj siv los tswj TLCs los ntawm rub tawm daim duab no. Nws yuav tau txais cov ntaub ntawv ntawm kab lus los ntawm Waveshield thiab tseem yuav txheeb xyuas qhov ntim ntawm cov lus hais tawm ntawm Waveshield Freeduino thiab yuav txav lub qhov ncauj los sim tham raws li qhov ntim ntawm cov lus tau hais. I2C txhais: I2C kuj tseem hu ua TWI (Ob Txoj Kev Siv Hluav Taws Xob) nws yog txoj hauv kev yooj yim ntawm kev sib txuas ntau yam khoom siv ua ke (txog 128!) Tam sim no tus neeg hlau yuav ntsais muag ntawm 2-11 ntu ib zaug, ib yam li tib neeg.

Kauj Ruam 24: Kuaj I2C Interface

Rub tawm daim duab no thiab thauj nws mus rau Waveshield Freeduino, nws xa cov lus "coj tus cwj pwm;" thiab tom qab ntawd "thov txim"; hla I2C interface rau TLC tswj Freeduino ntawm ob ntu thib ob, vam tias ua rau cov neeg hlau mus los ntawm kev zoo siab rau kev tu siab ntawm ob ntu thib ob.

Kauj ruam 25: Koj Yuav Tsum Ua tiav! Tsuas yog qee qhov Code los thauj khoom…

Thauj qhov kawg ntawm Waveshield Freeduino code. Nws yuav tsum siv cov lus uas koj ntaus rau hauv kab ntawv saib thiab hais lus rau lawv (tsuav yog nws muaj. Wav cov ntaub ntawv los ua nws) thiab yuav tsum dhau cov lus hais qhia zoo li "coj tus kheej;" thiab "thov txim"; mus rau Freeduino tswj TLCs los ntawm I2C interface. Note: Cov lus teev npe yog tib yam rau TLC ua ntej kev xeem tus lej (Saib cov kauj ruam 17) tshwj tsis yog tias koj yuav tsum ntxiv ib nrab nyuv rau txhua qhov kev hais qhia. Yog tias koj xav kom tus neeg hlau tu siab thiab hais tias "Kuv tu siab" ces ntaus: besad; Hloov kho tshiab: Waveshield Sketch tam sim no siv cov cim cim cim tseg kom raug (piv txwv li lub sijhawm thiab tus lej tab sis tsis hais cov ntsiab lus).

Kauj Ruam 26: Txhim Kho Txhua Yam Ntawm Lub Robot Head Box thiab Koj Ua Tiav lawm

Mount Txhua Yam Ntawm Lub Robot Head Box thiab Koj Ua Tiav lawm!
Mount Txhua Yam Ntawm Lub Robot Head Box thiab Koj Ua Tiav lawm!
Mount Txhua Yam Ntawm Lub Robot Head Box thiab Koj Ua Tiav lawm!
Mount Txhua Yam Ntawm Lub Robot Head Box thiab Koj Ua Tiav lawm!

Mount tag nrho Freeduinos mus rau tom qab ntawm lub thawv nrog cov xov hlau. Kaw qhov nrov plig plawg sab saum toj ntawm lub thawv nrog cov xov hlau thiab koj ua tiav! Tam sim no yog tias tsuas yog nws tuaj yeem tshawb xyuas kuv tus email. Hmmmm ……. Thank ua tsaug rau qhov nyeem Cov Lus Qhia no! Lus pom zoo txais tos txhua yam!

Qhov khoom plig thib ob hauv Arduino Contest

Pom zoo: