The distributors finally got in some of the new ST Micro STM32F2 series uControllers and I grabbed a few.  I was able to "shoehorn" one into a ver5 board as the pinout is close to compatible with the performance STM32F1 series.  Spent a few days rewriting the device drivers and am very impressed with this controller's performance.

I was able to bump up the sample rate to around 276.8KHz for all 12 sensors for a total of ~3.32 million samples per second.  Despite this more than doubling of work load, I ended up with around 70% idle time, up from 60% of the STM32F1.  Keep in mind that at a 120MHz clock rate, this 70% free cycles represents more than twice as much free number crunching capability than the STM32F1 at 60% idle.  I also found that the DMA to be much better with full FIFO available on each DMA channel and an easier to use triple ADC.

The result is a much cleaner interpretation of the sensor data which translates to a smoother and more stable platform.

Take a look at this short demo of the STM32F215 in a hex frame:

 

Views: 3245

Tags: aq, autonomous, autoquad, hex, vtol

Comment by Bill Nesbitt on June 30, 2011 at 7:47am

Maximus: All waypoints are in 3D coordinates

 

ThomasB: I think any STM32F2 code will wait for v6

 

CW: Wind - I can't say I know exactly.  I live in a valley between two mountains and the wind is typically very gusty.  I'm fairly sure the gusts were over 10mph, but I can't say with any certainly how much more.  Take a look at some of the trees or bushes in the background.  Some of them are moving quite a bit.  The horizontal hold can handle a lot of wind and gusts, but they effect the vertical more as vertical is tied to air pressure which changes as the gust moves through.  The error is tempered by the accel integration, but you have to rely on the pressure reading to correct them.

 

vis.asta: v6 information will be posted in another blog entry when I've had a chance to test.

Comment by Giovanni Esposito on June 30, 2011 at 8:40am

..and you did it, again! :-)

Arducopter guys still struggling to release a decent stable version on the old atmega, and you test high speed navigation :-)

By the way, the last slow piroette in position hold is really good (at least compared to what you can do with MK in position hold in windy condition). What are your plans, now? Will you release the new code and hardware specs? Will you produce the board or sell a kit?  

Comment by Roy Brewer on June 30, 2011 at 9:23am

Congrats, Bill! Great work, as always.

 

So, do you think its worth it to go from SMT32 F1 to F2, or would it make more sense to wait for Cortex M4? Also, do you know if the F2 series corrects the bug with hardware I2C (I'm not sure if you're even using I2C)?

 

- Roy

Comment by Bill Nesbitt on June 30, 2011 at 9:36am
Roy: I can find no reason to use the old STM32F1 instead of the F2. They have improved too many things. I was going to wait for the M4, but until when? And if it is missing the optional FPU (like Freescale's Kinetis) then there would be little advantage in waiting. I am not using I2C but I don't remember seeing anything about it in the errata. Of course it is still too early to know all of the problems with the F2, but I have proven that it does at least as much as I need.
Comment by robert bouwens on June 30, 2011 at 11:12am

the m4 will be available from nxp in october.

it is a dual core mcu :)

Comment by Lew Payne on June 30, 2011 at 10:30pm
Sort of like this blog announcement from November 2010...
Comment by Roy Brewer on July 2, 2011 at 6:47am

Thanks, Bill.

 I was excited when I learned of the Kinetis, only to be disappointed when I found out it currently lacked the FPU (although I think their latest series will have one). I did acquire a Piccolo Control Stick from TI. It has an FPU and a "control law accelelerator", which can run floating point control loops (but can only be programmed in assembler). I might try to use it in a quad.

 

- Roy

 

Comment by valentin colon on July 2, 2011 at 8:55pm
awesome!!!
Comment by valentin colon on July 2, 2011 at 8:55pm
awesome!!!
Comment by John Hanson on July 2, 2011 at 11:30pm

Wow!!!!!

Comment

You need to be a member of DIY Drones to add comments!

Join DIY Drones

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service