Cov txheej txheem:

Android Tswj LCD Screen hauv Flowcode7: 8 Cov Kauj Ruam (nrog Duab)
Android Tswj LCD Screen hauv Flowcode7: 8 Cov Kauj Ruam (nrog Duab)

Video: Android Tswj LCD Screen hauv Flowcode7: 8 Cov Kauj Ruam (nrog Duab)

Video: Android Tswj LCD Screen hauv Flowcode7: 8 Cov Kauj Ruam (nrog Duab)
Video: ? Что такое многополосный 6 атомный хронометраж ? То 2024, Kaum ib hlis
Anonim
Android Tswj LCD Screen hauv Flowcode7
Android Tswj LCD Screen hauv Flowcode7

Cov lus qhia no tso cai rau koj los tswj lub vijtsam LCD virtual uas tau sim siv FlowCode7 los ntawm koj lub cuab yeej Android. Koj tuaj yeem pom tseeb pov rau lwm lub platform tab sis lawv yuav tsum tau qhib Bluetooth. Peb tseem yuav siv Arduino ua qhov sib txuas rau PIC 16F877A (simulation hauv Flowcode7) thiab Bluetooth Module (HC-05) kom tau txais cov cim qhia los ntawm Bluetooth ntaus ntawv uas yog Android mobile hauv qhov no. Koj tuaj yeem sim sim xa cov ntaub ntawv siv UDP dhau WiFi los ntawm kev teeb tsa koj lub router. Muaj twb tau qhia ntxaws qhia ntawm Matrix cov rooj sib tham ntawm no. Txawm li cas los xij, vim tsis muaj tus kheej ntiag tug router kuv yuav tsum ua haujlwm ib puag ncig me ntsis kom ua tiav kuv lub hom phiaj. Kuv kuj tau sim upload cov ntaub ntawv ntawm kuv tus neeg rau zaub mov thiab tom qab ntawv nug nws siv MySQL thiab PHP tab sis kuv ua tsis tiav los khaws nws. Nws yog qhov zoo tshaj kom muaj lub router ntiag tug yog tias koj xav xa cov ntaub ntawv hla UDP ntawm WiFi. Cia peb saib seb yuav ua li cas!

Kauj Ruam 1: Yam Yuav Tsum Tau

Nov yog cov npe ntawm txhua tus 'cuab yeej' koj xav tau: Hardware

1. Arduino UNO (Kuv siv MEGA 2560)

2. Bluetooth Module (HC-05)

3. Cov qhob cij

4. Jumper cables (Txiv neej rau Poj niam nyiam dua)

5. USB cable rau Arduino

Software1. Flowcode7: Koj tuaj yeem rub tawm qhov kev sim los ntawm cov ntawv sib piv los ntawm no. Ua tus as khauj, koj yuav tsum tau txheeb xyuas qhov software ntawm txhua qhov pib nrog koj tus lej account thiab tus password. Koj paub yuav ua dab tsi thaum cov 30 hnub dhau mus…;) 2. Arduino IDE: Nov yog.

3. Bluetooth app: Muaj ntau lub apps xa cov ntaub ntawv mus rau bluetooth li ntawm Play Store. Kuv siv "unWired Lite". Koj tuaj yeem siv ib qho uas koj xaiv.

Kauj Ruam 2: Nkag Siab Zaj Lus Qhia

Nkag Siab Lub Cev
Nkag Siab Lub Cev

Qhov kev piv txwv no piav qhia txhua yam.

Kauj Ruam 3: Txuas Arduino Nrog HC 05

Txuas lub Arduino Nrog HC 05
Txuas lub Arduino Nrog HC 05

Nws yog ib qho yooj yim teeb tsaArduino HC 055V VccGnd GndTx RxRx Tx

Txheeb xyuas qib 1 ntawm cov lus qhia no kom nkag siab ntxiv

Thaum koj ua tiav koj yuav pom cov cuab yeej hauv cov npe ntawm koj lub davhlau ya nyob twg Bluetooth. Pair nrog nws los ntawm kev xaiv HC 05. Tus password feem ntau yog 1234.

Kauj ruam 4: Upload Sketch

Muab cov duab kos no tso rau Arduino IDE. Nws yog ib qho tshwm sim ntau rau kev sau cov ntaub ntawv mus rau COM chaw nres nkoj siv Bluetooth.#Suav nrog // ntshuam Serial libraryint BluetoothData; // cov ntaub ntawv muab los ntawm bluetooth ntaus ntawv

tsis muaj teeb tsa teeb tsa () {// muab koj cov cai teeb tsa ntawm no, kom khiav ib zaug:

Serial.begin (9600); tus pinMode (coj mus, OUTPUT); }

void loop () {// muab koj tus lej tseem ceeb ntawm no, kom rov ua dua: yog (Serial.available ()) {BluetoothData = Serial.read (); Serial.write (BluetoothData); } ncua (100); }

Kauj Ruam 5: Tsis txhob hnov qab Nco Ntsoov COM Port

Tsis txhob hnov qab Nco ntsoov COM Port!
Tsis txhob hnov qab Nco ntsoov COM Port!

Kauj Ruam 6: Mus rau Flowcode7

Mus rau Flowcode7
Mus rau Flowcode7
Mus rau Flowcode7
Mus rau Flowcode7
Mus rau Flowcode7
Mus rau Flowcode7

Koj yuav tsum tsim daim duab Flow no. Luag qhov chaw nres nkoj RS232 thiab LCD rau ntawm lub dashboard. Txuas Macros mus rau cov khoom siv ib puag ncig. Select lub COM chaw nres nkoj uas Arduino txuas nrog hauv Cov Khoom ntawm RS232

Kauj Ruam 7: Khiav Flowcode File thiab xa cov ntaub ntawv los ntawm Bluetooth ntaus ntawv

Khiav Flowcode File thiab xa cov ntaub ntawv los ntawm Bluetooth ntaus ntawv
Khiav Flowcode File thiab xa cov ntaub ntawv los ntawm Bluetooth ntaus ntawv
Khiav Flowcode File thiab xa cov ntaub ntawv los ntawm Bluetooth ntaus ntawv
Khiav Flowcode File thiab xa cov ntaub ntawv los ntawm Bluetooth ntaus ntawv

Ntaus cov ntawv ntawm koj lub bluetooth app. Nco ntsoov tias lub module txuas nrog koj lub cuab yeej. HC 05 feem ntau ntsais nws cov LED ob zaug nrog qeeb me ntsis ntawm thaum ua ke ua tiav. Nco ntsoov tias txoj haujlwm flowcode ua haujlwm ua ntej koj xa cov ntaub ntawv rau qhov ua tau zoo tshaj plaws. Flowcode7 tau khiav qeeb heev ntawm kuv lub PC thiab cov txiaj ntsig tau los nrog qhov qeeb qeeb. lwm yam.

Kauj Ruam 8: Daim Duab Tag Nrho

Daim Duab Tag Nrho
Daim Duab Tag Nrho
Daim Duab Tag Nrho
Daim Duab Tag Nrho

Vam tias koj nyiam cov lus qhia! Vim li cas kuv thiaj tshaj tawm qhov no?: Kuv tau nthuav tawm qhov haujlwm no rau kuv tus xibfwb raws li qhov xa tawm qhov haujlwm. Nws tsis txawm thab los txheeb xyuas cov cai ntawm kuv lub laptop. Nws kos npe rau daim ntawv luam tawm thiab tom qab ntawd muab nws pov rau hauv pawg uas muaj cov ntaub ntawv zoo li no. Kuv muaj 2 txoj kev xaiv:

1. Txais tias kuv ua tsis tau dab tsi txog nws2. Qhia tawm nrog cov neeg raug.

Pom zoo: