Cov txheej txheem:

Wifi PPM (tsis xav tau App): 4 Kauj Ruam (nrog Duab)
Wifi PPM (tsis xav tau App): 4 Kauj Ruam (nrog Duab)

Video: Wifi PPM (tsis xav tau App): 4 Kauj Ruam (nrog Duab)

Video: Wifi PPM (tsis xav tau App): 4 Kauj Ruam (nrog Duab)
Video: yuav coj li cas kom luag nyiam 2024, Kaum ib hlis
Anonim
Wifi PPM (tsis xav tau App)
Wifi PPM (tsis xav tau App)
Wifi PPM (tsis xav tau App)
Wifi PPM (tsis xav tau App)

Kuv xav tswj kuv lub diy micro sab hauv tsev quadrocopter nrog kuv lub xov tooj ntse tab sis kuv nrhiav tsis tau cov tshuaj zoo rau qhov no. Kuv muaj ob peb ESP8266 wifi modules tso puag ncig yog li kuv txiav txim siab ua kuv tus kheej.

Qhov kev zov me nyuam pib siv wifi nkag mus nrog lub vev xaib HTML 5 los tswj lub teeb liab PPM. Lub teeb liab PPM yog tsim los ntawm kev cuam tshuam.

Ua tsaug rau HTML5 koj tuaj yeem tswj hwm koj lub cuab yeej RC nrog txhua lub xov tooj ntse tsis muaj app.

Koj tseem tuaj yeem txuas rau lub vev xaib nrog lub PC thiab siv lub joystick rau kev tswj hwm. Tam sim no qhov no tsuas ua haujlwm hauv Firefox.

Hauv qhov tsis txaus ntseeg no kuv yuav piav qhia yuav teeb tsa ESP8266 li cas thiab teeb tsa tus txais hauv Betaflight li cas.

Kauj Ruam 1: Daim Ntawv Teev Npe

Daim Ntawv Teev Npe
Daim Ntawv Teev Npe

Cia peb pib nrog cov npe ntu. Koj tsuas yog xav tau ob peb yam:

- ESP8266: Ib qho qauv twg yuav tsum ua haujlwm. Kuv siv ESP 12-F module:

- a 3, 3V USB rau Serial hloov rau upload cov kos thawj zaug. (Tom qab thawj upload koj tuaj yeem siv OTA hloov tshiab). Siv qee yam zoo li no:

- a 3, 3V tus tswj hluav taws xob: ESP8266 xav tau 3, 3V. Txhua qhov hluav taws xob siab dua 3, 6V yuav tua lub cuab yeej. Nws tseem tuaj yeem poob txog 200mA qhov siab tshaj tam sim no. Yog tias koj tsis muaj zog txaus 3, 3V muab khoom ntawm koj tus qauv RC koj xav tau tus tswj hwm hluav taws xob ntxiv. Kuv siv cov kauj ruam no nqes tswj nrog 3, 9K Ohm resistor:

- PC nrog Arduino IDE:

- ESP8266 txhawb nqa rau Arduino IDE. Ua raws cov lus qhia no:

- Websocket tsev qiv ntawv rau Arduino:

- Tej zaum 3, 3V/5V qib hloov pauv yog tias koj li PPM tus lej txiav txim tsis txhawb 3, 3V cov tswv yim. Rau feem ntau quadcopter davhlau tswj hwm koj tsis xav tau qhov no.

- Qhov WifiPPM kos: Rub cov ntawv hauv qab no lossis

- Lub xov tooj ntse lossis lub PC nrog lub joystick thiab Firefox

Kauj Ruam 2: Teeb Cov Khoom Siv Hluav Taws Xob thiab Tshaj Tawm Txoj Haujlwm

Teem Cov Khoom Siv Hluav Taws Xob thiab Tshaj Tawm Txoj Haujlwm
Teem Cov Khoom Siv Hluav Taws Xob thiab Tshaj Tawm Txoj Haujlwm

Thawj qhov uas yuav tsum tau ua yog teeb tsa lub zog sib txuas rau ESP8266. Koj tuaj yeem pom cov hlua nyob hauv daim duab. Ua cov kev sib txuas hauv qab no:

RST, EN thiab VCC rau 3,3V

GPIO15 thiab GND rau GND

Muab lub capacitor me me nruab nrab ntawm VCC thiab GND (li 100 nF)

TXD to RXD of your USB2Serial device

RXD to TXD ntawm koj lub USB2Serial ntaus ntawv

Muab GPIO0 rau GND thaum lub hwj chim nkag mus rau hom nyem.

Tom qab koj tau teeb tsa Arduino IDE, ESP8266 kev txhawb nqa thiab lub tsev qiv ntawv websocket qhib daim duab. Tuav GIO0 rau GND thaum txhawb nqa ESP8266 kom nkag mus rau hom nyem. Tam sim no koj tuaj yeem rub daim duab.

Tom qab koj tau rub tawm daim duab, tus tswj yuav rov pib dua. Koj yuav tsum pom WIFI Access Point hu ua WifiPPM. Yog tias qhov no ua tau zoo koj tuaj yeem siv lub zog nti thiab tshem tawm TXD, RXD thiab GPIO0 xov hlau. Yav tom ntej koj tuaj yeem hloov kho qhov program dhau OTA. Txhawm rau ua li ntawd txuas rau Access Point thiab mus rau "192.168.1.4/update" hauv koj lub vev xaib.

Kauj Ruam 3: Lub Vev Xaib

Lub Vev Xaib
Lub Vev Xaib
Lub Vev Xaib
Lub Vev Xaib

Tam sim no koj tuaj yeem txuas GPIO5 mus rau PPM cov tswv yim ntawm koj lub davhlau tswj lossis txhua yam koj siv los txiav txim siab PPM teeb liab.

Tom qab ua kom lub zog hloov pauv koj tuaj yeem txuas rau Access Point "WifiPPM". Tsis muaj tus password. Qhib qhov chaw nyob 192.168.4.1 hauv koj tus browser.

Koj yuav pom lub xaib ntawm thawj daim duab. Ntawm lub cuab yeej kov koj tuaj yeem tswj tuav nrog koj lub vijtsam kov.

Yog tias koj qhib lub xaib nrog lub PC koj yuav tsum siv Firefox. Thaum koj txuas tus joystick, qhov chaw yuav hloov mus rau qhov koj pom hauv daim duab thib ob. Koj tuaj yeem tswj cov pas nrig nrog koj tus joystick.

Hauv theem tom ntej kuv yuav piav qhia yuav teeb tsa Betaflight li cas, vim tias kuv siv nws. Yog tias koj siv lwm tus tswj hwm koj yuav tsum mus ntawm koj tus kheej txij tam sim no mus.

Kauj ruam 4: Teeb Up Betaflight

Kuv siv WifiPPM maub los rau kuv lub quadcopter nrog Betaflight. Kuv piav qhia tam sim no yuav teeb nws li cas.

- Txuas koj lub davhlau tswj hwm rau lub PC

- qhib Betaflight

- txuas rau lub davhlau tswj

- mus rau Receiver tab

- ntaus RTAE1234 rau hauv daim duab qhia chaw

- hloov "Stick Low Threshold" mus rau 1020, "Stick Center" txog 1500 thiab "Stick High Threshold" txog xyoo 1980

- txuag cov kev hloov pauv

- qhib lub wifiPPM lub vev xaib nrog koj lub xov tooj ntawm tes thiab sim seb qhov kev hloov pauv zoo li cas

Tias nws. Koj ua tiav. Tam sim no koj tuaj yeem ya nrog koj lub xov tooj ntawm tes yam tsis muaj app ntxiv.

Pom zoo: