Cov txheej txheem:

DIY Smart Necklace rau Valentine Khoom Plig los ntawm Arduino & OLED Zaub: 5 Kauj Ruam
DIY Smart Necklace rau Valentine Khoom Plig los ntawm Arduino & OLED Zaub: 5 Kauj Ruam

Video: DIY Smart Necklace rau Valentine Khoom Plig los ntawm Arduino & OLED Zaub: 5 Kauj Ruam

Video: DIY Smart Necklace rau Valentine Khoom Plig los ntawm Arduino & OLED Zaub: 5 Kauj Ruam
Video: САЛО. ЖАРЕННАЯ КАРТОШКА С ЛУКОМ. УЧУ ДЕТЕЙ ГОТОВИТЬ 2024, Hlis ntuj nqeg
Anonim
DIY Smart Necklace rau Valentine Khoom Plig los ntawm Arduino & OLED Display
DIY Smart Necklace rau Valentine Khoom Plig los ntawm Arduino & OLED Display

Nws yog lub sijhawm Valentine thiab yog tias koj tab tom npaj yuav muab khoom plig zoo rau koj tus phooj ywg, Nws yog qhov zoo dua los siv koj tus kheej kev paub lossis kev txawj ntse thiab ua rau lawv zoo siab nrog koj tus kheej cov khoom plig. Raws li koj paub, Arduino muab ntau txoj hauv kev xaiv los ua cov khoom sib txawv lossis cov khoom txias nrog cov khoom yooj yim xws li cov lus me me thiab cov ntsuas. Peb lub tswv yim tab tom ua caj dab los ntawm kev siv Arduino pro mini thiab OLED zaub thiab los tso saib cov tsiaj ntawv ntawm nws. Qhov kawg ntawm kab lus no koj:

Yuav kawm paub yuav ua li cas tso saib cov duab ntawm OLED cov lus los ntawm Arduino.

Yuav kawm paub yuav ua li cas kom Arduino cov laug cam me dua.

Yuav ua khoom plig txias rau Christmas.

Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau

Cov Ntaub Ntawv Yuav Tsum Tau
Cov Ntaub Ntawv Yuav Tsum Tau

Kho vajtse Cheebtsam

Arduino Pro Mini *1

0.96 SPI 128X64 OLED Display Module *1

Mercury Tilt Sensor Hloov *1

Roj teeb 80mAh 3.7 V lipo Polymer *1

Software Apps

Arduino IDE Cov

Kauj ruam 2: Circuit Court

Circuit Court
Circuit Court

Kauj ruam 3: Code

Code
Code

Koj yuav tsum ntxiv OLED lub tsev qiv ntawv tso saib thiab tom qab ntawd tso cov cai. Mus rau Tswj Libaray thiab tshawb nrhiav Adafruit SSD1306 thiab rub tawm nws. Yog tias nws yog thawj zaug uas koj siv Arduino board, tsis txhob txhawj, tsuas yog ua raws cov theem no:

1. Mus rau www.arduino.cc/en/Main/Software thiab rub tawm Arduino software sib xws rau koj li OS. Nruab IDE software raws li qhia.

2. Khiav Arduino IDE thiab tshem cov ntawv sau thiab luam cov cai hauv qab no hauv kab ntawv sau.

3. Xaiv lub rooj tsavxwm hauv cov cuab yeej thiab cov laug cam, xaiv koj li Arduino Board.

4. Txuas Arduino rau koj lub PC thiab teeb COM chaw nres nkoj hauv cov cuab yeej thiab chaw nres nkoj.

5. Nias lub pob Upload (Arrow sign).

6. Koj tau npaj txhij!

Kauj ruam 4: Sib dhos

Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos

Thawj kauj ruam hauv kev ua cov saw caj dab ntse yog txiav Arduino board kom ntau li ntau tau kom haum nws sab hauv txoj saw caj dab. Nws yog ib qho tseem ceeb heev kom tsis txhob txiav cov kab tseem ceeb hauv pawg thawj coj saib thiab tsuas yog txiav cov pins tsis siv. Tam sim no txuas Mercury hloov mus rau tus pin 7 thiab ntxiv ON/OFF hloov ntawm lub roj teeb thiab Arduino. Npog lub Circuit Court los ntawm Plexi-iav (Acrylic sheet) thav duab, ntxiv cov saw txuas rau saum tus ncej thiab txaus siab rau! Koj tuaj yeem tsim tus ncej nrog lwm yam khoom koj xav tau.

Kauj ruam 5: Dab tsi ntxiv?

Nov yog qee qhov lus qhia:

Sim ua lwm yam kev ua yeeb yaj kiab thiab tso saib lawv.

Sim ua kom muaj kev cuam tshuam rau lwm qhov tsis xws li kub.

Pom zoo: