Cov txheej txheem:

Sib Teeb Yard Teeb, Teeb Kev Taug Kev: 3 Kauj Ruam
Sib Teeb Yard Teeb, Teeb Kev Taug Kev: 3 Kauj Ruam

Video: Sib Teeb Yard Teeb, Teeb Kev Taug Kev: 3 Kauj Ruam

Video: Sib Teeb Yard Teeb, Teeb Kev Taug Kev: 3 Kauj Ruam
Video: Xyw By Nquab Tsab New Song 2022-2023 2024, Hlis ntuj nqeg
Anonim
Sib Teeb Yard Teeb, Txoj Kev Teeb
Sib Teeb Yard Teeb, Txoj Kev Teeb
Sib Teeb Yard Teeb, Txoj Kev Teeb
Sib Teeb Yard Teeb, Txoj Kev Teeb

Kuv xav tsim qee yam kev sib tham sib teeb teeb rau kuv lub tiaj nraum qaum tsev. Lub tswv yim yog, thaum ib tus neeg taug kev ib txoj hauv kev nws yuav teeb tsa cov yeeb yaj kiab hauv txoj kev koj taug kev. Kuv pib nrog Dollar General $ 1.00 hnub ci teeb

Kauj Ruam 1: Tshem lub teeb Solor

Teeb lub Solor Teeb
Teeb lub Solor Teeb
Teeb lub Solor Teeb
Teeb lub Solor Teeb
Teeb lub Solor Teeb
Teeb lub Solor Teeb

Thawj kauj ruam yog txhawm rau lub teeb kom ua rau txoj kev lom zem dua. Kuv pib los ntawm kev txiav tawm thawj coj thiab roj teeb. Nco ntsoov khaws cov khoom no raws li lawv yuav muaj txiaj ntsig hauv lwm qhov haujlwm kuv tseem tshem lub chrome dome uas nyob hauv qab ntawm lub hnub ci ci thiab ua rau nws zoo rau saum raws li pom hauv cov duab

Kauj Ruam 2: Txhim Kho Teeb Zoo

Txhim Kho Teeb Zoo
Txhim Kho Teeb Zoo
Txhim Kho Teeb Zoo
Txhim Kho Teeb Zoo
Txhim Kho Teeb Zoo
Txhim Kho Teeb Zoo

rau cov coj kuv siv cov dej tsis zoo ws2811b uas tuaj yeem pom ntawm no

www.ebay.com/itm/50-X-12mm-LED-Module-RGB-…

Kuv xub npaj tseg tso PIR sensors sab hauv lub hnub ci teeb. tab sis qhov no tau ua pov thawj los ua qee qhov teeb meem vim tias lub hauv paus tsis tuaj yeem pom yav dhau los ntawm cov yas. nws yuav tsum muaj qee yam ntawm UV lim kev tsim nyog. yog li kuv tau xaiv rau qee yam zoo li qhov no

www.thingiverse.com/thing 2590216

Kauj ruam 3: Coding

yog tias koj xav ua lub teeb tsis siv sensor lossis tsuas yog khiav txhua lub sijhawm tsuas yog nrhiav qhov chaw uas tau hais tawm tias "hloov pauv chij xeev" thiab teeb nws rau ether 1 lossis 0 Kuv yuav ntxiv cov duab ntxiv thaum kuv ua tiav qhov no rau kuv tus kheej nws tseem yog qhov ua haujlwm tab sis kuv xav tias nws zoo heev tsis qhia tawm tam sim. ua tsaug rau kev saib

void teeb tsa () {

// muab koj cov cai teeb tsa ntawm no, kom khiav ib zaug: FastLED.addLeds (leds, NUM_LEDS); Serial.begin (9600); pinMode (buttonPin1, INPUT); pinMode (buttonPin2, INPUT); }

void voj () {

Serial.println (FlagState);

yog (FlagState == 0) {ForwardLeds (); } yog (FlagState == 1) {RevLeds (); } yog (FlagState == 2) {Tos (); }}

tsis muaj dab tsi ForwardLeds () {

FirstLed = -1; LastLed = 16; rau (int i = 0; i <8; i ++) {LastLed--; FirstLed ++; leds [LastLed] = CRGB:: Dawb; leds [FirstLed] = CRGB:: Dawb; ncua (750); FastLED.show (); Serial.print ("Dawb hla"); Serial.print (kuv); Serial.println ("ntawm 8"); } FirstLed = -1; LastLed = 16; rau (int i = 0; i <8; i ++) {LastLed--; FirstLed ++; leds [LastLed] = CRGB:: Blue; leds [FirstLed] = CRGB:: Blue; ncua (250); FastLED.show (); Serial.print ("Blue Pass"); Serial.print (kuv); Serial.println ("ntawm 8"); } FirstLed = -1; LastLed = 16; rau (int i = 0; i <8; i ++) {LastLed--; FirstLed ++; leds [LastLed] = CRGB:: Ntshav; leds [FirstLed] = CRGB:: Ntshav; ncua (250); FastLED.show (); Serial.print ("Red Pass"); Serial.print (kuv); Serial.println ("ntawm 8"); } FirstLed = -1; LastLed = 16; rau (int i = 0; i <8; i ++) {LastLed--; FirstLed ++; leds [LastLed] = CRGB:: Dub; leds [FirstLed] = CRGB:: Dub; ncua (250); FastLED.show (); Serial.print ("Tua tawm coj"); Serial.print (kuv); Serial.println ("ntawm 8"); } FlagState = 2; // hloov pauv chij xeev} tsis muaj RevLeds () {Serial.println ("rov qab"); FirstLed = 8; LastLed = 7; rau (int i = 0; i <8; i ++) {LastLed ++; FirstLed--; leds [LastLed] = CRGB:: Dawb; leds [FirstLed] = CRGB:: Dawb; ncua (750); FastLED.show (); Serial.print ("Hla dawb"); Serial.print (kuv); Serial.println ("ntawm 8"); } FirstLed = 8; LastLed = 7; rau (int i = 0; i <8; i ++) {LastLed ++; FirstLed--; leds [LastLed] = CRGB:: Blue; leds [FirstLed] = CRGB:: Blue; ncua (250); FastLED.show (); Serial.print ("Xiav dhau"); Serial.print (kuv); Serial.println ("ntawm 8"); } FirstLed = 8; LastLed = 7; rau (int i = 0; i <8; i ++) {LastLed ++; FirstLed--; leds [LastLed] = CRGB:: Ntshav; leds [FirstLed] = CRGB:: Ntshav; ncua (250); FastLED.show (); Serial.print ("Liab hla"); Serial.print (kuv); Serial.println ("ntawm 8"); }

FirstLed = 8;

LastLed = 7; rau (int i = 0; i <8; i ++) {LastLed ++; FirstLed--; leds [LastLed] = CRGB:: Dub; leds [FirstLed] = CRGB:: Dub; ncua (250); FastLED.show (); Serial.print ("Tua Tawm Led"); Serial.print (kuv); Serial.println ("ntawm 8"); } FlagState = 2; // hloov pauv chij xeev} tsis muaj dab tsi Tos () {buttonState1 = digitalRead (buttonPin1); buttonState2 = digitalRead (buttonPin2); yog (buttonState1 == HIGH) {Serial.println ("xa mus rau tom ntej"); FlagState = 0; } lwm tus yog (buttonState2 == HIGH) {Serial.println ("Rev triggered"); FlagState = 1; } Serial.println ("lub voj tas tos"); }

Pom zoo: