Cov txheej txheem:
- Kauj ruam 1: Yam Koj Yuav Tsum Tau
- Kauj ruam 2: Tsev qiv ntawv ??? Tsis Muaj Teeb Meem
- Kauj Ruam 3: Arduino Code
- Kauj Ruam 4: Txuas lub LCD rau Arduino
Video: Zaub Nyob Arduino Sensor Nyeem Ntawv ntawm Nokia 5110 LCD: 4 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Yog tias koj tau ua haujlwm nrog arduino, tej zaum koj xav tau nws los tso saib cov ntawv nyeem nyeem. Kev siv lub ntsuas saib yog qhov zoo kawg nkaus, tab sis ua tus tsis zoo arduino koj tau dhau los sai sai, tej zaum koj xav kom nws nthuav tawm cov ntawv nyeem ntawm qee yam kev txawj ntse Ntxiv rau, muaj koj li arduino txuas nrog lub PC lossis lub laptop tsis yog qhov ua kom nws nqa tau yooj yim thiab muaj lub LCD txuas los tso saib koj cov ntaub ntawv tau txais txiaj ntsig zoo yog tias koj xav nqa koj Arduino ncig. Nov yog qee qhov YOOJ YIM kom ua raws cov lus qhia yuav ua li cas xaim thiab program koj li arduino yog li nws yuav ua haujlwm nrog cov zaub.
Ntawm ib sab ntawv, Kuv kuj tseem tau qhia txog kev siv OLED zaub, uas tsuas yog siv 4 xov hlau. Yog tias koj xav tshuaj xyuas qhov no, ntawm no yog qhov txuas:
www.instructables.com/id/Easy-OLED-Display/
Kauj ruam 1: Yam Koj Yuav Tsum Tau
Txog qhov haujlwm no koj yuav xav tau: -Nokia 5110 LCD-Dupont xaim-Arduino IDE-Arduino (kuaj ntawm UNO) -Adafruit_GFX lub tsev qiv ntawv-Adafruit_PCD8544 lub tsev qiv ntawv Koj tuaj yeem yuav Nokia 5110 LCD ntawm ebay nyob ib ncig ntawm 2 duas las. Tib yam mus rau dupont xaim. Tshawb nrhiav ebay rau "40PCS dupont xaim txiv neej rau poj niam", nws raug nqi txog ib daus las.
Kauj ruam 2: Tsev qiv ntawv ??? Tsis Muaj Teeb Meem
Tam sim no, yog tias koj tau ua haujlwm nrog Arduino ua ntej, tej zaum koj muaj IDE thiab qhov tseeb Arduino. Txawm li cas los xij, yog tias koj tseem tsis tau paub txog cov tsev qiv ntawv, tsis tas yuav txhawj xeeb, lawv yooj yim heev rau siv. Rub lawv los ntawm kev ua raws cov kab hauv qab no, thiab nyem rau rub tawm ZIP ntawm sab xis ntawm lub vev xaib. https://github.com/adafruit/Adafruit-GFX-Libraryhttps://github.com/adafruit/Adafruit-PCD8544-Nokia… Tom qab koj tau rub tawm cov zip file, rho tawm lawv mus rau hauv cov ntawv qiv hauv koj li ntaub ntawv Arduino loj (feem ntau C:/Program files/Arduino/libraries) Extract cov ntaub ntawv mus rau hauv lub tsev qiv ntawv nplaub tshev thiab hloov lawv mus rau Adafruit_GFX thiab Adafruit_PCD8544 Qhov ntawd yog txhua yam koj yuav tsum tau ua rau ntu no. Tam sim no mus rau qhov chaws.
Kauj Ruam 3: Arduino Code
Kuv tau sau tus qauv khoob, koj tsuas yog xav tau ntxiv cov cai uas nyeem los ntawm koj lub ntsuas thiab nws yuav tsum ua haujlwm. Kuv tus lej sau rau tus lej saib hauv IDE ntxiv rau 5110 LCD. Qhov koj yuav tsum tau hloov pauv kom nws tso saib cov nyeem (thiab ntawv) uas koj xav tau cim hauv tus lej.#Suav nrog // lej thiab SPI yuav tsum yog twb nyob hauv koj lub tsev qiv ntawv khaws cia los ntawm lub neej ntawd, tsis txhob txhawj txog cov#suav nrog#suav nrog // peb rub tawm qhov no tam sim no#suav nrog Adafruit_PCD8544 zaub = Adafruit_PCD8544 (7, 6, 5, 4, 3); // cov koob siv los txuas rau LCD#txhais XPOS 0#txhais YPOS 1float sensorPin = A0; // koj tus pin tus lej, koj tuaj yeem hloov qhov no yog tias koj xav tau teeb tsa () {Serial.begin (9600); display.begin ();} void loop () {ntab sensorValue = analogRead (sensorPin); // koj tuaj yeem hloov "sensorValue" hauv txhua txoj cai rau txhua yam koj xav tauSerial.print ("Tus nqi ntawm sensor A yog:"); // yuav tso tawm cov ntawv no ntawm tus saib xyuas Serial.println (sensorValue); // tsis txhob hnov qab ln yog li tom ntej no sau sau rau hauv kab tom ntej tso saib.clearDisplay (); // tshem tawm cov lus qhia txhua lub sijhawm lub voj pib overdisplay.setCursor (0, 0); display.print ("Tus nqi ntawm sensor A yog:"); // qhov no yuav sau rau ntawm LCDdisplay.println (sensorValue); display.display (); ncua (1000);} Yog tias koj tau ua txhua yam kom raug, txoj cai yuav tsum ua haujlwm, tab sis tsis txhob khiav nws tsuas yog, peb yuav tsum txuas lub vijtsam ua ntej.
Kauj Ruam 4: Txuas lub LCD rau Arduino
Peb yuav luag tiav! qhov tsuas yog tshuav yog qhov txuas cov pins ntawm LCD mus rau Arduino. Luckily cov pins (los ntawm 1 txog 5) tau txuas nrog uake, yog li koj txoj hauv kev tuaj yeem hla lawv tsis raug yog qhov yooj yim heev. Txuas tus pin 1-5 ntawm Nokia 5110 LCD rau pins 3-7 ntawm koj Arduino. (Yog li RST yuav mus rau Arduino tus pin 3, CE yuav mus rau tus pin 4 thiab ntxiv rau) Tom qab koj tau txuas tag nrho cov pins, koj yuav pom tias 3 tau tso tseg lawm. Cov pins no yuav tsum txuas nrog 3.3V, 5V thiab GND tus pin ntawm koj Arduino. Pom tseeb GND LCD tus pin mus rau GND ntawm Arduino. Nyob ntawm seb yam Arduino koj muaj thiab hom vijtsam twg koj muaj, ua si nrog txuas ob lub LCD kawg rau 5V lossis 3.3V tus pin ntawm koj Arduino. Ob leeg yuav tsum ua haujlwm, tab sis sim nws rau koj tus kheej thiab saib seb qhov kev sib xyaw ua ke zoo tshaj plaws. Koj tseem tso tus nqi me me tiv thaiv (ib puag ncig 100-200Ohm yuav tsum zoo) ntawm 3-7 Arduino pins thiab LCD pins yuav tsis ua mob. Qhov no tsuas yog rau kev nyab xeeb thiab tsis xav tau yog tias koj tsis xav siv lub vijtsam ntev lub sijhawm. Tom qab txhua yam txuas nrog, koj tuaj yeem tso cov cai thiab pib muaj kev lom zem nrog koj cov ntaub ntawv tshiab Arduino zaub LCD. Kuv vam tias cov lus qhia tau yooj yim nkag siab thiab pab tsawg kawg ntawm koj.
Pom zoo:
Cheeb Tsam Impedance Siv Cov Lej Nyeem Nyeem Nyeem Ntawv: 6 Kauj Ruam
Cheeb Tsam Impedance Siv Cov Zauv Ua Ntej: Nov yog daim ntawv thov siv ntawm cov lej ua lej sib luag.Qhov no yog qhov tseeb cov txheej txheem muaj txiaj ntsig zoo uas koj tuaj yeem siv los qhia tus yam ntxwv, lossis txawm tias lub kav hlau txais xov, ntawm qhov ua ntej ua ntej yog tias koj tau tinkering nrog hluav taws xob koj tej zaum yog fam
Nyeem Ntawv Ultrasonic Sensor (HC-SR04) Cov ntaub ntawv ntawm 128 × 128 LCD thiab Pom Nws Siv Matplotlib: 8 Kauj Ruam
Nyeem Ntawv Ultrasonic Sensor (HC-SR04) Cov ntaub ntawv ntawm 128 × 128 LCD thiab Pom Kev Pom Nws Siv Matplotlib: Hauv cov lus qhia no, peb yuav siv MSP432 LaunchPad + BoosterPack los tso saib cov ntaub ntawv ultrasonic sensor (HC-SR04) ntawm 128 × 128 LCD thiab xa cov ntaub ntawv mus rau PC ntu thiab pom nws siv Matplotlib
RAWS LI COV NTAUB NTAWV NTSEEG NTAWV NTAWV MUAJ NTAWV TSHUAJ NTAWV TSO CAI RAU RASPBERRY PI: 6 Kauj Ruam (nrog Duab)
RAWS LI COV NTAUB NTAWV NTAWV MUAJ NTAWV TSHUAJ NTXIV RAU RASPBERRY PI: Hauv qhov haujlwm no, peb yuav txuas peb ntawm Atlas Scientific's EZO sensors (pH, yaj cov pa thiab kub) mus rau Raspberry Pi 3B+. Hloov chaw ntawm txuas cov kab hluav taws xob mus rau Raspberry Pi, peb yuav siv Whitebox Labs Tentacle T3 daim ntaub thaiv. T
Arduino Ntawv Qhia zaub mov ntawm Nokia 5110 Lcd Siv Lub Tshuab Rotary Encoder: 6 Cov Kauj Ruam (nrog Duab)
Arduino Cov Ntawv Qhia ntawm Nokia 5110 Lcd Siv Lub Tshuab Rotary Encoder: Nyob zoo cov phooj ywg zoo siab txais tos rau lwm qhov kev qhia! Hauv daim vis dis aus no peb yuav kawm paub tsim peb cov ntawv qhia zaub mov li cas rau Nokia 5110 LCD zaub uas nrov, txhawm rau ua kom peb cov phiaj xwm siv cov phooj ywg zoo thiab muaj peev xwm ntau dua. Cia ’ s pib! Qhov no yog txoj haujlwm
Tig koj Arduino rau hauv Daim Npav Nyeem Ntawv Nyeem!: 9 Kauj Ruam (nrog Duab)
Tig koj Arduino rau hauv Daim Npav Nyeem Ntawv Nyeem!: Txhua tus tau siv daim npav nyeem ntawv sib nqus, kuv ntseeg. Kuv txhais tau tias, leej twg nqa nyiaj hnub no? Lawv tsis nyuaj kom tau txais koj txhais tes, ib qho, thiab thaum lub sijhawm taug kev mus rau kuv lub khw khoom siv hluav taws xob hauv zos uas kuv nyiam tshaj plaws, Kuv pom lub thoob uas muaj cov hais mav no. Yog li … tau kawg