Cov txheej txheem:

Kev Cai Duab ntawm Nokia 5110 Zaub: 7 Kauj Ruam
Kev Cai Duab ntawm Nokia 5110 Zaub: 7 Kauj Ruam

Video: Kev Cai Duab ntawm Nokia 5110 Zaub: 7 Kauj Ruam

Video: Kev Cai Duab ntawm Nokia 5110 Zaub: 7 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
Kev Cai Duab ntawm Nokia 5110 Zaub
Kev Cai Duab ntawm Nokia 5110 Zaub

Hav guys! Moxigen ntawm no. Txog 3 xyoos dhau los, Kuv kaw kuv tus kheej lub xaib (inKnowit.in) uas muaj 30 blog lossis yog li ntawm nws. Kuv txuas ntxiv blogging ntawm no tab sis kuv poob kev txhawb siab sai heev thiab sau tsuas yog peb lub blog. Tom qab xav ntau kuv tau txiav txim siab txuas ntxiv blogging. Kuv yuav tshaj tawm cov haujlwm yooj yim heev tam sim no. Txij li thaum kuv tau dag ib puag ncig nrog Nokia 5110 zaub rau ib ntus, Kuv tau txiav txim siab sau kuv qhov blog thib plaub ntawm kev cuam tshuam cov zaub no nrog Arduino MicroController board.

Kauj ruam 1: Lob Cov Kev Xav Tau

Lob Cov Kev Xav Tau!
Lob Cov Kev Xav Tau!
Lob Cov Kev Xav Tau!
Lob Cov Kev Xav Tau!
Lob Cov Kev Xav Tau!
Lob Cov Kev Xav Tau!

Rau qhov kev qhia no, koj xav tau:

1. A Nokia 5110 LCD zaub. Koj tuaj yeem khaws nws los ntawm Nokia qub 5110, lossis koj tuaj yeem yuav nws online. Nov yog qhov txuas uas yuav pab koj yuav nws:

Arduino 5110 zaub-Ebay

2. An pawg thawj coj saib Arduino. [Kuv tau siv NANO hauv qhov no]

3. (5 x [1000 ohm resistors])

4. (1 x [330 ohm resistors])

5. A 10kohm potentiometer.

6. Ib pawg ntawm jumper xov hlau.

7. A daim ntawv qhia zaub mov.

Kauj Ruam 2: Txuas Nws

Hlau Nws!
Hlau Nws!

Txij li thaum kuv nrhiav tsis tau Nokia 5110 tivthaiv hauv Fritzing lub tsev qiv ntawv, Kuv txiav txim siab kos duab tawm ntawm kuv tus kheej. Nco ntsoov siv 1000 ohm resistors thaum txuas RST, CE, DC, Din thiab CLK tus pin mus rau pawg tswj hwm arduino thiab 380 ohm resistor nrog lub zog.

Kauj Ruam 3: Txhim Kho Lub Tsev Nokia 5110

Koj yuav tsum tau teeb tsa Nokia 5110 lub tsev qiv ntawv ua ntej. Nov yog qhov txuas rau lub tsev qiv ntawv. Rub nws, unzip nws thiab txav nws mus rau hauv Arduino Libraries nplaub tshev.

Nokia 5110 Lub Tsev Qiv Ntawv rau Arduino

Kauj ruam 4: Hloov Duab

Koj yuav tsum tau hloov cov duab koj xav kom tso rau hauv cov ntaub ntawv bitmap. Tsis tas li koj yuav xav hloov qhov kev daws teeb meem ntawm daim duab mus rau 84*48, kom haum rau cov lus daws teeb meem. Nov yog lub xaib uas yuav pab koj ua qhov ntawd:

Hloov Online

Kauj Ruam 5: Hloov Cov Duab Bitmap rau C Array

Tam sim no, koj yuav tsum tau siv software los hloov cov duab.bmp rau C array.

Cov neeg siv Windows tuaj yeem siv LCDAssistant (Cov ntaub ntawv txuas) thiab MacBook cov neeg siv tuaj yeem siv LCDCreator (Cov Ntaub Ntawv Txuas).

Thaum koj hloov daim duab, theej cov array. Kuv yuav piav qhia hauv cov kauj ruam ntxiv seb yuav siv cov array raws nraim li cas.

Kauj Ruam 6: Txoj Cai

#suav nrog // suav nrog tsev qiv ntawv LCD5110 myGLCD (8, 9, 10, 12, 11); // Tsim cov khoom LCD

sab nrauv uint8_t nraaj ; // Xws li cov duab

void teeb tsa () {

myGLCDInitLCD (); // Intializing LCD

}

void voj () {

myGLCD.clrScr (); // Ntxuav qhov screen

myGLCD.drawBitmap (0, 0, duab, 84, 48); // Rub tawm bitmap

myGLCD.update (); // Hloov kho LCD

}

Tsim cais tab thiab npe nws li Graphics. C

Tam sim no rau qhov kev cai nraaj ib feem.

Peb yuav txuag C txoj cai hauv qhov kev pab cuam hloov pauv SRAM vim peb ib txwm xav tau kev siv RAM me me. Txhawm rau ua qhov no peb yuav tsum suav nrog lub tsev qiv ntawv thiab lo lus zoo li cov duab lossis zoo li no: (Peb suav nrog PROGMEM lo lus thiab lub tsev qiv ntawv) [Nkag mus rau qhov no hauv Graphics. C ib feem];

#suav nrog suav tsis kos npe kos duab PROGMEM = {

// Nkag mus rau C array koj tau theej ua ntej ntawm no

// Lwm qhov, ntxig rau kuv cov duab graphics.c uas kuv tau suav nrog

}

Kauj Ruam 7: Koj Txhua Tus Ua tiav

Koj Txhua Tus Ua tiav!
Koj Txhua Tus Ua tiav!

Rub qhov program mus rau arduino ntawm usb cable, thiab koj zoo mus.

Nov yog lwm qhov piv txwv uas kuv tau nthuav tawm StoneSour lub logo ntawm Nokia 5110 zaub.

Kuv qhib rau kev thuam, yog li thov ua siab zoo los tawm tswv yim koj cov kev xav ntawm cov lus qhia no. Xa lus rau kuv yog tias koj muaj teeb meem cuam tshuam nrog txoj haujlwm no.

Instagram- @moxigen

Facebook- Moksh Jadhav

Pom zoo: