Cov txheej txheem:

Teeb Tsaus LED: 7 Kauj Ruam
Teeb Tsaus LED: 7 Kauj Ruam

Video: Teeb Tsaus LED: 7 Kauj Ruam

Video: Teeb Tsaus LED: 7 Kauj Ruam
Video: Knossi übersieht Krokodil direkt neben ihm! 😳🐊 | 7 vs. Wild 2024, Kaum ib hlis
Anonim
Tsaus Teeb LED
Tsaus Teeb LED
Tsaus Teeb LED
Tsaus Teeb LED
Tsaus Teeb LED
Tsaus Teeb LED

Ib qho coj tsis tsuas yog teeb thaum siv lub zog, tab sis kuj tsim hluav taws xob me me thaum siv lub teeb. PICAXE microcontroller tuaj yeem siv los tshuaj xyuas qhov hluav taws xob no. Kuv yuav qhia koj yuav ua li cas kom taws tswm ciab hluav taws xob uas yuav ua rau lub teeb taws thaum nws tsaus ntuj.

Kauj Ruam 1: Sib dhos "tswm ciab"

Sib sau ua ke
Sib sau ua ke

Cov tswmciab ib feem ntawm lub Circuit Court yog ib daim ntawm daim txiag ntoo nrog lub ntsuab coj, 220 ohm resistor, diode, capacitor thiab M08 picaxe. Kuv siv cov txuas txuas molex txhawm rau ua kom cov laug cam tshem tawm tau los ntawm "lub zog qia" ua los ntawm kev sib tw 18 gauge enameled xaim. Koj tuaj yeem siv cov xaim hluav taws xob tiv thaiv xaim xws li lub tsev xaim rau tus kav. Koj tseem tuaj yeem siv lub teeb daj lossis liab coj. Leds dawb thiab xiav tsis ua haujlwm zoo li lub teeb pom kev zoo. Lub diode tiv thaiv los ntawm rov qab polarity thiab tso cai siv alkaline hlwb los ntawm kev xa qhov hluav taws xob mus rau picaxe me ntsis. Nicad cells ua haujlwm tau zoo nrog picaxes.

Kauj Ruam 2: Lub Hwj Chim Source

Lub Hwj Chim Source
Lub Hwj Chim Source

Rau lub zog siv hluav taws xob siv 4 AA hlwb hauv lub roj teeb uas muaj lub 9 volt style snap txuas rau saum. Kuv tau sib cais lub roj teeb uas ploj lawm 9 volt thiab siv lub ntsaws txuas txhawm rau teeb tsa lub hwj chim. Koj tuaj yeem ua cov khoom ncaj lossis ntxiv "coil" rau nws. Koj tuaj yeem txawm qhwv nws nrog daim kab xev florist ntsuab thiab ua paj tawm ntawm nws. Thaum ua tiav, muab tso rau hauv lub lauj kaub kom zais lub roj teeb.

Kauj ruam 3: Program Koj Picaxe

Program Koj Picaxe
Program Koj Picaxe

Raws li koj picaxers paub, koj yuav tsum tau teeb tsa lub picaxe. Hauv qab no yog txoj haujlwm: 'picaxe program kom flicker coj zoo li lub tswm ciab thaum tsaus ntuj: pib nkag 1' ua tus pin 1 lub tswv yim ua ntej nyeem nrog ADCpause 200w0 = 0main: qis 1 'tso tawm ua ntej nyeem input 1random w0' tau txais tus lej los teeb tsa lub suab flicker ratereadadc 1, b2if b2 <10 ces darkgoto maindark: 'coj yuav flicker nyob ntawm tus nqi b0 thiab b1high 1pause b0low 1pause b1goto mainCut thiab muab qhov program tso rau hauv koj daim ntawv theej tshiab ntawm dawb picaxe programmer software. Rau cov neeg tshiab nrog picaxe mus rau ntawm lub xaib no txhawm rau paub cov ntaub ntawv hais txog picaxe.https://www.rev-ed.co.uk/picaxe/ Rau qhov yooj yim programmer siv qhov Circuit no los tsim tus programmer. Program lub picaxe thiab tshem tawm kom tso picaxe rau hauv tswm ciab.

Kauj Ruam 4: Sab Pem Hauv Ntej ntawm Tswmciab

Sab Pem Hauv Ntej ntawm Tswmciab
Sab Pem Hauv Ntej ntawm Tswmciab

Cov tswm ciab tswm ciab yog yooj yim txaus los siv perf board rau kev tsim kho. Pem hauv ntej qhia qhov Picaxe tau teeb tsa ntawm lub qhov (socket).

Kauj Ruam 5: Sab nraub qaum ntawm Tswmciab

Backside ntawm Tswmciab
Backside ntawm Tswmciab

Kev tsim kho siv cov xaim hlau xaim ua kom muaj kev sib txuas ntawm sab nraum qab ntawm tswm ciab.

Kauj Ruam 6: Koj Tswmciab Tone

Xav tias dawb los hloov kho qhov program. Koj tseem tuaj yeem ua lub tswm ciab ua qhov rov qab. Khiav qhov haujlwm no kom ua mus ntxiv tsuas yog thaum nws ci.

'coj mus rau hauv qhov tsaus ntuj tseem ceeb: qis 1 input 1 readadc 1, b0 yog b0> 10 ces tsaus ntuj tau txais lub ntsiab tsaus: siab 1 ncua 100 goto main Muaj kev lom zem nrog lub tswv yim.

Kauj Ruam 7: Daim Ntawv Teev Npe

Daim Ntawv Teev Npe:

Tswmciab ib feem: Daim ntawm Perf board txog 5/8 los ntawm 7/8 Picaxe M08 8 tus pin IC socket 1N4005 diode.1uf ceramic capacitor 220 ohm 1/4w resistor Ntsuab, liab lossis daj coj Tare tinned tooj liab hlau Molex header 22-23- 2021 (Digikey WM4200-ND) Lub hwj chim qaum thiab roj teeb: Molex vaj tse 22-01-2027 (Digikey WM2011-ND) 2 taw ntawm cov khoom thaiv kab hlau lossis #AWG 18 xaim xaim 9 volt roj teeb snap txuas 4-AA roj teeb tuav (Xov tooj cua Shack, Frys) Programmer: 9 tus pin D txuas, poj niam 22k 1/4 watt resistor 10k 1/4 watt resistor 200 ohm 1/4 watt resistor Daim ntawm perf board rau mount cov khoom (Xov tooj cua Shack, Frys) 8 tus pin IC qhov (socket)

Pom zoo: