Cov txheej txheem:

Tshav ntuj Simulator Teeb: 7 Cov Kauj Ruam (nrog Duab)
Tshav ntuj Simulator Teeb: 7 Cov Kauj Ruam (nrog Duab)

Video: Tshav ntuj Simulator Teeb: 7 Cov Kauj Ruam (nrog Duab)

Video: Tshav ntuj Simulator Teeb: 7 Cov Kauj Ruam (nrog Duab)
Video: Tseem Ev Lub Kawm - Koos Loos 2024, Kaum ib hlis
Anonim
Sunrise Simulator Teeb
Sunrise Simulator Teeb
Sunrise Simulator Teeb
Sunrise Simulator Teeb

Kuv tsim lub teeb no vim kuv nkees sawv thaum tsaus ntuj thaum lub caij ntuj no. Kuv paub koj tuaj yeem yuav cov khoom lag luam uas ua ib yam nkaus, tab sis kuv nyiam qhov kev xav ntawm kev siv qee yam uas kuv tau tsim.

Lub teeb simulates lub hnub tuaj ntawm maj mam nce hauv qhov ci rau ib teev pib ntawm lub tswb teeb tsa. Nws txuas ntawm Bluetooth mus rau Android app, uas tuaj yeem siv los teeb tsa lub sijhawm tswb, qhib lub teeb thiab tua, thiab kho qhov ci ci.

Peb txoj kev hloov nyob tom qab ntawm lub teeb toggles ntawm "On," "Off," thiab "Alarm" lub xeev. Thaum qhov hloov pauv yog "On", LED tas li ntawm lub teeb zoo li qub. Yog tias nws "Tawm", lub teeb yuav tsis qhib txawm tias lub tswb tau teeb tsa. Yog tias nws tau teeb tsa "Tswb", lub teeb yuav los ntawm lub sijhawm teev tseg thiab tseem tuaj yeem qhib rau txhua lub sijhawm nrog lub app.

Ob lub 10W sov dawb LEDs muab teeb pom kev zoo los ntawm lub vijtsam diffuser. Lub ci ci tuaj yeem tswj tau los ntawm lub pob qhov rooj dimmer nyob tom qab ntawm lub teeb lossis nrog rau app. Qhov siab tshaj plaws ntawm lub teeb thaum nws sawv ntxov (rau ib teev tom qab lub tswb teeb tsa lub sijhawm) kuj tseem tuaj yeem teeb nrog lub app.

Kuv tsis yog tus tsim khoom siv hluav taws xob yog li kuv paub tseeb tias muaj ntau txoj hauv kev los txhim kho raws li kuv tus qauv. Yog tias koj muaj lus qhia yuav ua li cas nws tuaj yeem txhim kho, thov qhia rau kuv paub.

Kauj ruam 1: Rooj plaub

Case
Case
Case
Case
Case
Case

Cov ntaub ntawv yog tsim los ntawm 1 × 4 fir board nrog 1/8 "plywood thaub qab. Tag nrho qhov sib dhos ua ke yog 6 "x 6" x 3-1/2. " Nyob nrog yog daim duab qhov ntev ntawm cov rooj plaub.

Ib lub qhov tau txiav hauv txhua sab ntawm rooj plaub kom muaj cov diffuser thaum rooj plaub tau sib sau ua ke. Lwm qhov thais 1/8 "sib sib zog nqus kuj tseem txiav rau txhua sab kom qhov 1/8" plywood thim rov qab los zaum yaug rau sab nraub qaum ntawm rooj plaub thaum sib sau ua ke. Ob sab rooj plaub raug txo qis thiab ua ke ua ke. Cov ntsia hlau tau siv rau hauv qab kom muaj zog ntxiv thiab lub hau taub hau tau npog nrog cov roj hmab puag ncig.

Cov ntaub ntawv thim rov qab tuav tag nrho cov khoom sab hauv ntawm lub teeb. Ib qho 3/8 "tuab ntu ntawm plywood qhov loj me ntawm PCB tau lo rau sab hauv ntawm 1/8" thim rov qab los ua lub hauv paus uas lub rooj tsav xwm hauv Circuit tuaj yeem raug ntsia tau. Cov ntsia hlau tuav lub PCB thiab cov hlau txuas nrog cov LEDs nyob rau hauv qhov chaw kom tag nrho cov khoom sab hauv tuaj yeem raug tshem tawm ua ib qho. Qhov 1/8 "thim rov qab yog muab ntsia rau hauv plaub rooj plaub. Peb yuav tsum tau nkag mus rau sab nraub qaum xav tau rau qhov qhib/tua/tswb hloov, lub qhov rooj dimmer, thiab lub hwj chim ntsaws.

Kauj ruam 2: Schematic

Schematic
Schematic
Schematic
Schematic
Schematic
Schematic

Txoj haujlwm no yog thawj zaug uas kuv tau siv Eagle, uas kuv tau siv los tsim ob qho tib si thiab cov txheej txheem PCB. Kuv tsis tau siv nws dua hauv ob peb xyoos txij li thaum kuv tsim qhov no, yog li thov tsis txhob nug kuv txog yuav siv nws li cas!

Nws tau ob peb xyoos txij li kuv tau tsim qhov no, tab sis kuv ntseeg tias qhov "Snooze" teeb liab tsis meej pem vim tias nws tsuas yog qhov taw qhia thiaj li firmware tau paub tias qhov hloov pauv tau qhib. Kuv xav tias kuv muaj qhov ua haujlwm snooze hauv kuv cov ntawv dhau los. Kuv kuj tau ntxiv lub taub hau rau kiv cua yog tias kuv xav tau txias rau LEDs tab sis yeej tsis tau xaus qhov xav tau nws.

Kauj Ruam 3: Circuit Board

Circuit Board
Circuit Board
Circuit Board
Circuit Board
Circuit Board
Circuit Board

Yog tias koj xav siv kuv tus qauv los xaj cov laug cam thiab tsis xav hloov dab tsi, koj tuaj yeem tau txais cov ntaub ntawv gerber ntawm rpdesigns.ca/sunrise-simulator-lamp, uas koj tuaj yeem xa mus rau feem ntau PCB cov tuam txhab kom tau cov laug cam luam tawm. Kuv siv PCBWay thiab tau txais txiaj ntsig zoo tiag tiag rau tus nqi zoo.

Txwv tsis pub koj tuaj yeem rub tawm Eagle.brd cov ntaub ntawv ntawm no thiab hloov kho nws raws li koj xav tau.

Kauj Ruam 4: Cov Nqi Khoom

Feem ntau ntawm cov khoom tuaj yeem xaj los ntawm Digikey, uas yog qhov zoo vim tias lawv muab cov khoom xa tuaj tom ntej. Kuv tau tsim qhov no ob peb xyoos dhau los yog li kuv tsis paub tseeb tias txhua yam khoom siv tseem muaj.

Kauj ruam 5: Firmware

Firmware
Firmware

Lub microcontroller kuv siv yog 28 tus pin ATMEGA168, uas yog tus qauv ntawm Arduino Duemilanove board. Vim li no, Arduino IDE yog qhov kev xaiv zoo rau kev txhim kho firmware.

PCB muaj ISCP lub taub hau rau kev ua haujlwm nrog USBTiny programmer, uas yooj yim heev thaum txhim kho thaum kuv khaws hloov kho yam, tab sis microcontroller kuj tseem tuaj yeem ua haujlwm tau yooj yim ntawm Arduino board thiab tom qab ntawd xa mus rau PCB.

Kauj ruam 6: Android App

Hauv App
Hauv App
Hauv App
Hauv App
Hauv App
Hauv App

Android app tau tsim los siv MIT App Inventor. Nws yog qhov yooj yim heev, vim nws yog thawj zaug thiab tsuas yog app kuv tau tsim. Koj tuaj yeem siv cov ntaub ntawv.apk nruab lub app ntawm koj lub cuab yeej Android.

Yog tias koj xav hloov qee yam hauv app, cov duab qhia pom qhov kuv tau siv rau MIT App Inventor.

Kauj Ruam 7: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

Cov duab qhia pom lub phaj tom qab ntawm rooj plaub nrog txhua lub khoos phis tawj txuas rau nws. Lub rooj tsav xwm hluav taws xob tau ntsia ncaj qha mus rau plywood thiab qhov raug txiav rau qhov hloov pauv, lub qhov rooj dimmer, thiab lub ntsaws ntsaws. Cov LEDs tau teeb tsa ntawm ob lub rhaub dej kub, uas tau txuas nrog cov plywood nrog khoov ntawm daim hlau nyias. Cov phaj rov qab no haum rau hauv rooj plaub thiab tuaj yeem txuas nrog cov ntsia hlau.

Qhov ntawd yog nws!

Pom zoo: