自制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
不需要电调吗
不错的教程我改天试试 楼主高手啊!
楼主继续 http://www.moz8.com//mobcent//app/data/phiz/default/23.png
这个要慢慢玩,不系统的学一下还真不行,不过肯定特有成感。、 发自内心的感谢大神 sharkcjj2015 发表于 2015-11-17 12:55
不需要电调吗
当然要了, motor输出端,就是接电调的,你还要自己做3转1的接线口 厉害 大神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
自己做估计比成品更贵吧 有这个打算,早就买好了东西,不过,还没时间动手呢,还要复习一下stm32…… 自己做实验还不错。
不错的教程 {:1_1:} 利害{:1_1:},這一些我都有, 但我不懂{:1_12:} smartphone 发表于 2015-11-17 20:05
自己做估计比成品更贵吧
如果你做4轴,就要买gy86, 可能要100元,比成品便宜50元
不要求高精度定高,买gy87, 要 50多元,比成品便宜100元
当然,你的时间可不止你节省的钱,但你学到了东西。
naze32 bootloade怎么烧?? cailongxin 发表于 2016-1-1 03:32
naze32 bootloade怎么烧??
不用烧bl, 你参见http://www.moz8.com/thread-61259-1-1.html 老板太厉害了。
页:
[1]
2