Thread Tools
Nov 05, 2014, 06:12 AM
Registered User
SeByDocKy's Avatar
Thread OP
Mini-HowTo

BradWii revolution !! (for toy-quadcopters)


INTRODUCTION

Hi,

First thing, I would like to thanks all Bradwii contributors for this fantastic project: Brad (of course), Victzh, Goebish and the TheLastMutt

Bradwii's goal is to install Multiwii program on dirty cheap FC associated with a lot of toy's quadcoters. For example, a lot of WLtoys and JXD are bradwii compatible. With bradwii, you will be able to tune all flying caracteristics of your quadcopter as well as to be able to add new features since all the sources are available. For less than 7USD, you can transform a cheap FC board into a more Professional one.

Bradwii have been specifically developped to work with the Nuvoton Mini54ZAN, a Cortex-M0 based microcontroller with 16kb of user flash and 2kb of SRAM,, combined gyro/accelerometer InvenSense MPU-6050, and nRF24L01+ clone Beken BK2423. Another variant for the Hubsan X4 is using the Invensense MPU-3050 as gyro, the mCube MC3210 as accelerometer and A7105 as RF.

EDIT FC board with HL004 MCU are also working with bradwii. The HL004 seems to be a 100% clone of the Mini54zan

EDIT2 Hubsan 002 (Mini54ZDE) are now supported via a new update of the erasing tool

https://github.com/veloeb/SWD-Hackin...ive/master.zip


CAUTION

SINCE WE DON'T HAVE THE ORIGINAL FIRMWARE, IF YOU DECIDE TO INSTALL BRADWII, YOU CAN'T RETURN BACK WITH THE ORIGINAL FIRMWARE !!!

Bradwii tutorial introduction (2 min 25 sec)



REQUIREMENTS

Important links


1) Bradwii installation

a) Flashing tool for bradwii

ST-Link V2 mini
http://www.ebay.com/itm/ST-Link-V2-m...item20ef65de5c


http://www.banggood.com/ST-LINK-V2-Emulator-Downloader-Programmer-Support-STM8-STM32-p-973898.html

b) Drivers for ST-link V2 mini

http://www.st.com/web/en/catalog/tools/PF260219#

NOT WORKING WITH USB3 port

c) Hooks for an easy wiring

http://www.banggood.com/Test-Clamp-Wire-Hook-Test-Clip-for-Logic-Analyzer-p-936424.html


2) Real time moninoring, parameters settings

a) FTDI to serial converter

http://www.banggood.com/FT232RL-FTDI-USB-To-TTL-Serial-Converter-Adapter-Module-For-Arduino-p-917226.html

http://www.ebay.com/itm/6Pin-CP2102-...item3ce79bff65

Need to be compatible with 3.3V

b) Driver for the FTDI to serial converter

http://www.ftdichip.com/Drivers/VCP.htm

http://www.silabs.com/products/mcu/p...cpdrivers.aspx

c) Mini 1.25mm 4pin connectors (male and female)

http://www.ebay.fr/itm/Micro-Mini-1-...ts_Accessories


3) Keil software/API

a) Main IDE/compiler (mdk512.exe)

https://www.keil.com/demo/eval/arm.htm

b) API for Cortex-M-device

http://www2.keil.com/mdk5/legacy/


4) Bradwii links

a) Last sources of Bradwii

https://github.com/goebish/bradwii-X4

b) Erasing FW tool

https://github.com/hackocopter/JD385_Documentation

Take this updated KEIL-flashtool : https://github.com/veloeb/SWD-Hackin...ive/master.zip


iii) Erasing/flashing procedure

https://github.com/hackocopter/JD385...are%20Flashing


5) Multiwii

a) For multiwiiconf (take the last stable V2.3 version)

http://code.google.com/p/multiwii/downloads/list


INSTALLATION VIDEOS


Bradwii tutorial: part-I-software installation (14 min 22 sec)


Bradwii tutorial: part-II-Bradwii installation (13 min 37 sec)


Bradwii tutorial: part-III-Serial configuration and real time monitoring (11 min 27 sec)



More infos can be found at: https://www.rcgroups.com/forums/show....php?t=2174365

MINI54ZAN PINOUT & SPECIFIC FC PINOUT

SWD port : Color nomenclature

BLACK = GND, GREY = CLOCK/ICE_CLK, PINK = DATA/ICE_DATA

SERIAL port : Color nomenclature

BLACK = GND, RED = VCC (+3.3V), YELLOW = TX, BLUE = RX

Mini54ZAN pinout

VSS (28) = GND, ICE_DATA (20) = DATA, ICE_CLK(19) = CLOCK




Some FC board have some directly some debug port (at least the SWD one) for an easy connexion (via the 1.25mm JST connector "molex').
If the FC don't have these port but have the correct compatible harware, you need to solder probes directly on the MCI pins.



-V262/V333




-V636




-JXD 392




-SYMA X12




Compatible FC board list

Model name SWD port SERIAL port remark

1) JXD 385 yes yes
2) JXD 388 yes yes
3) JXD 392 yes yes
4) WLtoys V212 yes yes
5) WLtoys V222 yes yes
6) WLtoys V262 yes yes From rev 03
7) WLtoys V272 yes no
8) WLtoys V333 yes yes
š) SYMA X12 no no
10) UDI U839 no no
11) YI ZHAN X4 no no To be confirmed
12) Hubsan H107 yes no


FAQ

Issues with Kiel ÁVision:
Problem: "Error, Flash download failed - Could not load file '<filepath>/<file>.axf"
Solution: Project not compiled, go to 'Project -> Build Target (or press F7).

Problem: "No target connected"
Solution: Quad not powered on, you need to supply power to the board; either plug the battery, or the serial cable.
If powered, check your clk and data connections.

Problem: "Unknown target connected"
Solution: Wrong chip selected, go to 'Project -> Options For Target (Alt + F7)'. New window opens, switch to 'Debug' tab and on top right, press "ST-Link Debugger" Settings button.
New window opens, switch to 'Flash Download' tab, select the chip (Most likely Mini51), press Remove, then Add, and select M054 16kB Flash AP.

Issues with MultiWiiConf
Problem: Can connect to device, but cannot recieve data
Solutions: 1) Wrong bitrate, close the comm, go to the 'SETTINGS' tab and select your bitrate (most likely 38400).
2) RX and TX wires wrong, flip them.

Problem: Settings reset when power is reconnected
Solutions: Most likely you used the wrong flash tools to write the settings, use ones that work with your chip and start again.

Problem: Accelerometer calibration resets when power is reconnected.
Solution: Press WRITE after calibrating the ACC to permanently save the settings.
Last edited by SeByDocKy; Jul 28, 2015 at 03:01 AM.
Sign up now
to remove ads between posts
Nov 05, 2014, 06:29 AM
Registered User
SeByDocKy's Avatar
Thread OP
Reserved for extra videos

DeviationTX Windows toolchain installation tutorial

DeviationTX toolchain installation for Windows system (35 min 40 sec)


If you want to add feature in the current "V2x2" protocol, can be useful

JXD 392 bradwii installation

JXD 392 Bradwii installation tutorial (25 min 19 sec)



WLtoys V262 w/ bradwii

WLtoys V262 with Bradwii F/W (2 min 33 sec)


WLtoys V262 w/ bradwii @250Kbits

V2X2 protocol @250K via DeviationTX and Bradwii (1 min 21 sec)


With this configuration, range is extended
Last edited by SeByDocKy; Jun 16, 2015 at 10:06 PM.
Nov 05, 2014, 06:35 AM
Registered User
Thanks. I have all bought for this project, just never had any time to go though of the installation. Maybe your tutorials will give me the final push to do that.
Nov 05, 2014, 06:38 AM
Registered User
SeByDocKy's Avatar
Thread OP
Quote:
Originally Posted by mahagr
Thanks. I have all bought for this project, just never had any time to go though of the installation. Maybe your tutorials will give me the final push to do that.
The main objective.... of this tutorlal
Nov 05, 2014, 07:50 AM
Registered User
Nice! Thanks for the post!
Nov 05, 2014, 11:11 AM
I Void Warranties
goebish's Avatar
Cool, thanks for making a tutorial.

I'll keep this post as a placeholder on page 1 in case I've things to add later
Nov 05, 2014, 11:22 AM
Registered User
SeByDocKy's Avatar
Thread OP
Quote:
Originally Posted by goebish
Cool, thanks for making a tutorial.

I'll keep this post as a placeholder on page 1 in case I've things to add later
You are the welcome

I will add also many other video/photos, especially the pinout for some bradwii compatible board I have and some demo flights from other bradwii users

You are free to add in your repo and for devationTX my so wanted feature To decrease to 250kbits, the speed rate of the V2x2
Last edited by SeByDocKy; Nov 05, 2014 at 11:30 AM.
Nov 06, 2014, 01:16 AM
Registered User
SeByDocKy's Avatar
Thread OP
Added 4 other bradwii FC compatible pinout in #1
Nov 06, 2014, 05:14 AM
I'm man like flight as a bird
ONCLEFLY's Avatar
Yes, I am going to be able to put myself in it and understand. thank SEBY
Nov 06, 2014, 06:49 AM
Registered User
MassiveOverkill's Avatar
Thanks for this tutorial SeBy
Nov 06, 2014, 07:09 AM
I Void Warranties
goebish's Avatar
Due to the recent FTDI driver drama, I wouldn't recommend using a ftdi usb to serial dongle (banggood have fake chips on the dongles they sell by the way, I checked myself).
Better use a CP2102 instead, no worry, they are 3.3V TTL level, and they're cheaper ! :
http://www.ebay.com/itm/6Pin-CP2102-...item3ce79bff65
Nov 06, 2014, 07:35 AM
Registered User
MassiveOverkill's Avatar
Those drivers were actually pulled. I just flashed a GPS unit this weekend using my fake FTDI adapter from Hobby King and it survived without issue.
Nov 06, 2014, 07:37 AM
Registered User
SeByDocKy's Avatar
Thread OP
Quote:
Originally Posted by goebish
Due to the recent FTDI driver drama, I wouldn't recommend using a ftdi usb to serial dongle (banggood have fake chips on the dongles they sell by the way, I checked myself).
Better use a CP2102 instead, no worry, they are 3.3V TTL level, and they're cheaper ! :
http://www.ebay.com/itm/6Pin-CP2102-...item3ce79bff65
Thanks for the info . I will update #1 with your link
Nov 06, 2014, 07:40 AM
I Void Warranties
goebish's Avatar
Quote:
Originally Posted by MassiveOverkill
Those drivers were actually pulled. I just flashed a GPS unit this weekend using my fake FTDI adapter from Hobby King and it survived without issue.
You had no issue because an older version of the driver was already installed on your machine. It's still not clear what ftdi will do against fake chips in the next driver update, better safe than sorry and stop using this brand. I've been using CP2102 dongles for years, they are cheap and work very well, they're also win/linux/osx/android compatible...

Are you sure your dongle is using a fake chip ? I checked one that came with the HK Micro-X quad, it's detected as genuine.
I checked almost 10x FT232RL I have at home in various devices, only one has been detected as a fake, but that's enough for me, how can I know if I buy a real or a fake when I buy an end user product ?
Last edited by goebish; Nov 06, 2014 at 08:08 AM.
Nov 06, 2014, 07:57 AM
hopeless newbie
Quote:
Originally Posted by goebish
You had no issue because an older version of the driver was already installed on your machine. It's still not clear what ftdi will do against fake chips in the next driver update, better safe than sorry and stop using this brand. I've been using CP2102 dongles for years, they are cheap and work very well, they're also win/linux/osx/android compatible...
+1

Since FTDI made it clear they don't want you to use products with fake FTDI chips, and they know how to detect these, you can bet that at some point in the future the fake equipment will again stop working. It may not get bricked next time, and just display a big fat "you have a fake" box on the screen, but you still won't be able to use it, which will be mighty annoying when it happens.

Another alternative is usb/serial dongles based on Prolific PL2303 - though these have been counterfeited as well in the past. Not that familiar with CP2012 but seems like every usb/serial chip has been plagued by fakes..

You can't really do anything to know you aren't buying a product with fake chips (could be a supplier's supplier's problem..) but you can avoid patronizing companies that willfully destroy your property (FTDI).


Quick Reply
Message:

Thread Tools