Cov txheej txheem:

Tinee9: Arduino Tswj ESC: 4 Cov Kauj Ruam
Tinee9: Arduino Tswj ESC: 4 Cov Kauj Ruam

Video: Tinee9: Arduino Tswj ESC: 4 Cov Kauj Ruam

Video: Tinee9: Arduino Tswj ESC: 4 Cov Kauj Ruam
Video: Tinee9: Arduino Self-Balancer 2024, Lub Xya hli ntuj
Anonim
Tinee9: Arduino Tswj ESC
Tinee9: Arduino Tswj ESC

4 Xyoo dhau los Kuv tau ua kuv tus kheej lub drone rau tus nqi $ 300 rov qab thaum thawj lub lag luam drone yog kwv yees li $ 1500. Arducopter maub los tswj lub cev muaj zog ESC, Kuv siv DJI DIY thav duab, thiab yuav 720MHZ chaw taws teeb tswj. Nov yog qhov hloov kho KIT ntawm qhov kuv tau tsim 4 xyoo dhau los. KIT Tam sim no kuv muaj kev paub me ntsis ntxiv hauv kev siv hluav taws xob aerospace engineering, Kuv xav tsim kuv tus kheej PCBA maub los tswj lub drone.

Kuv yuav siv Arduino rau kuv lub platform. Txog rau hnub no, Kuv yuav ua pov thawj tias peb tuaj yeem tswj hwm ESC nrog thiab arduino nano.

Nyuaj: Nruab Nrab

Kev Paub: Yuav tsum paub kev sib txuas, Yuav tsum paub qhov yooj yim txuas hluav taws xob ntawm lub drone.

Nco ntsoov Tinee9.com muaj lwm Cov Ntawv Qhia Txog Arduino thiab tseem tham txog cov khoom siv hluav taws xob xws li Drones. Kuv tham txog yuav siv lawv li cas thiab cov cuab yeej ua haujlwm li cas hauv Drones siv los ntawm cov tuam txhab lossis tshawb fawb thiab txhim kho pab pawg.

Kauj ruam 1: Cov ntaub ntawv

Kuv tsis xav xaiv tus laug, laug hlau, PC, thiab USB Cable tab sis koj tuaj yeem tau txais cov khoom seem los ntawm qhov txuas KIT no

Khoom siv: ESC

Tsav

Roj teeb uas yuav khiav lub cav

Solder

Solder Hlau

Arduino Nano Cov

Pawg Mov Ci

Jumper Hlau

PC

USB Cable

Arduino IDE Cov

Kauj Ruam 2: Kev Sib Ntsib Yooj Yim

Los Ua Ke
Los Ua Ke
Los Ua Ke
Los Ua Ke

Kauj Ruam 1: Muab koj lub Cev Tsav Tsheb rau ESC tus tswj.

Kauj Ruam 2: Txuas koj Arduino Nano rau lub khob cij.

Kauj Ruam 3: Txuas koj Lub Roj Teeb - rau ESC Cov Hlau Dub.

Kauj Ruam 4: Txuas koj ESC Dub rau Arduino GND Pin.

Kauj Ruam 5: Txuas koj li ESC White wire rau Arduino D9 Pin.

Kauj Ruam 6: Txuas Arduino Nano rau PC nrog USB Cable.

Kauj ruam 3: Code

Kauj Ruam 7: Program Arduino Nano nrog Txoj Cai no hauv Arduino IDE.

Txoj cai tau ua dab tsi yog pib ESC thiab tom qab ntawd nws nce nrawm dua txhua 0.25 vib nas this kom txog rau lub hardcoded teeb taw tes ces tig mus. Tom qab ntawd rov ua dua. Yeej txoj cai no tso cai rau koj pom tias lub cav tau hais los ntawm ESC li cas. Tsis tas li cov cai yog lub hauv paus tsev thaiv rau kev hais kom ua 4 ESCs tib lub sijhawm thaum koj txhim kho cov cai ntxiv kom ya lub tis ruaj khov lossis quadcopter.

Txoj Cai:

#suav nrog; Servo tsav;

Pin Pin = 0;

int x = 0;

void teeb tsa () {

esc.attach (9); }

void voj () {

int throttle = analogRead (Pin);

throttle = daim ntawv qhia (lub raj, 0, 1023, 0, 179);

rau (x = 0; x <175; x ++) {

esc.write (x); ncua (250); }

es.write (0);

ncua (10000); }

Kauj ruam 4: Txuas thiab Khiav

Kauj Ruam 8: Txuas koj ESC Red wire rau Roj teeb +.

Kauj Ruam 9: Txaus siab rau koj Arduino Nano txib ESC nrog PWM cov lus txib.

Pom zoo: