Cov txheej txheem:

ESPcopter thiab Visuino - Hloov Compass Heading to 3D Angle: 6 Kauj Ruam
ESPcopter thiab Visuino - Hloov Compass Heading to 3D Angle: 6 Kauj Ruam

Video: ESPcopter thiab Visuino - Hloov Compass Heading to 3D Angle: 6 Kauj Ruam

Video: ESPcopter thiab Visuino - Hloov Compass Heading to 3D Angle: 6 Kauj Ruam
Video: Espcopter 2024, Kaum ib hlis
Anonim

Los ntawm BoianMVisuinoFollow Ntxiv los ntawm tus sau:

Sib sau Elegoo Arduino Robot Version 2.0
Sib sau Elegoo Arduino Robot Version 2.0
Sib sau Elegoo Arduino Robot Version 2.0
Sib sau Elegoo Arduino Robot Version 2.0
Program Arduino UNO Nrog Visuino Kos rau ntawm ILI9341 TFT Touchscreen Display Shield With Pen
Program Arduino UNO Nrog Visuino Kos rau ntawm ILI9341 TFT Touchscreen Display Shield With Pen
Program Arduino UNO Nrog Visuino Kos rau ntawm ILI9341 TFT Touchscreen Display Shield With Pen
Program Arduino UNO Nrog Visuino Kos rau ntawm ILI9341 TFT Touchscreen Display Shield With Pen
Sib sau ua ke Kuman Wi-Fi Neeg Hlau Nrog Lub Koob Yees Duab thiab Tus Tswj Xyuas
Sib sau ua ke Kuman Wi-Fi Neeg Hlau Nrog Lub Koob Yees Duab thiab Tus Tswj Xyuas
Sib sau ua ke Kuman Wi-Fi Neeg Hlau Nrog Lub Koob Yees Duab thiab Tus Tswj Xyuas
Sib sau ua ke Kuman Wi-Fi Neeg Hlau Nrog Lub Koob Yees Duab thiab Tus Tswj Xyuas

ESPcopter tam sim no tau txais kev txhawb nqa los ntawm qhov hloov tshiab ntawm Visuino, thiab qhov no ua rau nws tej zaum qhov yooj yim tshaj plaws rau kev ua haujlwm drone nyob hauv!:-)

Nrog nws Visuino kev txhawb nqa koj tuaj yeem tswj lub cav, LED, ua haujlwm nrog Accelerometer, Gyroscope, thiab Compass, sib tham nrog lub drone hla WiFi, sim nrog cov ntaub ntawv sib txawv kom ua tiav kev ruaj ntseg hauv davhlau, ua rau nws sib txuas lus nrog lwm lub drones lossis khoos phis tawj thiab ntau dua …

Txuas koj tus kheej lub ntsuas, thiab kho lub drone txhua txoj hauv kev uas koj xav tau!

ESPcopter tam sim no muaj neeg coob coob, nrog cov nqi zog sib txawv muaj nyob ntawm qhov nthuav cov laug cam thiab ntau npaum li cas xav tau.

Thawj Txoj Haujlwm:

Tus Compass xa X, Y, thiab Z lub zog. Feem ntau txawm li cas los xij peb yuav tsum hloov cov rog mus rau X, Y, Z 3D lub kaum ntse ntse los txiav txim siab 3D Kev Taw Qhia ntawm lub ntsuas.

Khoom siv

ESPcopter tam sim no tau txais kev txhawb nqa los ntawm qhov hloov tshiab ntawm Visuino, thiab qhov no ua rau nws tej zaum qhov yooj yim tshaj plaws rau kev ua haujlwm drone nyob hauv!:-) Nrog nws Visuino kev txhawb nqa koj tuaj yeem tswj lub cav, LED, ua haujlwm nrog Accelerometer, Gyroscope, thiab Compass, sib tham nrog lub drone dhau WiFi, sim nrog cov ntaub ntawv sib txawv kom ua tiav kev ruaj ntseg hauv davhlau, ua rau nws sib tham nrog lwm lub drones lossis computers thiab ntau dua…

Txuas koj tus kheej lub ntsuas, thiab kho lub drone txhua txoj hauv kev uas koj xav tau!

ESPcopter tam sim no muaj neeg coob coob, nrog cov nqi zog sib txawv muaj nyob ntawm qhov nthuav cov laug cam thiab ntau npaum li cas xav tau.

Thawj Txoj Haujlwm:

Tus Compass xa X, Y, thiab Z nrawm zog. Feem ntau txawm li cas los xij peb yuav tsum hloov cov rog mus rau X, Y, Z 3D lub kaum ntse ntse los txiav txim siab 3D Kev Taw Qhia ntawm lub ntsuas.

Kauj Ruam 1: Pib Visuino, thiab Xaiv ESPcopter Board Type

Pib Visuino, thiab Xaiv ESPcopter Board Type
Pib Visuino, thiab Xaiv ESPcopter Board Type

Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:

Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm!

Visuino: https://www.visuino.com kuj tseem yuav tsum tau teeb tsa.

Pib Visuino raws li qhia hauv daim duab thawj

Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv hauv Visuino

Thaum cov lus sib tham tshwm, xaiv ESPcopter raws li qhia

Kauj Ruam 2: Hauv Visuino: Ntxiv Kev Ua Kom Ncaj Ncees

Hauv Visuino: Ntxiv Kev Nkag Mus Rau Lub
Hauv Visuino: Ntxiv Kev Nkag Mus Rau Lub

Ua ntej peb yuav tsum tau ntxiv cov khoom siv los hloov X, Y, Z Compass Heading rau hauv 3D X, Y, Z Angle:

  • Ntaus "lub kaum sab xis" hauv lub thawv Lim ntawm Cov Ntawv Cuab Yeej Cuam Tshuam tom qab ntawd xaiv qhov "Kev Nkag Mus Rau Lub Cev" ntu, thiab tso nws rau hauv thaj chaw tsim.
  • Nyem rau hauv "Tawm" lub thawv ntawm "Compass" lub thawv uas muaj X, Y, X Kev nrawm nrawm ntawm ESPCopter tivthaiv kom pib txuas txhua tus Pins tawm ib zaug
  • Tsiv tus nas hla "X" tus lej nkag ntawm "Hauv" lub thawv ntawm AccelerationToAngle1 tivthaiv. Lub Visuino yuav cia li kis cov xov hlau kom lawv yuav txuas tau raug mus rau cov koob ntxiv

Kauj Ruam 3: Hauv Visuino: Ntxiv Pob Txheej Txheem thiab Teeb Tus Qauv Npe

Hauv Visuino: Ntxiv Pob Txheej Txheem thiab Teeb Tus Qauv Npe
Hauv Visuino: Ntxiv Pob Txheej Txheem thiab Teeb Tus Qauv Npe
Hauv Visuino: Ntxiv Pob Txheej Txheem thiab Teeb Tus Qauv Npe
Hauv Visuino: Ntxiv Pob Txheej Txheem thiab Teeb Tus Qauv Npe

Txhawm rau xa tag nrho cov ntaub ntawv cov ntaub ntawv hla cov chaw nres nkoj los ntawm Arduino peb tuaj yeem siv Packet tivthaiv los ntim cov channel ua ke, thiab tso saib lawv hauv Scope thiab Gauges hauv Visuino:

  • Ntaus "pob ntawv" hauv Lub Lim Lim ntawm Lub Cuab Yeej Cuab Yeej Cuab Yeej ces xaiv "Cov Khoom Siv Pob", thiab tso rau hauv thaj chaw tsim
  • Hauv Cov Khoom nthuav dav "Head Marker" cov khoom
  • Hauv Properties nyem rau ntawm "…" khawm
  • Hauv Bytes editor ntaus qee tus lej, piv txwv
  • Nyem rau ntawm lub pob OK kom paub meej thiab kaw tus editor

Kauj Ruam 4: Hauv Visuino: Ntxiv 3 Binary Analog Elements rau Pob Ntawv Tiv Thaiv thiab Txuas Rau Lawv

Hauv Visuino: Ntxiv 3 Binary Analog Elements rau Pob Ntawv Cheeb Tsam thiab Txuas Lawv
Hauv Visuino: Ntxiv 3 Binary Analog Elements rau Pob Ntawv Cheeb Tsam thiab Txuas Lawv

Nyem rau ntawm "Cov cuab yeej" khawm ntawm Packet1 tivthaiv (Daim duab 1)

  • Hauv "Elements" tus kws kho mob xaiv lub "Binary Analog" lub ntsiab lus, thiab tom qab ntawd nyem rau "+" khawm 3 zaug (Duab 1) ntxiv 3 lub ntsiab lus sib piv (Daim duab 2)
  • Nyem rau hauv "Tawm" lub thawv ntawm "Accelerometer" Lub thawv uas muaj tus pin ntawm AccelerationToAngle1 tivthaiv kom pib txuas txhua tus Pin tawm ib zaug (Duab 4)
  • Tsiv tus nas hla "Hauv" tus pin ntawm "Elements. Analog (Binary) 1" keeb kwm ntawm Packet1 tivthaiv. Visuinowill cia li kis cov xov hlau kom lawv yuav txuas kom raug mus rau cov koob ntxiv (Daim duab 4)
  • Txuas "Out" tus pin tso tawm ntawm Packet1 tivthaiv rau "Hauv" tus pin nkag ntawm "Serial [0]" channel ntawm "Arduino" tivthaiv

Kauj Ruam 5: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code
  • Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia hauv daim duab los tsim Arduino code, thiab qhib Arduino IDE
  • Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau suav thiab xa cov cai

Kauj Ruam 6: Thiab Ua Si …

ESPcopter tam sim no muaj neeg coob coob, nrog cov nqi zog sib txawv muaj nyob ntawm qhov nthuav cov laug cam thiab ntau npaum li cas xav tau.

Pom zoo: