Live data from Hacker News

Bare Metal STM32 Programming and a Quadcopters Awakening

timakro.de

51–58 of 58 posts

Re: Bare Metal STM32 Programming and a Quadcopters Awakening

#51
post #12

I have no idea about the load carrying capacity of the drone, but it would be an awfully cool project to add an ultrasound sensor(s) and write a program for flying it around randomly indoors without hitting walls. A fancy feature might be to solve a real-life maze by flying through it. Would such a thing be possible?

Not ultrasound but at one point in my life I made this: https://www.youtube.com/watch?v=ig8IRTejn8A

(I'm even piloting in this video)

Re: Bare Metal STM32 Programming and a Quadcopters Awakening

#52

Earlier quoted context omitted.

A micropython based flight control system would be a really cool project.

hmm, watching your copter crash during Pythons garbage-collection cycle might be an issue.... Python != realtime, flight-control == hard real-time

The interesting difference here is that these things have a bunch of processors on them. So the 'pilot' process can be essentially an interrupt service routine that keeps things sane on an interrupt that cant be masked by the Python code. So during garbage collection your UAV might stop and hover, but it would be unlikely to crash in that scenario.

Further, my experience with Micropython so far has shown it to be pretty fluid. But I would be the first to tell you I haven't challenged it all that much.

Re: Bare Metal STM32 Programming and a Quadcopters Awakening

#53

Ok, this drives me nuts ARGH! Seriously? The STM32F103? Crazy (or should that be Craze) hobbyists using "blue pill" boards because they are cheap (and they are, like $3 on ebay) which use this bastard chip of the ST Cortex-M line and they say "gee, its a really simple circuit and since they sell for so cheap on ebay it should be a good idea to use this chip!" BZZZZZZT! ST Micro makes much better CPUs that would be id…

Yeah, the same kind of fake "we're Open Source" seems to happen with kickstarter projects fairly often too. eg DoBot. Grrr. One place which has done it correctly though is Dorna: https://www.dorna.ai They kickstarted (successfully, shipping to their backers etc), now have an online store, and all of the files (both software + hardware designs) are downloadable for everyone. :)

Damn, sometimes reading comments can be soo expensive :-)

Re: Bare Metal STM32 Programming and a Quadcopters Awakening

#54
post #12

I have no idea about the load carrying capacity of the drone, but it would be an awfully cool project to add an ultrasound sensor(s) and write a program for flying it around randomly indoors without hitting walls. A fancy feature might be to solve a real-life maze by flying through it. Would such a thing be possible?

Check out PX4/Avoidance on Github.

Re: Bare Metal STM32 Programming and a Quadcopters Awakening

#55

STM32 chips are used on a lot of quadcopter flight controllers, often using open source firmware like Betaflight https://github.com/betaflight/betaflight/wiki

Betaflight is oriented towards racing drones, there are a whole slew of open source autopilot firwares available.

PX4

Ardupilot

Cleanflight

iNav

etc

Each is oriented towards different types of audiences based on features and license.

Re: Bare Metal STM32 Programming and a Quadcopters Awakening

#56
post #12

I have no idea about the load carrying capacity of the drone, but it would be an awfully cool project to add an ultrasound sensor(s) and write a program for flying it around randomly indoors without hitting walls. A fancy feature might be to solve a real-life maze by flying through it. Would such a thing be possible?

Not ultrasound but at one point in my life I made this: https://www.youtube.com/watch?v=ig8IRTejn8A (I'm even piloting in this video)

Very cool. Thank you for sharing!

Re: Bare Metal STM32 Programming and a Quadcopters Awakening

#57

Earlier quoted context omitted.

Yeah, the same kind of fake "we're Open Source" seems to happen with kickstarter projects fairly often too. eg DoBot. Grrr. One place which has done it correctly though is Dorna: https://www.dorna.ai They kickstarted (successfully, shipping to their backers etc), now have an online store, and all of the files (both software + hardware designs) are downloadable for everyone. :)

Damn, sometimes reading comments can be soo expensive :-)

Heh Heh Heh. Yeah. :)
Post reply on HN