Thread Tools
Apr 26, 2014, 09:45 AM
Registered User
Thread OP
Discussion

Cheap DIY control board: Naze32


DIY Naze32 - 32bit State of Art Flight Control Board for 14$ (3 min 9 sec)






Here is what I'm working on:

Ultra cheap DIY Naze32 ... TimeCop stm32 baseflight beast

All what you need is:

STM32 board : 7.4$ : http://www.ebay.com/itm/111297094334
10DOF : 16$ : http://www.ebay.com/itm/NEW-10DOF-IM...-/271037787023

EDIT: 13.7$ 10DOF -> http://www.ebay.com/itm/1PC-10DOF-IM...item4610ee9ab5


Or DIY 10DOF : (6.7$)
2.4$ Baro -> http://www.ebay.com/itm/1PC-BMP180-D...-/251384711149
2.8$ Gyro+Acc -> http://www.ebay.com/itm/MPU-6050-Mod...-/360787042912
1.5$ Mag -> http://www.ebay.com/itm/1X-HMC5883L-...-/181342530884

So ... Naze32 Rev4 fully equipped can be done for just: 6.7$ + 7.4$ = 14$

Only needed equipment is a solder (but also no solder in case of ready made 10DOF) ... and a USB to Serial adapter (better a 3.3v one) ... for flash the board using STM32 tools

USB serial adapter -> http://www.ebay.com/itm/281297404719 (1.99$)

Here is a preview photos ...
Last edited by e_lm_70; Sep 30, 2014 at 08:33 AM.
Sign up now
to remove ads between posts
Apr 26, 2014, 09:46 AM
Registered User
Thread OP


Pin to be connected:

PB10 - SCL
PB11 - SDA

PA9 - TX1 - (Bluetooth-Telemetry)
PA10 - RX1 - (Bluetooth-Telemetry)

PA0 -> CH1 - PPM

PA8 - PWM1 (29)
PA11 - PWM2 (32)
PB6 - PWM3 (42)
PB7 - PWM4 (43)
PB8 - PWM5
PB9 - PWM6

PA2 -> TX2 (3.3v GPS or PWM Input #3)
PA3 -> RX2 (3.3v GPS or PWM Input #4)

------ Untested PIN ---------
PA12 -> Buzzer (tested here)
PA4 -> VBAT (tested here)

Both pins can't be used as it is for both the usage, since for buzzer is needed a transistor for drive the buzzer, and for VBAT it is needed a voltage divider (two resistors) plus a stabilizer (capacitor)

PB4 -> LED0
PB3 -> LED1

Both need a led + a resistor for avoid to overload the ping ... 1k resistor should do the job (even 1 shared between the two led for save few cents)

----------------------------

Since I was asked to support also the sub-optimal RC with independent PWM .. so the traditional 4ch to 8ch TX

Here are the pin to be connected for each PWM input channel (please refer to TimeCop Naze32 manual for know the channel order, I have no idea if he use TAER1234 or AETR1234 ... or else )

PA0 -> Channel 1
PA1 -> Channel 2
PA2 -> Channel 3
PA3 -> Channel 4
PA6 -> Channel 5
PA7 -> Channel 6
PB0 -> Channel 7
PB1 -> Channel 8
----------------------------

CLI Wiki Page (mandatory for advance setting)
https://github.com/multiwii/baseflig.../CLI-Variables

Suggested GUI -> MultiWii 2.3 official Java GUI ... http://code.google.com/p/multiwii/do...3.zip&can=2&q=

Quick Manual -> http://www.abusemark.com/downloads/naze32_rev1.pdf

STM32 flashing software -> http://www.st.com/web/en/catalog/tools/PF257525
(Note: Jumper on BOOT0 need to be moved while on power off ... next power up with BOOT0 in the upper position, allow to flash the firmware with the tool above ... if the HEX file is bigger then 64k code .. then it is needed to specify that flash size is 128k in the chip, instead of the default 64k shown by the STM tool ... for now baseflight is less then 64k)
Baseflight firmware -> https://github.com/multiwii/baseflig...baseflight.hex

Note .. Strange in theory A2-A3 require a 3.3v GPS (per TimeCop manual) ... how it can support normal PWM from a 5V RX ....

----------- EDIT -------------------

Got this piece of info somewhere:

(we use "1", since that is telemetry output over the soft serial rc input pin 6)
So .. soft serial is on Input 6, that should be PA7 ... I will have to check it out

Reference Naze Wiki : http://www.netraam.eu/nazewiki/pmwiki.php

-------------------------------------

EDIT: Contribution from post 414

Last edited by e_lm_70; Oct 21, 2014 at 09:30 AM.
Apr 26, 2014, 09:55 AM
Registered User
nice work



have you fly it yet? a some photo program STM32 ?
Apr 26, 2014, 10:04 AM
Registered User
Thread OP
Quote:
Originally Posted by John michel
nice work



have you fly it yet? a some photo program STM32 ?
Just bench test for now ... since months

Naze32 has a GUI that I don't like much ... but ... I will give it a go "soon"

There is no reason why it should not fly ... it is same concept as the DIY MultiWii board .. that the basic one now cost 5.6$

I will need to maiden my DIY Naze with a DIY OpenLRSng RX .. including FrSky telemetry support

Quite some work on studding Naze32 needed ... and mainly I need to ad BMP180 support ... even the sample libraries for these puppy are a bit broken ... but it is looking way better then 085 ... but not as accurate as 5611 . at least from my very preliminary bench test

BTW: I tested my DIY 10DOF giving it as power 3.3v ... the STM32 has just 1 5v pin ... but 4 exposed 3.3v and 4 exposed GND ... the idea is to power directly a DIY FrSky or openLRSng that both works on 3.3v ... so ... perfect match.

The only draw back of this DIY Naze32 .. it is that it is a bit heavy ... possibly the USB plug can be removed, since it is useless ... TimeCop use a FTDI chip on his boards ... he does no bother to code support USB, that anyhow will not help for flash the firmware
Apr 26, 2014, 10:48 AM
Always Building
TheMadCADer's Avatar
For. Acro naze32 would I just need gyro+acc and stm32 board?
Last edited by TheMadCADer; Apr 26, 2014 at 10:57 AM.
Apr 26, 2014, 11:05 AM
Registered User
Thread OP
Quote:
Originally Posted by Rcnewbiechris
For. Acro naze32 would I just need gyro+acc and stm32 board?
Yes ... not even 10$

But no mag, no baro .. no fun ... just few extra cents
Apr 26, 2014, 02:30 PM
Always Building
TheMadCADer's Avatar
Eh I'll be using it for los though can you make a video tutorial pls, I really would like to build one
Apr 26, 2014, 02:42 PM
Registered User
Thread OP
Quote:
Originally Posted by Rcnewbiechris
Eh I'll be using it for los though can you make a video tutorial pls, I really would like to build one
Video Tutorial is an idea that I had in mind for "my" DIY projects ... also the only way to collect some few cents from YouTube Ads

I'm not so sure of the format ... I don't want to show me or expose my voice in my video ... so ... I need to think some decent way to build up quickly a video ... possibly just a bunch of still plus a maiden flight ...
Apr 26, 2014, 03:31 PM
Always Building
TheMadCADer's Avatar
Hmm maybe some charts of where everything (motors, rx, gyro) should be attached and the correct polarity.
Apr 26, 2014, 03:37 PM
Registered User
Thread OP
Quote:
Originally Posted by Rcnewbiechris
Hmm maybe some charts of where everything (motors, rx, gyro) should be attached and the correct polarity.
In theory all what you need, assuming you are using a PPM Rx is on post #2

Power ... all you need is 1 5v supply in the only 5v in pin, And power the external sensor from one of the 4 3.3v source on the stm32 board

Easy

If you are not on PPM Rx .. then I did not even took down the different Naze32 pin to be used ... I'm to lazy for connect more then 1 pin.

Also RX need to be power up, better to use a RX that works with 3.3v .. so in theory better to use a openLRSng RX, possibly in DIY format
Apr 26, 2014, 04:21 PM
Always Building
TheMadCADer's Avatar
So this rx won't work?
http://m.banggood.com/Wholesale-FS-R...FUNo7AodWh4AyQ
Apr 26, 2014, 05:05 PM
Registered User
Thread OP
Quote:
Originally Posted by Rcnewbiechris
It could, but I did not check all the PIN for the each input signal, and by default GPS works only with PPM mode .. but I guess you don't care about GPS

I will need to check from open schematic which pin need to be used for each input

Not sure about the 5v tollerance ... again, need to check schematic if original Naze32 has some protection resistor .. using 3.3v rx does make things more easy and safe
Apr 26, 2014, 05:24 PM
Always Building
TheMadCADer's Avatar
Okay thanks
Apr 27, 2014, 07:36 AM
Registered User
Why not openpilot instead ? hardware seems pretty same...
Apr 27, 2014, 09:29 AM
Registered User
Thread OP
Quote:
Originally Posted by renatoa
Why not openpilot instead ? hardware seems pretty same...
I don't know OpenPilot ... but my guess is that probably it will not work in this cheap diy

Naze32 fit in less then 64k ... I can't find cheap stm32 board with the 128k memory, the link above is for stm32 with only 64k ... and even if Naze board have the bigger chip, the hex file from Naze32 works on these board too, it is just 54k of program for now, that can be slim down in case of need.

One thing does scare me a bit ... my atmega mutlwii if get an i2c they still somehow work ... naze32 like some open source gimbal controller, get stuck in case of i2c error

So if one i2c line get disconnected in flight it has terrific end result, and no fail safe can be done ...


Quick Reply
Message:

Thread Tools