payne.pan 发表于 2015-11-17 12:32:23

自制Naze32

本帖最后由 payne.pan 于 2016-1-8 10:34 编辑

基于Atmel 8位处理器的 的Multiwii 是很容易DIY, 也很用用Arduino IDE编成,但这些微控制器,很难平滑过渡了到32位微控制器的世界
32位多用基于arm的stm32, baseflight, cleanflight 就是Multiwii完全改写了的运行在32位arm微控制器的飞控程序。


回想过去买个Arduino mini, 买个传感器 gy86,gy87或gy521, 很容易就做了一个Multi, 我也希望以此方式来做stm32
最近发现一个文章很有帮助,本文主要是翻译







需要购买
一个stm32 board 大概 25元, 再小点的 17元
一些传感器模块,
可以是集成的 10DOF GY86 或 GY87 等   (价格30-80元不等)
也可以是分离的 气压计, 加速度/陀螺仪,磁场单独购买 (价格几元到20元)

而后开始接线,接线图如下:






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)

PA12 -> Buzzer
PA4 -> VBAT

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)


如果是并行pwm输入,查考如下
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




(我买的器件还没有到,等我实践后再补充) 已经做好,参见
http://www.moz8.com/thread-61259-1-1.html

sharkcjj2015 发表于 2015-11-17 12:55:18

不需要电调吗

无机翼的飞机8 发表于 2015-11-17 13:04:49

不错的教程我改天试试

tjcdq 发表于 2015-11-17 13:43:38

楼主高手啊!

麻姑物宝 发表于 2015-11-17 16:24:31

楼主继续

花雕 发表于 2015-11-17 17:17:23

http://www.moz8.com//mobcent//app/data/phiz/default/23.png

大板 发表于 2015-11-17 17:39:10

这个要慢慢玩,不系统的学一下还真不行,不过肯定特有成感。、

hhz1985 发表于 2015-11-17 17:47:18

发自内心的感谢大神

payne.pan 发表于 2015-11-17 18:03:52

sharkcjj2015 发表于 2015-11-17 12:55
不需要电调吗

当然要了, motor输出端,就是接电调的,你还要自己做3转1的接线口

emptjf 发表于 2015-11-17 18:12:09

厉害

164281221 发表于 2015-11-17 19:48:40

大神http://www.moz8.com//mobcent//app/data/phiz/default/23.pnghttp://www.moz8.com//mobcent//app/data/phiz/default/23.pnghttp://www.moz8.com//mobcent//app/data/phiz/default/23.pnghttp://www.moz8.com//mobcent//app/data/phiz/default/23.png

smartphone 发表于 2015-11-17 20:05:16

自己做估计比成品更贵吧

Ablen 发表于 2015-11-17 21:37:10

有这个打算,早就买好了东西,不过,还没时间动手呢,还要复习一下stm32……

CCAD2015 发表于 2015-11-17 22:05:25

自己做实验还不错。

chriskao 发表于 2015-11-18 01:46:32

不错的教程 {:1_1:}

lawlaw36 发表于 2015-11-18 01:58:47

利害{:1_1:},這一些我都有, 但我不懂{:1_12:}

payne.pan 发表于 2015-11-18 08:53:28

smartphone 发表于 2015-11-17 20:05
自己做估计比成品更贵吧

如果你做4轴,就要买gy86, 可能要100元,比成品便宜50元
不要求高精度定高,买gy87, 要 50多元,比成品便宜100元
当然,你的时间可不止你节省的钱,但你学到了东西。

cailongxin 发表于 2016-1-1 03:32:05

naze32 bootloade怎么烧??

payne.pan 发表于 2016-1-1 07:24:16

cailongxin 发表于 2016-1-1 03:32
naze32 bootloade怎么烧??

不用烧bl, 你参见http://www.moz8.com/thread-61259-1-1.html

pcsms_5sLK1ZNL 发表于 2020-9-1 15:39:42

老板太厉害了。
页: [1] 2
查看完整版本: 自制Naze32