Cov txheej txheem:

Yuav daws Clone SimpleBGC Controller Txhim Kho Qhov Teeb Meem Li Cas: 4 Kauj Ruam
Yuav daws Clone SimpleBGC Controller Txhim Kho Qhov Teeb Meem Li Cas: 4 Kauj Ruam

Video: Yuav daws Clone SimpleBGC Controller Txhim Kho Qhov Teeb Meem Li Cas: 4 Kauj Ruam

Video: Yuav daws Clone SimpleBGC Controller Txhim Kho Qhov Teeb Meem Li Cas: 4 Kauj Ruam
Video: Top 5 Budget DAWs For Beginners 2024, Hlis ntuj nqeg
Anonim
Yuav daws Clone SimpleBGC Controller Txhim Kho Qhov Teeb Meem Li Cas
Yuav daws Clone SimpleBGC Controller Txhim Kho Qhov Teeb Meem Li Cas

Nyob zoo. Tsis ntev los no, Kuv tau ua haujlwm dhau SimpleBGC gimbal maub los rau kuv qhov haujlwm drone. Kuv ua tiav kev sib txuas thiab kho nws. Nws tau ua haujlwm zoo kawg nkaus. Tom qab ntawd, Kuv xav hloov kho nws cov firmware los ntawm v2.2 rau v2.4. Yog li, tom qab kuv hloov kho gimbal nws tsis ua haujlwm raws li nws yuav tsum tau ua. Raws li koj paub, yog tias koj muaj SimpleBGC maub los thiab yog tias tom qab hloov kho nws tsis ua haujlwm, tom qab ntawd nws tsis yog qhov qub. Yog li, kuv txiav txim siab txo qis lub firmware rau v2.2 dua.

Kuv tshawb ntau txog qhov ntawd. Yuav luag txhua qhov kev qhia tau siv Arduino ua tus programmer. Txawm li cas los xij, thaum kuv tau sim ntau txoj hauv kev no nrog ntau Arduinos, kuv tsis tuaj yeem ua tiav.

Yog li, hauv qhov kev qhia no kuv yuav qhia koj yuav daws qhov teeb meem no yam tsis muaj Arduino, tab sis tus AVR USBasp programmer, uas yooj yim dua li Arduino. Cia peb pom yam peb xav tau rau qhov kev qhia ntawd:

1. Lub khoos phis tawj nrog Windows operating system. (Raws li kuv tsis tau siv MAC, Kuv tsis muaj cov ntaub ntawv hais txog nws)

2. AVR USBasp programmer uas koj tuaj yeem nrhiav tau yooj yim. (Tsuas yog los ntawm Azerbaijan:)) (https://images.ua.prom.st/593769968_w640_h640_prog…)

3. Arduino IDE

4. AVRdudeR, Optiboot, XLoader (https://www.basecamelectronics.com/downloads/8bit/)

5. Rub tawm firmware (https://drive.google.com/open?id=1cM7lsf7LyAlzPrxK…)

Tom qab ua koj rab phom npaj, cia dhia mus rau kev qhia:)

Kauj ruam 1: Txuas Programmer rau Tus Tswj

Txuas Programmer rau Tus Tswj
Txuas Programmer rau Tus Tswj
Txuas Programmer rau Tus Tswj
Txuas Programmer rau Tus Tswj

Hauv thawj kauj ruam, peb yuav tsum txuas nrog cov programmer thiab tus tswj. Saum toj no koj tuaj yeem pom tus pin ntawm tus tswj thiab tus programmer. Koj yuav tsum muaj kev sib txuas ntawm:

RES (tus tswj) -------- RST (programmer)

SCK (maub los) -------- SCK (programmer)

MISO (maub los) -------- MISO (programmer)

MOSI (maub los) -------- MOSI (programmer)

SCK (maub los) -------- SCK (programmer)

+5V (maub los) -------- VCC (programmer)

GND (tus tswj) -------- GND (programmer)

Ntawm no, kuv xav ntxiv daim ntawv ceeb toom. Thaum kuv ua cov kev sib txuas no, Kuv ntsib teeb meem hauv +5V thiab GND kev sib txuas. Kuv tus maub los thiab tus programmer kaw. Yog tias koj ntsib teeb meem no ib yam nkaus, thov txuas VCC thiab GND ntawm tus programmer mus rau lwm +5V thiab GND pins ntawm tus tswj.

Tom qab tus tswj hwm thiab tus programmer txuas nrog, tom qab ntawd txuas tus programmer mus rau PC.

Kauj ruam 2: Hlawv Bootloader Nrog Arduino IDE

Qhib Arduino IDE thiab tom qab ntawd xaiv USBasp ua tus programmer. Koj tuaj yeem ua qhov no los ntawm kev mus 'Cov cuab yeej' tab thiab tuaj rau ntu 'Programmer' thiab xaiv 'USBasp'. Tom qab ntawd, koj tuaj yeem hlawv lub bootloader los ntawm txhaj rau 'Burn Bootloader' ntu hauv qab 'Tools' tab. Koj yuav tsum tau txais cov lus hlawv zoo thaum kawg !!!

Kauj Ruam 3: Nyem rau Arduino-tshaj Bootloader

Hauv qib no, unzip AvrdudeR thiab optiboot zip cov ntaub ntawv thiab luam 'optiboot_atmega328.hex' los ntawm optiboot nplaub tshev thiab muab tshuaj txhuam rau hauv AvrdudeR nplaub tshev qhov twg 'avrdude.exe' muaj. Tom qab ntawd, qhib PowerShell lossis cmd hauv daim nplaub tshev no (koj tuaj yeem saib yuav ua li cas los ntawm youtube video kuv tau sau tseg) thiab sau cov lus txib no.

avrdude avrdude.conf -c usbasp -p atmega328p -e -u -U xauv: w: 0x3f: m -U efuse: w: 0x05: m -U hfuse: w: 0xDC: m -U lfuse: w: 0xEE: m

avrdude avrdude.conf -c usbasp -p atmega328p -U nyem: w: optiboot_atmega328.hex -U xauv: w: 0x0C: m

Tom qab koj ua tiav cov lus txib no, dhia mus rau theem kawg:)

Kauj ruam 4: Upload Firmware

Hauv theem kawg, qhib XLoader thiab nyem XLoader.exe thiab suav nrog txoj hauv kev 'SimpleBGC_2_2_b2_null.hex' nrog tus nqi baud ntawm 115200. Ua tib zoo, xaiv qhov chaw nres nkoj kom raug:)

Thiab koj tau ua tiav:) Yog tias koj muaj teeb meem, thov sau ntawm no. Kuv yuav sim teb. Ua tsaug ntau ntau:)

Pom zoo: