Cov txheej txheem:

Siv Grove LCD Nrog RGB Backlight: 4 Kauj Ruam
Siv Grove LCD Nrog RGB Backlight: 4 Kauj Ruam

Video: Siv Grove LCD Nrog RGB Backlight: 4 Kauj Ruam

Video: Siv Grove LCD Nrog RGB Backlight: 4 Kauj Ruam
Video: Военные тактические часы-Топ-10 самых жестких военных ч... 2024, Kaum ib hlis
Anonim

Los ntawm chauhannaman98Follow Ntxiv los ntawm tus sau:

Txuas Raspberry Pi rau Koj Lub Laptop Screen thiab Keyboard
Txuas Raspberry Pi rau Koj Lub Laptop Screen thiab Keyboard
Txuas Raspberry Pi rau Koj Lub Laptop Screen thiab Keyboard
Txuas Raspberry Pi rau Koj Lub Laptop Screen thiab Keyboard
Tsis Siv Neeg Lub Teeb Laj Kab
Tsis Siv Neeg Lub Teeb Laj Kab
Tsis Siv Neeg Lub Teeb Laj Kab
Tsis Siv Neeg Lub Teeb Laj Kab
Tsev Automation Siv Google Assistant thiab Adafruit IO
Tsev Automation Siv Google Assistant thiab Adafruit IO
Tsev Automation Siv Google Assistant thiab Adafruit IO
Tsev Automation Siv Google Assistant thiab Adafruit IO

Txhawm rau tsim kom muaj kev sib txuas lus zoo ntawm tib neeg ntiaj teb thiab lub ntiaj teb tshuab, cov khoom siv ua lub luag haujlwm tseem ceeb. Thiab yog li lawv yog ib feem tseem ceeb ntawm cov kab ke. Cov chav tso saib - loj lossis me, ua haujlwm tib lub hauv paus ntsiab lus. Dhau li ntawm cov khoom nyuaj xws li cov duab qhia thiab cov duab 3D, ib tus yuav tsum paub ua haujlwm nrog cov lus yooj yim zoo li 16x1 thiab 16x2 units. Chav tsev 16x1 yuav muaj 16 tus cim thiab nyob hauv ib kab. 16x2 LCD yuav muaj 32 tus cim hauv tag nrho 16 hauv kab thib ib thiab lwm 16 hauv kab thib ob. Ntawm no ib tus yuav tsum nkag siab tias hauv txhua tus cim muaj 5x10 = 50 pixels yog li tso saib ib tus cim txhua 50 pixels yuav tsum ua haujlwm ua ke.

Khoom siv

Pom Studio - Grove RGB LCD

Kauj ruam 1: Intro

Intro
Intro

Dhau li ntawm cov khoom nyuaj xws li cov duab qhia thiab cov duab 3D, ib tus yuav tsum paub ua haujlwm nrog cov lus yooj yim zoo li 16x1 thiab 16x2 units. Chav tsev 16x1 yuav muaj 16 tus cim thiab nyob hauv ib kab. 16x2 LCD yuav muaj 32 tus cim hauv tag nrho 16 hauv kab thib ib thiab lwm 16 hauv kab thib ob. Ntawm no ib tus yuav tsum nkag siab tias hauv txhua tus cim muaj 5x10 = 50 pixels yog li tso saib ib tus cim txhua 50 pixels yuav tsum ua haujlwm ua ke.

Grove - LCD RGB Backlight yog xim puv xim 16x2 LCD. Kev sib piv siab thiab siv tau yooj yim ua rau nws zoo meej I2C LCD zaub rau Arduino thiab Raspberry Pi.

Kauj Ruam 2: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court

Tsis zoo li lwm 16x2 LCDs, Grove LCD ua haujlwm ntawm I2C kev sib txuas. Qhov no daws qhov teeb meem ntawm kev txuas lub vijtsam nrog Arduino lossis Raspberry Pi. Nrog rau VCC thiab GND kab, lub LCD no tsuas yog xav tau SDA (Cov Ntaub Ntawv Teev Npe) thiab SCL (Serial Clock). Nws txhais tau tias peb tsuas xav tau 4 xov hlau los ua qhov LCD no ua haujlwm ntau dua li 14 tus pin ntawm lwm lub LCDs.

Kauj Ruam 3: I2C Ua Haujlwm Li Cas?

I2C Ua Haujlwm Li Cas?
I2C Ua Haujlwm Li Cas?
I2C Ua Haujlwm Li Cas?
I2C Ua Haujlwm Li Cas?

Nov yog cov lus piav qhia ntxaws rau tib yam:

  1. SDA (SerialData) - Kab rau tus tswv thiab qhev xa thiab txais cov ntaub ntawv.
  2. SCL (Serial Clock) - Kab uas nqa lub moos teeb liab.

I2C yog cov txheej txheem sib txuas lus sib txuas, yog li cov ntaub ntawv tau hloov pauv me ntsis los ntawm ib tus xaim (kab SDA). Zoo li SPI, I2C yog synchronous, yog li cov khoom ntawm cov khoom sib txuas ua ke mus rau qhov piv txwv ntawm cov khoom los ntawm lub moos teeb liab qhia tawm ntawm tus tswv thiab tus qhev. Lub moos teeb liab ib txwm tswj los ntawm tus tswv.

Koj tuaj yeem kawm paub ntau ntxiv txog I2C cov txheej txheem kev sib txuas lus ntawm no. Tam sim no, yog tias koj xav tsim qhov haujlwm uas koj xav tau los siv cov haujlwm tshwj xeeb, koj tuaj yeem ua qhov no yooj yim los ntawm kev ua piv txwv los ntawm cov chaw cia khoom hauv cov ntawv txuas.

Pom zoo: