Cov txheej txheem:
- Kauj Ruam 1: Sau Txhua Qhov
- Kauj Ruam 2: Ua Lub Sensor Rug
- Kauj Ruam 3: Mount LED Sawb ntawm Koj Lub Txaj
- Kauj Ruam 4: Program Trinket
- Kauj Ruam 5: Ua Lub Circuit Court
- Kauj Ruam 6: Txaus siab rau !
Video: Fancy Bed Night Lights: 6 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:30
Los ntawm Danni FR Ua raws kuv ntawm twitter Ua raws ntau los ntawm tus sau:
Txog: Kuv txaus siab rau cov thev naus laus zis tshiab thiab yam uas peb tuaj yeem ua hauv tsev nrog ob peb yam khoom thiab kev xav me ntsis. Xav paub ntau ntxiv txog Danni FR »
Nov yog lub teeb pom kev zoo ntawm yav tom ntej! Lawv qhib thaum koj tawm ntawm koj lub txaj thaum ib tag hmo thiab tua thaum koj taug kev mus rau hauv koj lub tshuab npau suav zoo. Yog li tsis muaj xwm txheej hmo ntuj ntxiv thiab tsoo ntiv taw !!
Qhov no yog super yooj yim los ua thiab koj lub txaj yuav saib tawm ntawm lub ntiaj teb no. Yog li cia peb pib, puas yog?
Kauj Ruam 1: Sau Txhua Qhov
Okey, txhawm rau pib peb yuav tsum muaj txhua feem uas xav tau rau txoj haujlwm no. Thov nyeem kab ntawv no ua ntej yuav khoom dab tsi. Yog li koj yuav xav tau:
- Adafruit Trinket 5V (https://www.adafruit.com/product/1501)
- Ib lub khob cij (https://www.adafruit.com/product/64)
- Qee lub xov hlau jumper (https://www.adafruit.com/product/153)
- 4k7 ohm resistor (https://www.adafruit.com/product/2783)
- Ib daim ntawv velostat (https://www.adafruit.com/product/1361)
- Peb cov hlua LED (https://www.adafruit.com/product/2237)
- Lub hwj chim (https://www.adafruit.com/product/1466)
- Thiab ntawm chav kawm me ntsis ntawm kab xev, txhuas ntawv ci thiab daim ntawv nyias nyias
- Qee cov cuab yeej zoo li pliers, txiab thiab hlau txuas.
- Me ntsis kab xev hluav taws xob thiab kab xev kapton.
- Ib daim ntaub pua tsev !!!
Raws li koj tej zaum tuaj yeem pom kuv yog tus kiv cua loj ntawm Adafruit cov khoom, txawm li cas los xij koj tuaj yeem siv lwm cov qauv LED sawb. Qhov no yog nyob ntawm koj, kuv tus lej muaj ntau txoj kev xaiv muaj. Hauv kuv qhov teeb tsa kuv siv 50 LED SM16716 cov qauv, xav tias dawb siv ntau lub teeb raws li koj xav tau thiab txhua tus qauv kev cai txhawb nqa. Tab sis xav txog lub zog tsim nyog rau koj teeb tsa, nco ntsoov tias feem ntau rgb strips tuaj yeem xav tau ntau npaum li 60 mA ib LED. Yog li koj tau ceeb toom!
Kauj Ruam 2: Ua Lub Sensor Rug
Qhov no yog qhov ntev tshaj plaws ntawm qhov kev qhia no, tab sis nws yooj yim. Thov siv cov duab ua siv thiab ua raws cov kauj ruam no:
- Txiav ob daim ntawv txhuas ntawv me ntsis me dua daim ntawv velostat.
- Tom qab ntawd siv qee daim kab xev hluav taws xob los koom nrog 3 nplooj ntawv, nco ntsoov tias nyob hauv nruab nrab mus rau daim ntawv velostat. Kuj cia qhov chaw me me tsis muaj kab xev rau qhov thaiv.
- Siv qee tus tooj liab tapper los tsim hluav taws xob tiv tauj, ib qho mus rau hauv qab cov ntawv txhuas thiab lwm qhov nyob rau sab saum toj.
- Siv cov xaim xaim txuas rau daim kab xev tooj liab txuas thiab siv qee daim kab xev kapton los tiv thaiv kev sib txuas.
- Tom qab ntawd siv daim ntawv nyias nyias los ntawm kev tiv thaiv cov ntawv ci txhuas los ntawm ripping, cov ntawv no yuav tsum yog qhov loj ib yam li tag nrho cov ntsuas. Ruaj nws nrog daim kab xev hluav taws xob ntau dua. Kuj yuav tsum ceev faj ntawm qhov chaw me me tsis muaj kab xev lossis ua lub qhov me me nyob rau hauv ob qho tib si txhuas thiab duab los qhia kom huab cua khiav tawm yam tsis ua kev puas tsuaj rau lub ntsuas cua.
- Puas yog txhua yam yog qhov zoo koj tam sim no muaj lub luag haujlwm ua haujlwm nce qib sensor !!!
Nco tseg: Kuv siv lub hnab yas uas tuaj nrog daim ntawv velostat los tiv thaiv lub ntsuas cua los ntawm cov av noo, tsuas yog plam nws hauv:)
Kauj Ruam 3: Mount LED Sawb ntawm Koj Lub Txaj
Tam sim no cia peb mus rau qhov lom zem ntawm txoj haujlwm no, txuas koj lub teeb rau koj lub txaj !!! Kuv yuav tsis nkag mus rau hauv cov ntsiab lus ntau nrog qhov no, tsuas yog muaj tswv yim thiab ua raws li koj xav tau. Tab sis yog tias koj xav tau kev tshoov siab me ntsis kuv tso cov mines txhua ob peb centimeters thiab kuv tau siv daim kab xev npog los kho nws lub txaj.
Xav tias siv ntau Leds raws li koj xav tau, hauv txoj haujlwm thiab nrug koj xav tau:)
Kauj Ruam 4: Program Trinket
Okay, ua ntej tshaj plaws koj yuav tsum tau kawm paub siv Trinket li cas. Luckily adafruit muaj kev qhia zoo nyob ntawm no. Thaum koj npaj tau rov qab los rau qhov ua.
Kuv pom, koj tau rov qab los. Tam sim no koj paub yuav ua li cas thauj cov program mus rau Trinket nrog Arduino thiab cov hauv paus, tej zaum koj tau ua tiav Blinky demo:)
Tam sim no rub tawm lub tsev qiv ntawv FastLED zoo los ntawm GitHub thiab nruab nws. Thiab tom qab ntawd muab kuv cov lej tso rau hauv koj lub trinket, tau ua haujlwm kom tig lub LED hauv xiav nrog cov duab me me. Tab sis xav tias yuav hloov kho ib qho twg koj xav tau, nco ntsoov teeb tsa tus lej ntawm cov coj koj siv thiab hom kab txaij.
// Qhov haujlwm no tau tsim los ntawm Danni Fernandez #suav nrog #include "FastLED.h" #fine NUM_LEDS 50 // muaj pes tsawg leds koj cov kab txaij muaj #txhais DATA_PIN 0 // kab ntawv rau koj kab txaij #define CLOCK_PIN 1 // moos kab rau koj txoj hlua, yog koj txoj hlua tsis muaj cov lus hais nws#txhais SENSOR_PIN 1 // qhov twg lub sensor txuas nrog, ntawm adafruit trinket analog pin 1 sib npaug rau tus lej digital 2#txhais TRIGGER 50 // tus nqi hauv qab no xav txog ib tus neeg tab tom nqis tes CRGB coj [NUM_LEDS]; int inicialization = 0; int xeev = 0; void teeb () {yog (F_CPU == 16000000) clock_prescale_set (clock_div_1); // qhov twg xav tau lub pob tw khiav ntawm 16MHZ, thov tseem xaiv nws ntawm cov ntawv qhia zaub mov // Tsis pom zoo/kho ib qho ntawm kab hauv qab no rau koj cov hlua coj uas koj siv // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); //FastLED.addLeds(leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); FastLED.addLeds (leds, NUM_LEDS); // hauv kuv rooj plaub no yog kuv tus qauv qauv // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); // FastLED.addLeds (leds, NUM_LEDS); kev raug cai = 1; ncua (500);} void loop () {if (inicialization == 1) // tua tag nrho cov leds hauv hwj chim rau {rau (int i = 0; kuv <NUM_LEDS; i ++) {leds .setRGB (0, 0, 0); } FastLED.show (); kev raug cai = 0; FastLED.show (); } yog (analogRead (SENSOR_PIN) <= TRIGGER) // yog tias ib tus neeg nyob rau ntawm cov ntaub pua plag {yog (xeev == 0) // yog cov leds raug kaw ces ua cov duab no rau tig rau {rau (int i = 0; i < NUM_LEDS; kuv ++) {leds .setRGB (0, 0, 20); FastLED.show (); ncua (100); } ncua (200); rau (int x = 20; x <= 125; x ++) {rau (int i = 0; kuv <NUM_LEDS; kuv ++) {leds .setRGB (0, 0, x); } FastLED.show (); ncua (20); } thaum (analogRead (SENSOR_PIN) = 20; x--) {rau (int i = 0; i
Txog qhov kawg ntawm txoj cai tau txais nws ntawm GitHub:
Kauj Ruam 5: Ua Lub Circuit Court
Nws yog ib qho yooj yim Circuit Court, yog li nws tsuas yog siv ob peb feeb los ua qhov no hauv peb daim ntawv qhia zaub mov,:)
Kuv cov kev sib txuas yog raws li hauv qab no:
- 5V los ntawm lub zog xa mus rau BAT tus pin ntawm Trinket thiab Vcc ntawm peb cov hlua LED.
- GND los ntawm lub zog xa mus rau Trinket, ib txoj hlua ntawm peb cov ntaub pua plag sensor thiab GND ntawm LED sawb.
- Trinket tus pin 0 rau cov ntaub ntawv tus pin ntawm LED Sawb.
- Trinket tus pin 1 rau moos tus pin ntawm LED Sawb.
- Lwm cov hlau ntawm cov ntaub pua plag sensor mus rau Trinket tus pin 2, kuj yog 4k7 ohm resistor mus nruab nrab ntawm tus pin no thiab 5V tus pin ntawm Trinket.
Qhov ntawd yog txhua yam, koj tsis xav li cas?
Kauj Ruam 6: Txaus siab rau !
Nkaum txhua yam hauv qab koj lub txaj thiab tso lub ntsuas cua nyob hauv qab ntaub pua tsev. Tam sim no koj npaj txhij los tsoo qhov haujlwm no.
Kuv vam tias koj txaus siab rau nws thiab ua ntau hacking nrog cov animations thiab teeb pom kev zoo.
Ua tsaug rau koj nyeem kuv:)
Pom zoo:
DIY Homemade Fancy Teeb: 5 Kauj Ruam (nrog Duab)
DIY Homemade Fancy Lamp: Tam sim no kuv yog tub ntxhais kawm qib siab tam sim no kawm hauv chav kawm ntawm kev sib tw. Hauv chav kawm, Kuv tau muaj lub tswv yim siv lub voj voog yooj yim los ua tes haujlwm tsim los rau cov tub ntxhais kawm theem pib uas lom zem, muaj tswv yim, thiab qhia paub. Qhov project no suav nrog th
Bolt - DIY Wireless Charging Night Clock (6 Kauj Ruam): 6 Kauj Ruam (nrog Duab)
Bolt - DIY Wireless Charging Night Clock (6 Cov Kauj Ruam): Inductive chargings (tseem hu ua wireless charging lossis wireless charging) yog ib hom kev hloov fais fab wireless. Nws siv hluav taws xob nqus hluav taws xob los muab hluav taws xob rau cov khoom siv nqa tau. Feem ntau daim ntawv thov yog Qi wireless charging st
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
Fancy LED Hat: 5 Cov Kauj Ruam (nrog Duab)
Fancy LED Hat: Kuv ib txwm xav ua qhov project Arduino, tab sis yeej tsis muaj lub tswv yim zoo rau ib qho txog thaum kuv tsev neeg raug caw tuaj koom lub kaus mom zoo nkauj. Nrog ob lub lis piam ua lub sijhawm, Kuv xav paub yog tias kuv tuaj yeem npaj ob qho tib si thiab ua kom lub ntsej muag ntxim nyiam LED ua lub ntsej muag lub ntsej muag. Tig