Cov txheej txheem:
- Kauj Ruam 1: Nws Ua Haujlwm Li Cas
- Kauj Ruam 2: Cov Khoom Siv thiab Cov Cuab Yeej
- Kauj Ruam 3: Schematics
- Kauj Ruam 4: Sib sau ua ke ntawm Pawg Thawj Coj
- Kauj Ruam 5: Program Circuit
- Kauj ruam 6: Soldering
Video: Programmable LED: 6 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:30
Kev tshoov siab los ntawm ntau yam LED Throwies, ntsais ntsais LEDs thiab cov lus qhia zoo sib xws Kuv xav ua kuv cov ntawv ntawm LED tswj los ntawm microcontroller. Qhov kev rov sau dua tshiab no tuaj yeem ua tiav nrog lub teeb thiab duab ntxoov ntxoo, piv txwv. koj tuaj yeem siv koj lub teeb nyem Qhov no yog kuv thawj qhov kev qhia, ib qho lus pom lossis kev kho raug txais tos. Update 2008-08-12: Tam sim no muaj cov khoom siv muaj nyob ntawm Tinker Store. Ntawm no yog daim vis dis aus ntawm kev rov ua dua nws. Thov txim rau qhov zoo.
Kauj Ruam 1: Nws Ua Haujlwm Li Cas
LED yog siv los ua cov zis. Raws li cov tswv yim Kuv siv LDR, lub teeb nyob ntawm tus tiv thaiv. Qhov LDR no hloov nws qhov kev tiv thaiv raws li nws tau txais ntau dua lossis tsawg dua lub teeb. Tom qab ntawd tus tiv thaiv tau siv los ua cov tswv yim analog rau microprocessors ADC (analog digital converter).
Tus maub los muaj ob hom kev ua haujlwm, ib qho rau sau cia ua ntu zus, lwm qhov rau ua si rov qab cov kab ke kaw tseg. Thaum tus tswj hwm ceeb toom ob qhov kev hloov pauv ntawm qhov ci ci ib nrab ntawm ib pliag, (tsaus ntuj, ci, tsaus lossis lwm txoj kev puag ncig), nws hloov mus rau hom kaw cia. Hauv kev rov ua dua hom kev tawm tswv yim ntawm LDR raug ntsuas ntau zaus ib pliag thiab khaws cia ntawm cov nti. Yog tias lub cim xeeb tau ploj mus, tus maub los hloov rov qab mus rau hom rov ua haujlwm thiab pib ua si cov kab ke kaw tseg. Raws li lub cim xeeb ntawm tus tswj hwm me me no txwv tsawg heev, 64 bytes (yog, bytes!), Tus tswj tau tuaj yeem sau 400 khoom. Qhov ntawd yog qhov chaw txaus rau 10 vib nas this nrog 40 qhov piv txwv ib pliag.
Kauj Ruam 2: Cov Khoom Siv thiab Cov Cuab Yeej
Cov ntaub ntawv- 2 x 1K resistor- 1 x LDR (Lub Teeb Ntsuas Tus Kheej), xws li M9960- 1 x LED tam sim no, 1.7V, 2ma- 1 x Atmel ATtiny13v, 1KB flash RAM, 64 Bytes RAM, 64 Bytes EEPROM, [email protected] 1 x CR2032, 3V, 220mAhTools- soldering hlau - solder wire- breadboard- AVR programmer- 5V fais fab mov- multimeterSoftware- Dab noj hnub- CDT plugin- WinAVRCosts tag nrho yuav tsum qis dua 5 $ yam tsis muaj cov cuab yeej. Kuv tau siv ATtiny13v vim tias cov khoom siv ntawm tsev neeg tswj hwm no tuaj yeem khiav ntawm 1.8V. Qhov ntawd ua rau nws muaj peev xwm los khiav lub Circuit nrog lub roj teeb me me. Txhawm rau kom nws ua haujlwm ntev heev, Kuv txiav txim siab siv qis LED tam sim no uas mus txog qhov ci tag nrho ntawm 2ma.
Kauj Ruam 3: Schematics
Qee cov lus hais txog ntawm schematic. Lub tswv yim rov pib dua tsis txuas nrog. Qhov no tsis yog kev xyaum zoo tshaj plaws. Zoo dua yuav yog siv 10K resistor li rub tawm. Tab sis nws ua haujlwm zoo rau kuv yam tsis muaj thiab nws txuag lub resistor. Ua kom lub Circuit Court yooj yim li sai tau, Kuv tau siv cov oscillator sab hauv. Qhov ntawd txhais tau tias peb txuag cov siv lead ua thiab ob lub capacitors me me. Cov oscillator sab hauv tso cai rau tus tswj ntawm 1.2MHz uas ntau dua qhov nrawm rau peb lub hom phiaj. Cov mis yog: R = (Fais fab mov V - LED V) / 0.002A = 1650 Ohm (Fais fab mov = 5V, LED V = 1.7V). Siv ob lub LED tam sim no qis dua ib qho, cov qauv zoo li no: R = (Lub hwj chim muab V - 2 * LED V) / 0.002A = 800 Ohm. Thov nco ntsoov, koj yuav tsum tau kho qhov kev suav yog tias koj xaiv lwm hom LED. Tus nqi ntawm tus tiv thaiv R2 nyob ntawm qhov siv LDR. 1KOhm ua haujlwm rau kuv. Tej zaum koj yuav xav siv lub zog ntsuas kom pom tus nqi zoo tshaj. Tus cicuit yuav tsum muaj peev xwm txheeb pom lub teeb hloov hauv nruab hnub nruab hnub. Txhawm rau txuag lub zog, PB3 tsuas yog teeb tsa siab, yog tias ntsuas tau ua tiav. Hloov tshiab: cov txheej txheem ua yuam kev. Hauv qab no yog qhov tseeb version. Ua tsaug, dave_chatting.
Kauj Ruam 4: Sib sau ua ke ntawm Pawg Thawj Coj
Yog tias koj nyiam ntsuas koj lub Circuit Court, lub khob cij ua ke tau yooj yim heev. Koj tuaj yeem sib sau ua ke txhua qhov yam tsis tas yuav ua dab tsi.
Kauj Ruam 5: Program Circuit
Tus maub los tuaj yeem ua haujlwm ua ntau hom lus. Feem ntau siv yog Assembler, Basic thiab C. Kuv siv C vim nws phim kuv qhov xav tau qhov zoo tshaj plaws. Kuv tau siv C kaum xyoo dhau los thiab muaj peev xwm rov ua qee qhov kev paub (zoo, tsuas yog qee qhov…). Thov sau koj qhov program, Kuv pom zoo dab noj hnub nrog CDT plugin. Tau txais dab noj hnub ntawm no https://www.eclipse.org/ thiab lub plugin ntawm no https://www.eclipse.org/cdt/. For rau kev suav cov lus C rau AVR microcontrollers koj yuav xav tau tus ntoo khaub lig sib dhos. Muaj hmoo zoo li peb yog, muaj qhov chaw nres nkoj ntawm GCC nto moo. Nws hu ua WinAVR thiab tuaj yeem pom ntawm no https://winavr.sourceforge.net/ Cov lus qhia tau zoo heev yuav ua li cas rau phiaj xwm AVR cov tswj hwm nrog WinAVR nyob ntawm no https://www.mikrocontroller.net/articles/AVR-GCC- Qhia. Thov txim, nws yog lus German tab sis koj yuav pom ntau txhiab nplooj ntawv qhia txog ntawm cov ncauj lus hauv koj hom lus, yog tias koj tshawb nrhiav rau lawv. Tom qab suav sau koj lub hauv paus, koj yuav tsum xa cov ntawv hex mus rau tus tswj. Qhov ntawd tuaj yeem ua tiav los ntawm kev txuas koj lub PC mus rau Circuit siv ISP (hauv cov programmer system) lossis siv cov programmer tshwj xeeb. Kuv siv tus programmer tshwj xeeb vim nws ua kom yooj yim dua los ntawm kev txuag qee cov xov hlau thiab ntsaws. Qhov tsis zoo yog, uas koj yuav tsum pauv tus tswj hwm ntawm lub Circuit Court thiab tus programmer txhua lub sijhawm koj xav hloov kho koj lub software. Kuv tus programmer los ntawm https://www.myavr.de/ thiab siv USB txuas rau kuv phau ntawv sau. Muaj ntau ntau lwm tus nyob ib puag ncig thiab koj tuaj yeem tsim nws koj tus kheej. Ib qho piv txwv kab hais kom ua yuav zoo li no:
avrdude -F -p t13 -c avr910 -P com4 -U nyem: w: flickled.hex: iTxuas nrog koj tuaj yeem tau txais lub hauv paus thiab cov ntaub ntawv sau ua ke hex.
Kauj ruam 6: Soldering
Yog tias koj lub Circuit Court ua haujlwm ntawm daim ntawv qhia zaub mov koj tuaj yeem muab nws tso rau.
Qhov no tuaj yeem ua tiav ntawm PCB (luam tawm lub rooj tsav xwm cicuit), ntawm pawg thawj coj lossis txawm tias tsis muaj pawg thawj coj saib. Kuv txiav txim siab ua nws yam yam tsis muaj cov khoom siv hluav taws xob tsuas yog siv ob peb yam xwb. Yog tias koj tsis tau paub dua txog kev siv tshuaj yaj yeeb, Kuv xav kom koj tshawb nrhiav cov tshuaj qhia ua ntej. Kuv qhov kev txawj ntse yog xeb me ntsis tab sis kuv xav tias koj tau txais lub tswv yim. Kuv vam tias koj nyiam nws. Alex
Pom zoo:
Totally Lit - Programmable RGB LED Acrylic Sign: 3 Cov Kauj Ruam (nrog Duab)
Totally Lit - Programmable RGB LED Acrylic Sign: Tau ua si ib puag ncig nrog lub tshuab txiav laser/kos duab, thiab tiag tiag poob rau hauv kev hlub nrog kos rau hauv kom pom tseeb acrylic thiab ci ib lub teeb ci los ntawm ntug. Lub tuab ntawm cov acrylic siv yog a.25 " daim ntawv, uas txiav tiag tiag huv los ntawm l
2D Art Nrog Programmable LEDs thiab Customizable Base thiab Logo: 5 Kauj Ruam (nrog Duab)
2D Art Nrog Programmable LEDs thiab Customizable Base thiab Logo: Txais tos rau cov lus qhia! Hnub no, kuv yuav qhia koj yuav ua li cas thiaj tsim 2D Art Project nrog lub logo thiab tsim txhua yam uas koj xaiv. Kuv tau ua txoj haujlwm no vim tias nws tuaj yeem qhia tib neeg txog ntau yam txuj ci xws li kev ua haujlwm, xov hlau, ua qauv 3D, thiab lwm yam. Qhov no
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Programmable Saib Nrog Plaub Tus Qauv Zaub: 5 Cov Kauj Ruam (nrog Duab)
Programmable Saib Nrog Plaub Tus Cwj Pwm Zaub: Koj yuav yog tus tham hauv lub nroog thaum koj hnav qhov tsis zoo no, loj heev, tsis siv lub dab teg tsis zoo. Zaub koj nyiam cov lus foul, zaj nkauj nkauj, tus lej tseem ceeb, thiab lwm yam Kev tshoov siab los ntawm Microreader cov khoom siv, Kuv txiav txim siab ua lub ntsej muag loj siv