HobbyKing.com New Products Flash Sale
Reply
Thread Tools
Old Aug 08, 2014, 09:39 AM
RC beginner
New York
Joined Oct 2008
6,028 Posts
Mini-HowTo
DAZE32: tiny quad fc for $5

inspired by tardcops baseflight controller as implemented by e_lm_70 in his diy stm32 thread i came up with this ultra low cost easy to build version. less than 5 dollars including sensors. it has been flight tested now and performs really well. sensors are working as expected and very stable. at least as good as multiwii but without the need to recompile every time you make a change. so far with 6dof gy521 but soon 10dof gy86 and then gps. if there are any questions or notice any bugs dont hesitate..

heres the net list i used to build mine. as you can see there are only 12 wires. but it works!
Code:
; g 8,20,23,35,47
; 3v 9,24,36,48 (.1uf2gnd)
; rx 31
; pwm1 29
; pwm2 32
; pwm3 42
; pwm4 43
; tx 30

; g
; 3v
; ppm 10
; boot0 44 (10k2gnd)

; g
; 3v
; scl 21
; sda 22
heres some links. to keep cost below $5 you might have to buy more than one but still less than what a regular fc will cost. and youll have 9 spares!

imu: http://www.ebay.com/itm/MPU-6050-Mod...item2ecdfcd204

pcb: http://www.ebay.com/itm/231269825816...%3AMEBIDX%3AIT

stm32: http://www.aliexpress.com/item/Free-...942931069.html

crystal: http://www.ebay.com/itm/390858221573...%3AMEBIDX%3AIT




some of the guys getting into this are beginners so it might be helpful to browse the thread that got me hooked. lots of good info on starting out: http://www.rcgroups.com/forums/showthread.php?t=2154329. beware there is some confusion over boot jumper settings. op is apparently not aware or concerned current boards have boot0/1 swapped so pays to browse photos beyond post #1 and read related posts.

heres a link to tc manual which imo is very well done: http://www.google.com/url?sa=t&rct=j...73231344,d.cWc

for beginners i also recommend buying a bona fide naze32 first (http://www.multirotorsuperstore.com/acro-naze32.html). also available from abusethemarks.com abusemark.com. i like to poke fun at tc (talk about dongs... lol) but hes been a hero of mine ever since jumping on me during my first rcg thread. twenny fi' bucks aint fi' bucks but wont break the bank and can be a real help getting noobs feet on the ground. so if youre a rank beginner its a good idea to pick up one of these. but if experienced or like me have lots of frames and motors kicking around its nice to be able to crank out a half dozen of the cheap tricks for the same price. i kinda did it the other way around though. after seeing how cool diy worked i did order one of the acro version. however not quite ready to shell out fitty for the full since there are a few gy86 sitting here.



photos added showing the actual test quad. hodge-podge 450 glommed together with junk parts from 3 tricopters and a plane. for speed controllers notice one each red brick, turnigy plush, 10a blue, and hobbyking 6a. motors not matched either. in spite of this flies great. multiwii seems to compensate. why risk the good stuff for experiments like this. but even so brand new parts would total less than $45 shipped including carbon fiber frame and glow-in-the-dark props.



photos:
dave1993 is offline Find More Posts by dave1993
Last edited by dave1993; Yesterday at 12:49 PM. Reason: links and wiring
Reply With Quote
Sign up now
to remove ads between posts
Old Aug 08, 2014, 10:27 AM
Registered User
United States, UT, Herriman
Joined Jan 2012
1,961 Posts
I'm interested. Nicely done! Out of curiosity, do you use the solderable enameled wire or do you just remove the enamel before soldering? With these STM32 boards getting cheaper, I'm thinking they are going to be my go-to MCU.
ttabbal is online now Find More Posts by ttabbal
Reply With Quote
Old Aug 08, 2014, 01:30 PM
Registered User
Joined Mar 2013
38 Posts
Quote:
Originally Posted by dave1993 View Post
if theres interest i can post wiring diagrams and links to parts sources.
Hmmm... I wonder if there will be interest?

Yes, please.
wobbletop is offline Find More Posts by wobbletop
Reply With Quote
Old Aug 08, 2014, 03:03 PM
Registered User
United States, CO, Boulder
Joined Jun 2014
242 Posts
I'm subscribed but I'd like to see the parts sources. Also which STM32 board are your using? Thanks.
stuartambient is online now Find More Posts by stuartambient
Reply With Quote
Old Aug 08, 2014, 06:55 PM
RC beginner
New York
Joined Oct 2008
6,028 Posts
ive added some links and a wiring list. as you can see those are general purpose qfp48 proto boards that ive soldered the stm32 chip to. if theres time this weekend ill make a real schematic diagram and put it up here when i get back monday. hopefully ill get a chance to test fly this on a full size quad before then too.
dave1993 is offline Find More Posts by dave1993
Reply With Quote
Old Aug 09, 2014, 05:43 AM
Registered User
Joined Feb 2014
6 Posts
I would love to see a schematic diagram, i'd love to give this a go given that it is so cheap!
mickeymug is offline Find More Posts by mickeymug
Reply With Quote
Old Aug 09, 2014, 11:56 AM
Registered User
United States, UT, Herriman
Joined Jan 2012
1,961 Posts
I didn't know you could get the mcu that cheap. Well worth it, even if you have to solder them to the breakout board. What crystal are you using for the main clock?
ttabbal is online now Find More Posts by ttabbal
Reply With Quote
Old Aug 11, 2014, 01:09 AM
Registered User
Joined Mar 2014
109 Posts
Quote:
Originally Posted by ttabbal View Post
I didn't know you could get the mcu that cheap. Well worth it, even if you have to solder them to the breakout board. What crystal are you using for the main clock?
I think it got a internal RC oscillator.

Come to think of it, how well does it handle temperature changes? Does it drift a lot?
io53 is online now Find More Posts by io53
Reply With Quote
Old Aug 11, 2014, 11:55 AM
RC beginner
New York
Joined Oct 2008
6,028 Posts
it does have an internal oscillator and its one of the most accurate and stable in the industry. much better than pic or avr. but flight controllers require an external crystal. even slight variation will wreak havoc with ppm and pwm timing. the one i used is very small. if you drop it on the floor dont bother looking. just pull out another one because youll never find it. ive added a link to the crystal seller. they only cost 28 cents so easy to stay under the $5 limit.

ttabbal, regarding your question about magnet wire. in reality all magnet wire is no-strip solderable. the question is at what temperature. most needs a very hot iron to melt the coating. i use a very low temperature type that vaporizes almost instantly. its great stuff. i can move from one connection to the other in 2-3 sec each. no snipping either, just wiggle and break. i wasnt exaggerating when i said this board only took a few minutes.

not realizing how much is on a roll i stupidly bought 20,000'. lol. if you would like to try it let me know. ill send you enough for many projects like this at no cost.
dave1993 is offline Find More Posts by dave1993
Reply With Quote
Old Aug 11, 2014, 02:08 PM
Registered User
Joined Sep 2011
49 Posts
Deadbug version or it didn't happen dave.

PS. Also be aware that the STM32F103C8T6 has 64kb of flash and the STM32F103CBT6 has 128kb. The real naze uses the STM32F103CBT6 so I would get one of those if possible to keep future compatibility with firmware upgrades.
Curtisbeef is online now Find More Posts by Curtisbeef
Last edited by Curtisbeef; Aug 11, 2014 at 02:46 PM.
Reply With Quote
Old Aug 11, 2014, 04:54 PM
RC beginner
New York
Joined Oct 2008
6,028 Posts
Quote:
Originally Posted by Curtisbeef View Post
Deadbug version or it didn't happen dave.
lol. hello again curtisbeef. 0.5mm! im still blind in one eye and cant see out of the other from deadbug mega2560. i think ill stick with the 50 cent protoboard for now.

as for 64k vs 128k ive got a secret. both 8 and B are the same die and both have 128k. in order to keep my own cost below $4 (dont ask) 100 of these were purchased. then e_lm_70 mentioned the cheapies had 128k too so i decided to test all of mine using the st flash utility. guess what... he was right.

atmel does a similar thing with the "brain dead" t9 and t10. not guaranteed the extra flash will be error free or new variations have it but convincing enough for hobby use.
dave1993 is offline Find More Posts by dave1993
Reply With Quote
Old Aug 11, 2014, 05:05 PM
OlliW
Joined Sep 2009
1,539 Posts
I just checked a STM32 board with an F103C8T6 using the ST Link Utility (v3.1.0), and it reports Device ID 0x410 and Flash size 64kB ...
could you please detail what "st flash utility" you used and how you could identify that there are really 128k physically available
THX!
OlliW is offline Find More Posts by OlliW
Reply With Quote
Old Aug 11, 2014, 05:12 PM
RC beginner
New York
Joined Oct 2008
6,028 Posts
to all ye of little faith.

in addition to jtag and $5 ebay STink V2 dongles with their various softwares im using the "flash demo" program with serial port. it does report 64k but can be overridden on the next page. after that you will find theres an option to fill and/or erase all pages which is an easy way to tell whats up.
dave1993 is offline Find More Posts by dave1993
Reply With Quote
Old Aug 12, 2014, 08:32 PM
RC beginner
New York
Joined Oct 2008
6,028 Posts
got your pm tt. ill send the wire out tomorrow. i think youll like it.

i also got a message asking for schematic. maybe i should have mentioned but for anybody who missed it one was posted a day or two back. i can understand getting lost in one of the megathreads, but guys, this isnt even ONE PAGE! lol.
dave1993 is offline Find More Posts by dave1993
Reply With Quote
Old Aug 13, 2014, 12:58 AM
Registered User
United Kingdom
Joined Nov 2008
1,983 Posts
Quote:
Originally Posted by OlliW View Post
I just checked a STM32 board with an F103C8T6 using the ST Link Utility (v3.1.0), and it reports Device ID 0x410 and Flash size 64kB ...
could you please detail what "st flash utility" you used and how you could identify that there are really 128k physically available
THX!
can confirm this is the case - the original FreeFlight software (board was forerunner of tc's Naze boards) used the hidden flash area to hide it's software protection data !
Mike Barton is offline Find More Posts by Mike Barton
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Sold 250 mini HK quad frame, mini camera gimbal, KK 2.1.5 FC & 3x 10 amp HK blue ESC's! tc3wins Aircraft - Electric - Multirotor (FS/W) 6 May 06, 2014 12:26 PM
For Sale QUAD for sale - Rusty's Frame - MK (v2.1 FC & NAVI/GPS) with extra’s Mactadpole Aircraft - Electric - Multirotor (FS/W) 3 Nov 23, 2013 12:25 PM
Discussion New FC KFC32 - Multiwii on STM32, better than MK ? ;) pirzol Multirotor Electronics 0 Feb 16, 2013 08:44 AM
Sold "MK" Quad FC 1.35 Gold edition Sale/Trade for Heli related items The Nemesis Aircraft - General - Miscellaneous (FS/W) 0 Apr 20, 2011 03:26 PM
Sold "MK" Quad FC 1.35 Gold edition Sale/Trade for Heli related items The Nemesis Aircraft - Electric - Helis (FS/W) 0 Apr 20, 2011 03:23 PM