Cov txheej txheem:

Siv Laus Noritake Itron VFD Modules: 7 Kauj Ruam
Siv Laus Noritake Itron VFD Modules: 7 Kauj Ruam

Video: Siv Laus Noritake Itron VFD Modules: 7 Kauj Ruam

Video: Siv Laus Noritake Itron VFD Modules: 7 Kauj Ruam
Video: Tswb Siv Yis, nraug laus. 2024, Lub rau hli ntuj
Anonim
Siv Laus Noritake Itron VFD Modules
Siv Laus Noritake Itron VFD Modules
Siv Laus Noritake Itron VFD Modules
Siv Laus Noritake Itron VFD Modules
Siv Laus Noritake Itron VFD Modules
Siv Laus Noritake Itron VFD Modules

Tam sim no thiab ntxiv koj tuaj hla qhov txaus nyiam ntawm ebay, los ntawm cov phooj ywg lossis tsuas yog rooting ncig hauv khw muag khoom thib ob. Ib qho piv txwv ntawm qhov no yog qhov loj loj Noritake Itron 40 x 2 cim lub tshuab nqus tsev-fluorescent zaub los ntawm xyoo 1994 (lossis dhau los) uas tau dhau los ntawm cov neeg siv khoom.

Keeb kwm nws zoo li nyuaj heev, txawm li cas los xij tom qab siv qee lub sijhawm cov ntawv txheeb tau pom thiab nws tau tshawb pom kom muaj cov ntawv yooj yim sib cuam tshuam - thiab nrog kev ua haujlwm me ntsis peb tau txais nws ua haujlwm, yog li nyeem yog tias koj txaus siab rau VFDs qub lossis muaj chav nyob zoo sib xws.

Kauj ruam 1:

Duab
Duab

Tus lej sib cuam tshuam tus nqi baud tau txiav txim siab los ntawm jumper cov ntaub ntawm PCB.

Kauj ruam 2:

Duab
Duab

Yog li sib piv cov lus saum toj no tiv thaiv cov dhia ntawm peb tus qauv muab rau peb cov ntaub ntawv ceev ntawm 19200 bps uas tsis muaj kev ncaj ncees. Zoo kawg - peb tuaj yeem tsim qhov kev sib txuas zoo nrog lub microcontroller nrog cov ntawv tso tawm thiab 5V cov laj thawj qib; rau peb cov piv txwv peb yuav siv pawg tswj hwm Arduino.

Kauj ruam 3:

Kev xaim VFD yog qhov yooj yim - saib cov dhia dhia dawb sau npe CN2 raws li tau hais ua ntej. Tus Pin 1 yog 5V (koj xav tau cov khoom siv sab nraud uas tuaj yeem muab txog 700 mA), tus pin 2 rau Arduino tus pin 7, thiab tus pin 3 rau Arduino thiab lub hwj chim muab GND.

Peb siv Arduino D7 nrog cov software software hloov chaw TX kom cov zaub tsis tso tawm cov khib nyiab thaum kos duab raug xa mus. Tom qab ntawd nws yog teeb meem ntawm kev yooj yim xa cov ntawv mus rau cov zaub, piv txwv li ntawm no yog daim duab qhia kev nrawm:

// Ua haujlwm nrog Noritake Itron VFD modules - qauv CU40026SCPB -T20A #suav nrog SoftwareSerial VFD (6, 7); // RX, TX

void teeb tsa ()

{VFD.begin (19200); }

void lub voj ()

{VFD.print ("Nyob zoo, ntiaj teb. Qhov no yog Noritake VFD"); // Koj tuaj yeem tawg tawm cov ntawv ua {} thaum (1); }

Kauj ruam 4:

Duab
Duab

Qhov tshwm sim nrog cov hauv qab no…

Kauj ruam 5:

Duab
Duab

Yog tias koj tsis mob siab rau xim lossis siv ntawm cov zaub, sim qee Perspex saum toj - piv txwv …

Kauj Ruam 6: Tswj Cov Zaub

Hauv qhov no koj yuav xav tau cov ntaub ntawv teev cov ntaub ntawv. Raws li koj tau pom yav dhau los, kev sau cov ntawv yog yooj yim heev - tsuas yog siv.print ua haujlwm. Txawm li cas los xij koj yuav xav xa ib tus cim, nrog rau cov lus txib tshwj xeeb los tswj cov yam ntxwv ntawm cov zaub. Cov no tau hais tseg hauv cov ntaub ntawv - saib "Software Commands" thiab "Character Fonts" ntxhuav.

Yog tias koj xav tau xa ib lo lus txib - piv txwv li "pom meej" uas yog 0x0E, siv lo lus txib.write, xws li:

VFD.write (0x0E); // meej zaub

Qee cov lus txib yog nyob rau hauv cov qauv ntawm cov lej khiav tawm (nco qab cov?) Yog li koj yuav tsum xa ESC tom qab ntawv byte, piv txwv li hloov qhov ci ci rau 50%:

VFD.write (0x1B); // ESC VFD.write (0x4C); // ci ntsa iab VFD.write (0x40); // 50% ci ntsa iab

Ua tub rog nrog qhov kev paub thiab cov ntaub ntawv koj tuaj yeem tam sim no ua tiav txhua cov lus txib. Raws li cov ntaub ntawv nws muaj peev xwm hloov fonts txawm li cas los xij tsis muaj teeb meem dab tsi kho vajtse jumper lossis hais kom peb sim nws yuav tsis tawm ntawm Japanese katakana font. Koj lub vijtsam yuav txawv. Yog tias koj siv "tshuaj ntsuam qhov tseem ceeb sau" ua haujlwm mloog cov ntaub ntawv nrog kev hwm rau ncua sijhawm "tibneeg hu tauj coob" los ntawm kev ncua sijhawm sau ntawv tom ntej mus rau lub millisecond.

Kauj Ruam 7: Muab tag nrho ua ke

Hloov chaw piav qhia txhua qhov thiab txhua qhov hais kom ua tau, kuv tau muab tso rau hauv cov ntaub ntawv ua haujlwm hauv qhov ua piv txwv qhia hauv qab no, uas yog ua raws cov vis dis aus nrawm ntawm daim duab kos hauv kev ua haujlwm.

// Ua haujlwm nrog Noritake Itron VFD modules - qauv CU40026SCPB -T20A // John Boxall 2013

#suav nrog

SoftwareSerial VFD (6, 7); // rx, txo

void teeb tsa ()

{VFD.begin (19200); // teeb tsa nrawm rau software serial chaw nres nkoj resetVFD (); VFDclearsceen (); // VFD.write (0x12); // ntsug scroll hom (ntawm)}

void resetVFD ()

// ua software rov pib dua ntawm VFD maub los {VFD.write (0x1B); // ESC VFD.write (0x49); // software rov pib dua}

tsis muaj dab tsi VFDnewline ()

// txav tus cursor los pib kab tom ntej {VFD.write (0x0D); // nqa rov qab VFD.write (0x0A); // kab noj}

tsis muaj dab tsi VFDclearsceen ()

// txav tus cursor mus rau sab saud sab laug thiab tshem tawm cov lus qhia {VFD.write (0x0E); // qhia meej VFD.write (0x0C); // daim ntawv pub - tus cursor rau sab saud}

void VFDbrightness (int tus nqi)

// teeb tsa VFD qhov ci ci - 25/50/75/100% // siv ESC ntu {hloov (tus nqi) {rooj plaub 25: VFD.write (0x1B); // ESC VFD.write (0x4C); // ci ntsa iab VFD.print (0); // 25% ci ci tawg; rooj plaub 50: VFD.write (0x1B); // ESC VFD.write (0x4C); // ci ntsa iab VFD.write (0x40); // 50% ci ci tawg; rooj plaub 75: VFD.write (0x1B); // ESC VFD.write (0x4C); // ci VFD.write (0x80); // 75% ci ci tawg; rooj plaub 100: VFD.write (0x1B); // ESC VFD.write (0x4C); // ci ntsa iab VFD.write (0xC0); // 100% ci ntsa iab}

tsis muaj VFDchars ()

// khiav los ntawm cov cim rau xaiv font {rau (int i = 21; i <256; i ++) {VFD.write (0x16); // underline cursor tawm VFD.write (i); ncua (100); }}

void moveCursor (txoj haujlwm byte)

// txav tus cursor - kab saum toj kawg nkaus yog 0 ~ 39, kab hauv qab yog 40 ~ 79 // hom kab rov tav yuav tsum tau muab tua yog tias siv {VFD.write (0x1B); // ESC VFD.write (0x48); // txav tus cursor VFD.write (txoj haujlwm); // qhov chaw}

void lub voj ()

{VFD.write (0x16); // underline cursor off VFD.print ("Nyob zoo, ntiaj teb - kab ib."); // Koj tuaj yeem tawg tawm cov ntawv ncua (1000); VFDnewline (); VFD.print ("Nyob zoo, ntiaj teb - kab ob."); ncua (1000); VFDclearsceen (); VFDbrightness (25); VFD.print ("*** 25% ci ntsa iab ***"); ncua (1000); VFDclearsceen (); VFDbrightness (50); VFD.print ("*** 50% ci ntsa iab ***"); ncua (1000); VFDclearsceen (); VFDbrightness (75); VFD.print ("*** 75% ci ntsa iab ***"); ncua (1000); VFDclearsceen (); VFDbrightness (100); VFD.print ("*** 100% ci ntsa iab ***"); ncua (1000); VFDclearsceen ();

VFDchars ();

VFDclearsceen ();

rau (int i = 0; kuv <80; i ++) {VFD.write (0x16); // underline tus cursor tawm moveCursor (i); VFD.print ("X"); ncua (100); moveCursor (kuv); VFD.print (""); } VFDclearsceen (); }

Peb vam tias koj pom qhov no nthuav thiab muaj txiaj ntsig.

Cov ntawv tshaj tawm no tau coj tuaj rau koj los ntawm pmdway.com - txhua yam rau cov kws tsim khoom thiab cov khoom siv hluav taws xob, nrog kev xa khoom dawb thoob ntiaj teb.

Pom zoo: