Cov txheej txheem:

ESP32 Code Generator - Wifi, BLE, Bluetooth: 9 Kauj Ruam
ESP32 Code Generator - Wifi, BLE, Bluetooth: 9 Kauj Ruam

Video: ESP32 Code Generator - Wifi, BLE, Bluetooth: 9 Kauj Ruam

Video: ESP32 Code Generator - Wifi, BLE, Bluetooth: 9 Kauj Ruam
Video: BLE with ESP32 tutorial part 1: the Server 2024, Hlis ntuj nqeg
Anonim
ESP32 Code Generator - Wifi, BLE, Bluetooth
ESP32 Code Generator - Wifi, BLE, Bluetooth

Taw qhia

ESP32 yog tus nqi qis dual processor, nrog txhawb rau WiFi, Bluetooth Classic thiab BLE (Bluetooth Tsawg Zog). Txawm hais tias lub nti tau tawm rau ntau xyoo, kev txhawb nqa code rau Arduino tseem tsis tiav (raws li thaum lub Plaub Hlis 2018), tab sis cov lus qhia no thiab tus lej tsim hluav taws xob ua tiav hauv BLE uas ploj lawm thiab cov haujlwm sib piv sau.

Tswv yim: ESP32 tsis muaj 'standard Arduino' analogWrite muaj nuj nqi. Txawm li cas los xij tus lej tsim hluav taws xob no, tsim cov cai uas sim nws rau koj

Tswv yim: ESP code teeb tsa tsis suav nrog BLE kev txhawb nqa. Kev teeb tsa piav qhia ntawm no suav nrog kev txhawb nqa BLE

Nplooj ntawv web no yuav npog kev teeb tsa Arduino IDE los teeb tsa ESP32 rau BLE, Bluetooth lossis WiFi txuas. PfodDesigner tsim cov cai rau txhua qhov ntawm cov kev sib txuas no thiab tseem tsim cov cai los sim qhov ua tsis tau zoo analogWrite.

ESP32 yog tus nqi qis dual processor, nrog txhawb rau WiFi, Bluetooth Classic thiab BLE (Bluetooth Tsawg Zog). Txawm hais tias lub nti tau tawm rau ntau xyoo, kev txhawb nqa rau Arduino tseem tsis tiav (raws li thaum lub Plaub Hlis 2018), tab sis qhov kev qhia no thiab tus lej tsim hluav taws xob ua tiav hauv BLE uas ploj lawm thiab analogWrite ua haujlwm. Arduino IDE los teeb tsa ESP32 rau BLE, Bluetooth lossis WiFi txuas. PfodDesigner tsim cov cai rau txhua qhov ntawm cov kev sib txuas no thiab tseem tsim cov cai los sim qhov ua tsis tau zoo analogWrite.

Arduino ntxiv-ntxiv txhawb qee 31 ESP32 cov laug cam. Thaum siv pfodDesigner, koj yuav xav xaiv tus pin txuas uas phim cov uas muaj nyob ntawm koj lub rooj tshwj xeeb. Sparkfun ESP32 Yam (lossis Adafruit HUZZAH32 Feather) tau siv ntawm no ua piv txwv ESP32 pawg thawj coj, tab sis koj tuaj yeem siv tus lej rau ib qho ntawm 31 pawg ESP32 txhawb nqa.

Dawb pfodDesignerV3 Android app yog siv los tsim cov ntawv qhia zaub mov tswj (WYSIWYG) thiab tom qab ntawd tsim cov cai rau ESP32, rau BLE, WiFi lossis Bluetooth txuas. Thaum tau teeb tsa koj li ESP32 pawg thawj coj saib koj tuaj yeem siv pfodApp Android app (them nyiaj) los txuas rau koj ESP32 (ntawm BLE lossis WiFi lossis Bluetooth) thiab tso saib koj cov ntawv qhia zaub mov thiab tswj koj li ESP32. Yog tias koj tsis xav siv pfodApp, koj tseem tuaj yeem siv cov cim tsim los ua lub hauv paus rau koj tus kheej WiFi, BLE (Nordic UART) lossis Bluetooth sib txuas raws li nws muab kwj (luam/nyeem) interface rau txhua hom kev sib txuas no.

Kauj Ruam 1: Ntsis: Txhim Kho Kev Txhawb Arduino rau ESP32 Nrog Kev Txhawb BLE

Raws li thaum lub Plaub Hlis 2018, kev txhim kho Arduino ESP32 kev txhawb nqa yog kev koom tes ntau dua rau feem ntau lwm cov laug cam thiab cov tsev qiv ntawv cov cai nkag mus tsis tiav. Koj tsis tuaj yeem siv Arduino Board tus thawj coj los teeb tsa ESP32 kev txhawb nqa. Ua raws cov theem no txhawm rau teeb tsa Arduino rau ESP32 lub cajmeem. Qhov no yuav teeb tsa ESP32 thiab tseem txhawb nqa BLE.

1 Nrhiav txoj hauv kev ntawm koj li Arduino Sketchbook qhov chaw nyob Cov npe. Qhib Arduino IDE thiab saib hauv File-> Preferences thiab nyob rau sab saum toj ntawm lub vijtsam koj yuav pom Sketchbook qhov chaw.

2 Rub tawm ESP32_hardware.zip cov ntaub ntawv no thiab unzip nws mus rau Sketchbook qhov chaw. Nws tsim kho cov npe khoom kho vajtse nyob ntawd. Hauv qhov xwm txheej tsis zoo uas koj twb muaj cov npe khoom kho vajtse hauv koj qhov Sketchbook qhov chaw, sib koom nws cov ntsiab lus nrog qhov no.

3 Nruab Xtensa thiab ESP32 Cov Cuab Yeej. Nco tseg: Qhov rub tawm no thiab teeb tsa yuav siv qee lub sijhawm los ua haujlwm ~ 0.5Gig ntawm cov ntaub ntawv. Mus rau kho vajtse / espressif / esp32 / cov cuab yeej teev tom qab ntawd Rau Windows cov tshuab khiav cov ntawv get.exe. Rau Mac thiab Linux cov neeg siv, khiav cov ntawv get.py nab hab sej los rub tawm cov cuab yeej. Siv lub davhlau ya nyob twg, txav mus rau kho vajtse/espressif/esp32/cov ntawv tais ceev tseg. Tom qab ntawv ntaus: nab nab get.py Cov ntawv “get.py” nab hab sej yuav rub tawm Xtensa GNU cov cuab yeej thiab ESP32 software txhim kho cov khoom siv (SDK), thiab unzip lawv mus rau qhov chaw raug.

Koj yuav tsum pom ob peb daim ntawv tshiab hauv "cov cuab yeej" cov npe, suav nrog "sdk" thiab "xtensa-esp32-elf" thaum nws ua tiav.

Thaum qhov no ua tiav, kaw thiab rov qhib koj Arduino IDE thiab tam sim no koj yuav tsum muaj daim ntawv teev npe ntev ntawm ESP32 cov laug cam los xaiv los ntawm hauv Tool-> Boards menu. Xaiv "SparkFun ESP32 Yam" (lossis "Adafruit ESP32 Feather")

Tom qab ntawv koj tuaj yeem qhib Cov Ntaub Ntawv Piv Txwv kom pom tus lej ESP32 piv txwv cov ntaub ntawv

Cov txheej txheem saum toj no teeb tsa lub snapshot ntawm tus lej github rau ESP32 thiab BLE kev txhawb nqa uas tau koom ua ke rau hauv ib daim ntawv zip. PfodDesigner tsim cov cai thiab cov piv txwv hauv qab no siv cov ntawv no ntawm cov tsev qiv ntawv no. Yog tias koj xav tau qhov hloov tshiab kawg, nrog rau qhov muaj peev xwm sib txawv ntawm cov yam ntxwv thiab kab, tom qab ntawd rub lub zip ntawm qhov hloov tshiab kawg ntawm https://github.com/espressif/arduino-esp32 thiab unzip nws rau hardware/espressif thiab hloov npe nplaub tshev esp32 thiab tom qab ntawd rau BLE txhawb nqa rub tawm zip ntawm qhov hloov tshiab kawg ntawm https://github.com/espressif/arduino-esp32 thiab unzip nws mus rau esp32/cov tsev qiv ntawv thiab hloov nws ESP32_BLE_Arduino (yog tias tsim nyog).

Kauj Ruam 2: Txhim Kho PfodParser Libraries rau ESP32

a) Tom qab ntawd rub tawm pfodParser.zip lub tsev qiv ntawv V3.23+, pfodDwgControls.zip thiab, rau ESP32 WiFi, pfodESP32BufferedClient.zip, zip cov ntaub ntawv rau koj lub khoos phis tawj, txav lawv mus rau koj lub desktop lossis qee lwm daim nplaub tshev uas koj tuaj yeem nrhiav tau yooj yim.

b) Tom qab ntawd siv Arduino 1.8.2 IDE ntawv qhia zaub mov xaiv Sketch → Import Library → Ntxiv Library los nruab lawv. (Yog tias Arduino tsis tso cai rau koj teeb tsa nws vim tias lub tsev qiv ntawv twb muaj lawm ces nrhiav thiab rho tawm cov pfodParser qub, pfodCmdParser lossis pfodCHAP thiab lwm yam ntawv thiab tom qab ntawv import cov no)

c) Nres thiab rov pib dua Arduino IDE thiab hauv File-> Piv txwv tam sim no koj yuav tsum pom pfodParser, pfodDwgControls thiab pfodESP32BufferedClient cov tsev qiv ntawv thiab ntau tus piv txwv.

Kauj Ruam 3: Siv PfodDesignerV3 rau ESP32

Pub dawb pfodDesignerV3 (V3291+) app txhawb kev tsim cov cai rau ESP32 nti los txuas ntawm BLE, WiFi lossis Bluetooth Classic rau pfodApp (them nyiaj).

Muaj ntau qhov kev qhia uas twb muaj lawm yuav ua li cas los tsim kev tswj hwm rau koj lub xov tooj ntawm tes hauv Android kom tswj tau ntau yam ntawm cov laug cam siv pfodDesignerV3. Nrog pfodDesignerV3 koj tuaj yeem tsim kev tswj hwm uas tso tawm/tso tawm lossis ua haujlwm rau lawv, tswj cov txiaj ntsig ntawm PWM, tso saib lub xeev ntawm cov tswv yim lossis tus nqi sib piv, cav thiab cov phiaj xwm cov ntaub ntawv thiab cov ntawv qhia zaub mov thiab ntau ntxiv.

Tswv yim: ESP32 Arduino kev txhawb nqa suav nrog kev txhawb nqa rau qee 31 pawg ESP32 sib txawv. PfodDesignerV3 muab rau koj nkag mus rau txhua tus ESP32 I/O pins tab sis tsis yog txhua lub rooj sib txuas txuas txhua yam ntawm ESP32 pins rau board pins. Txheeb xyuas koj lub rooj tsav xwm cov ntaub ntawv uas cov pins tau tsim muaj thiab saib pins_arduino.h cov ntaub ntawv hauv qab koj pawg thawj coj saib xyuas kho vajtse / espressif / esp32 / variants directory.

pfodDesignerV3 tus lej npe suav nrog cov lus hais txog kev muaj thiab siv tshwj xeeb pins rau Sparkfun ESP32 Yam thiab Adafruit HUZZAH32 - ESP32 Feather Boards.

Cov piv txwv no siv Sparkfun ESP32 Thing board thiab tsim cov slider los tswj qhov ci ntawm lub onboard LED txuas nrog tus pin 5 los ntawm koj lub xov tooj ntawm tes. Yog tias koj tab tom siv Adafruit HUZZAH32 - ESP32 Feather board hloov chaw ces lub onboard Led txuas nrog tus pin 13. ESP32 Arduino kev txhawb nqa, teeb tsa saum toj no, tsis txhawb Arduino's analogWrite ncaj qha. Hloov chaw ESP32 muaj 16 PWM raws koj tuaj yeem tswj hwm thiab txuas rau ib qho ntawm cov txiaj ntsig. PfodDesignerV3 tsim txhua txoj cai tsim nyog los faib cov channel thiab txuas nws rau qhov koj xaiv tso tawm. Nruab qhov dawb pfodDesignerV3 (V3291+) los ntawm google ua si.

Kauj Ruam 4: ESP32 BLE Code Generator

ESP32 BLE Code Generator
ESP32 BLE Code Generator
ESP32 BLE Code Generator
ESP32 BLE Code Generator
ESP32 BLE Code Generator
ESP32 BLE Code Generator
ESP32 BLE Code Generator
ESP32 BLE Code Generator

Pib Ntawv qhia zaub mov tshiab

Nyem rau lub hom phiaj khawm kom hloov lub hom phiaj ntaus ntawv.

Thawj qhov piv txwv lub hom phiaj yuav yog ESP32 BLE yog li nyem rau Bluetooth Tsawg Zog khawm.

Xaiv ESP32 txuas nrog ntawm BLE thiab tom qab ntawd nyem lub pob nyem rov qab kom rov qab mus rau lub vijtsam tseem ceeb.

Kauj Ruam 5: Tsim Cov Ntawv Qhia - Cov Lus Qhia

Tsim Cov Ntawv Qhia - Cov Lus Cog Tseg
Tsim Cov Ntawv Qhia - Cov Lus Cog Tseg
Tsim Cov Ntawv Qhia - Cov Lus Cog Tseg
Tsim Cov Ntawv Qhia - Cov Lus Cog Tseg
Tsim Cov Ntawv Qhia - Cov Lus Cog Tseg
Tsim Cov Ntawv Qhia - Cov Lus Cog Tseg

Qhov piv txwv yooj yim no tsuas yog muaj qhov hais kom ua thiab tswj ib leeg. Nyem rau Kho kom raug khawm thiab tom qab ntawd Kho kom raug cov ntawv sau kom teeb cov ntawv tam sim.

Ntawm no cov lus tau teeb tsa rau "ESP32 Led". Nyem rau lub pob nyem kom txuag koj cov kev kho thiab rov qab mus rau lub vijtsam dhau los. Tom qab ntawd nyem rau Teeb Tom Qab xim los xaiv dua txhua xim rau cov ntawv qhia zaub mov ntawm kev tswj hwm.

Koj tuaj yeem xaiv cov xim sib txawv rau txhua qhov kev tswj hwm. Muaj ntau yam lwm hom ntawv muaj rau qhov hais kom sai. Ntawm no keeb kwm yav dhau tau teeb rau Xiav thiab qhov loj me font yog +5 thiab cov ntawv yog Bold. Kev saib ua ntej ntawm cov txheej txheem kev teeb tsa tau qhia nyob rau hauv qab ntawm Kev Kho Kom Haum Siab screen.

Kauj Ruam 6: Tsim Cov Ntawv Qhia - PWM Coj Tswj

Tsim Cov Ntawv Qhia - PWM Coj Tswj
Tsim Cov Ntawv Qhia - PWM Coj Tswj
Tsim Cov Ntawv Qhia - PWM Coj Tswj
Tsim Cov Ntawv Qhia - PWM Coj Tswj
Tsim Cov Ntawv Qhia - PWM Coj Tswj
Tsim Cov Ntawv Qhia - PWM Coj Tswj
Tsim Cov Ntawv Qhia - PWM Coj Tswj
Tsim Cov Ntawv Qhia - PWM Coj Tswj

Siv lub xov tooj rov qab khawm kom rov qab mus rau cov ntawv qhia zaub mov tseem ceeb thiab tom qab ntawd nyem Ntxiv Cov Ntawv Qhia Khoom kom ntxiv kev tswj lossis khoom khoom.

Xaiv cov khoom PWM tso tawm. Kev saib ua ntej ntawm kev tswj hwm tau pom nyob rau sab saum toj ntawm lub vijtsam.

Tswv yim: ESP32 tsis muaj 'standard Arduino' analogWrite muaj nuj nqi. Txawm li cas los xij tus lej tsim hluav taws xob no, tsim cov cai uas sim nws rau koj

Nyem rau Edit Editing Text button thiab hloov "PWM Setting" mus rau "Led" Nco tseg qhov chaw tom qab kom cais "Led" los ntawm % qhov taw qhia.

Nyem rau lub pob nyem kom txuag koj qhov kev hloov pauv thiab tom qab ntawv nyem rau "Tsis txuas nrog tus lej I/O".

Nyem lub pob ntawd los tso saib cov npe ntawm cov pins uas tuaj yeem siv ua cov khoom tawm.

Qhov no qhia tau hais tias siv tshwj xeeb pins rau Sparkfun ESP32 Yam thiab Adafruit HUZZAH32 Feather boards. Xaiv tus pin 5 kom tus slider tswj yuav tswj Sparkfun ESP32 Yam khoom ntawm-board coj ci ci. Yog tias koj siv Adafruit HUZZAH32 Feather board, xaiv tus pin 13 hloov. Rau lwm cov laug cam txheeb xyuas koj cov ntaub ntawv teev npe thiab pins_arduino.h cov ntaub ntawv hauv qab koj lub rooj tsav xwm kho vajtse kho vajtse / espressif / esp32 / variants directory

Tom qab ntawd, thaum koj ua tiav ua lwm qhov teeb tsa kev teeb tsa rau qhov swb no, siv lub xov tooj rov qab khawm kom rov qab mus rau cov ntawv qhia zaub mov tseem ceeb thiab nyem Ua Ntej Cov Ntawv Qhia kom pom cov ntawv qhia zaub mov zaum kawg yuav zoo li cas ntawm koj lub xov tooj thaum pom los ntawm pfodApp. Cov kev tswj hwm yog nyob yog li koj tuaj yeem txav lawv hauv qhov saib ua ntej.

Kauj Ruam 7: Tsim ESP32 Code

Tsim ESP32 Code
Tsim ESP32 Code
Tsim ESP32 Code
Tsim ESP32 Code

Rov qab mus rau cov ntawv qhia zaub mov tseem ceeb thiab nqes mus rau khawm Tsim Cov Cai.

Nyem rau Generate Code khawm thiab tom qab ntawd nyem qhov Sau Code rau Cov Ntaub Ntawv khawm kom tsim cov cai

Tawm ntawm pfodDesignerV3 thiab hloov cov cai hauv /pfodAppRawData/pfodDesignerV3.txt los ntawm koj lub xov tooj mus rau koj lub computer. Saib pfodAppForAndroidGettingStarted.pdf rau txoj hauv kev los ua qhov no. Cov ntaub ntawv hloov pauv wifi pro app los ntawm smarterDroid yog ib txoj hauv kev los hloov pauv.

Siv lub pob "Hloov Lub Hom Phiaj" ntawm Kev Tsim Tus Qauv screen, koj tuaj yeem hloov pauv ntawm ESP32 ntawm BLE, ESP32 ntawm Bluetooth thiab ESP32 ntawm WiFi

Kauj Ruam 8: Khiav Cov Piv Txwv

Khiav Cov Piv Txwv
Khiav Cov Piv Txwv

Siv lub pob "Hloov Lub Hom Phiaj" ntawm Kev Tsim Tus Qauv screen, koj tuaj yeem hloov pauv ntawm ESP32 ntawm BLE, ESP32 ntawm Bluetooth thiab ESP32 ntawm WiFi

Nov yog li cas peb qhov piv txwv piv txwv hauv qab no tau tsim los ntawm cov qauv tsim saum toj no.

Khiav tus piv txwv pfodESP32_BLE

Teeb Lub Hom Phiaj rau ESP32 ntawm BLE tsim cov cai hauv pfodESP32_LED_BLE.ino Cov duab kos no tseem muaj nyob hauv File-> Piv txwv-> pfodParser. Qhib qhov piv txwv, tom qab ntawd, tom qab teeb tsa Sparkfun ESP32 Yam (lossis lwm yam ESP32 board), koj yuav tsum teeb tsa kev sib txuas rau nws ntawm pfodApp (saib pfodAppForAndroidGettingStarted.pdf kom paub meej) thiab txuas thiab tuaj yeem kho qhov ci ntawm board coj.

TSWV YIM: ESP32 siv tib lub chaw nyob bluetooth rau ob leeg BLE thiab Bluetooth, yog li yog tias koj tau teeb tsa ESP32 Bluetooth txuas hauv pfodApp, koj yuav tsum rho tawm qhov pfodApp Bluetooth txuas ua ntej teeb tsa BLE kev sib txuas, txij li pfodApp lim cov kev sib txuas uas twb muaj lawm (los ntawm chaw nyob) los ntawm cov npe khoom ntawm cov khoom siv muaj. Koj kuj tseem yuav tsum qhib koj lub xov tooj ntawm tes thiab 'tsis nco qab' ESP32 Bluetooth txuas thiab tom qab ntawd tua lub xov tooj ntawm tes Bluetooth thiab rov pib dua koj lub xov tooj kom tshem tawm cov pawg Bluetooth

TSWV YIM: ESP32_BLE_Arduino lub tsev qiv ntawv los ntawm Neil Kolban tsis sib xws nrog BLEPeripheral lub tsev qiv ntawv los ntawm Sandeep Mistry uas yog siv los ntawm qee lwm lub hom phiaj BLE tsim los ntawm pfodDesigner. Yog li koj yuav tsum tshem tawm BLEPeripheral cov npe, (yog tias nws muaj), los ntawm koj li Arduino/cov tsev qiv ntawv teev npe txhawm rau txhawm rau sau ESP32 BLE cov duab kos.

Khiav tus piv txwv pfodESP32_Bluetooth

Teeb Lub Hom Phiaj rau ESP32 ntawm Bluetooth tsim cov cai hauv pfodESP32_LED_Bluetooth.ino Cov duab kos no tseem muaj nyob hauv File-> Piv txwv-> pfodParser. Qhib qhov piv txwv, tom qab ntawd teeb tsa Sparkfun ESP32 Yam (lossis lwm yam ESP32 board). Koj yuav tsum tau ua khub ESP32 nrog koj lub xov tooj, tsis tas yuav muaj tus lej pin. Tom qab teeb tsa kev sib txuas rau nws ntawm pfodApp (saib pfodAppForAndroidGettingStarted.pdf kom paub meej) thiab txuas thiab tuaj yeem hloov kho qhov ci ci ntawm pawg thawj coj.

Khiav tus piv txwv pfodESP32_WiFi

Teeb Lub Hom Phiaj rau ESP32 ntawm WiFi tsim cov cai hauv pfodESP32_LED_WiFi.ino Cov duab no tseem muaj nyob hauv File-> Piv txwv-> pfodParser. Qhib tus piv txwv ntawd thiab ntxig koj lub network lub npe thiab tus password thiab xaiv tus IP zoo li qub rau lub cuab yeej no. Tom qab ntawd, tom qab teeb tsa Sparkfun ESP32 Yam (lossis lwm yam ESP32 pawg thawj coj), koj yuav tsum teeb tsa kev sib txuas rau nws ntawm pfodApp (saib pfodAppForAndroidGettingStarted.pdf kom paub meej) thiab txuas thiab tuaj yeem kho qhov ci ntawm lub rooj tsavxwm.

Kauj Ruam 9: WiFi Ruaj Ntseg

Yog tias txuas rau ESP32 ntawm is taws nem (ntawm wifi), ces kev nyab xeeb tseem ceeb. Koj tsis xav kom leej twg tuaj yeem qhib koj lub qhov rooj qhov rooj, piv txwv li. Tus lej tsim hluav taws xob thiab lub tsev qiv ntawv pfodParser txhawb 128 ntsis kev nyab xeeb. Qhov kev nyab xeeb no tsis encrypt cov lus tab sis hloov chaw ntxiv qhov hash cryptographic rau txhua cov lus los tiv thaiv kev tsis raug tso cai txuas thiab tswj. Saib SipHash Kev Ruaj Ntseg Ruaj Ntseg thiab Lus Teb rau cov ntsiab lus ntawm qhov kev nyab xeeb no tau ua tiav li cas.

Ntxiv kev ruaj ntseg 128 ntsis

Kev ruaj ntseg tiv thaiv cov neeg siv tsis tau tso cai nkag mus rau koj lub cuab yeej hla Is Taws Nem yog qhov yooj yim xws li kho#txhais pfodSecurityCode "" ntxiv rau koj tus lej zais. (txog 32 Hex tus lej)

Piv txwv li teeb tsa txoj cai ruaj ntseg ntawm 173057F7A706AF9BBE65D51122A14CEE koj yuav siv#txhais pfodSecurityCode "173057F7A706AF9BBE65D51122A14CEE" Tau kawg koj yuav tsum siv koj tus kheej li tus lej zais. Teeb koj tus kheej cov cai hauv koj qhov kev sib txuas pfodApp tso cai rau koj, thiab tsis muaj leej twg ntxiv, txuas.

Ib tus lej random ntev yog qhov tsim nyog rau kev nyab xeeb zoo. pfodApp txhawb nqa txog 128bits raws li 32Hex tus lej.

Txhawm rau tsim koj tus kheej cov lej zais zais tuaj yeem rub tawm qhov zais zais zais Generator los ntawm noSecret Key Generator los ntawm no. Ntxiv rau tsim cov yuam sij tsis raug, qhov program no sau lawv tawm ua QR cov lej kom koj tuaj yeem yooj yim thiab raug teeb tsa lawv hauv koj qhov kev sib txuas pfodApp.

Koj tuaj yeem luam tawm QR code thiab txuas nws rau koj lub pfodDevice. Tom qab ntawd nyem rau Luam theej duab QR hauv qab hauv pfodApp WiFi txuas lub vijtsam los nyeem hauv tus lej zais.

Saib Ib qho yooj yim WiFi/Arduino pfodDevice ™ nrog 128 ntsis kev nyab xeeb rau cov piv txwv ntxaws ntawm kev siv lub tshuab hluav taws xob tseem ceeb thiab QR code.

Xaus

Cov ntawv qhia no tau qhia yuav ua li cas teeb tsa Arduino IDE rau program ESP32. Tom qab ntawd nws tau siv dawb pfodDesigner app los tsim cov ntawv qhia zaub mov kom tswj tau qhov ci ntawm lub onboard coj thiab tsim cov cai rau txuas rau ESP32 ntawm BLE, Bluetooth lossis WiFi. Yog tias koj txuas ntawm pfodApp apppfodApp app koj yuav pom cov ntawv qhia zaub mov uas koj tsim thiab tuaj yeem tswj hwm qhov kev coj ua ci ntawm ib tus swb. PfodDesigner tsim txhua txoj cai Arduino, suav nrog simulating Arduino's analogWrite. Tsis xav tau Arduino coding. PfodApp saib xyuas txhua sab hauv, tsis tas yuav siv Android coding.

Pom zoo: