Mosquito Board / New design

So, the boards arrived, and i already made a mistake.
I strapped the comp+ pin of the MS8313 high because im used to do that from other circuits.
But i forgot to check the max voltage for it. Lets say 12V was to much.
So i lost the 1st board. But the 2nd works pretty well,
nothing gets hot, not even warm, flashing is no problem.

Just the programm, it only works partially.
But for that i´ll open a separate thread.


Awesome! Did it spark and smoke with a big pop or just failed silently?

That’s great! Please post some pics.

I’m curious. Waiting.

This is really good news, it’s always nice to see new stuff being developed.


Version 2.0 of the Mosquito board. With a step-down buck converter and a footprint for SPI magnetic absolute angle sensor on the back.

Will need to test these days when I get the time.


52mm gimbal (5208-200)

Micro-drone outrunner

Shared schematics


Hi, thanks for the great work. I just ordered some pcb’s myself. Are you willing to share the “firmware”? It would be nice to use as a starter.

Do you use TX/RX to give commands to the driver board (e.g. via an Arduino)?

Regards, Aernout


Thanks. SimpleFOC is needed to run the board.

Please visit

Let us know if you have questions.


Documentation for the board.

Thanks a lot. My PCB’s are in production and I can’t wait to test them out.

30V / 0.5A continuous current, open loop, room temperature (20oC), passive cooling, with a heatsink, tops out at 40oC


Hi Valentine!
Design looks good

  • It is possible to add current sensing?
  • how about use 8313 in QFN package? looks smaller.

  • mb relocate encoder to external board?


Yes but that would make the board twice as big and expensive.

Out of stock. My designs goals are to use in stock components only. There are many more much better options than 8313 to begin with, but all out of stock.

1 Like

You dont have to use the encoder on the board. There are leads you can solder for external sensors. Ive already done external encoder optional board but didnt have time to post here, too busy. Ill post it later today if you are interested.

PS the encoders. SPI based on SC60228DC chip, there a dedicated thread about this chip here.

1 Like

what ur opinion about hall or shunt resistor based inline current sensing in small board design?
which method should be given priority?
now im looking to small allegro

I lost a lot of time moving my workshop and can’t order boards and electronics due to the political situation, so I have more times and want to go deeper into the theoretical part of driver design.

Hall current sense is better imo.

Unfortunately it’s going to get a lot worse.

IMHO the hall sensors are attractive as they reduce component count (no need for a current sense amp) and thus make it easier to design and layout…
Not having a low voltage analog path (between shunt and amp) will probably have less noise.

When choosing, make sure the bandwidth is sufficient, but most models I’ve seen have more than enough.

Reasons not to use hall sensors can include power being too high, you have to be sure the sensor IC but also the copper traces to and from it will handle the current…

1 Like

Valentine as i understand right for flashing new controller need to configure it over STM CubeMX?

What edits are needed?
Clocking from external frequency generator?
enable GPIO pins?
enabling peripherals like UART, SPI, CAN. How can this be combined with Arduino?
I looked to CUBE and them does not have arduino framework.
How does a successfully configured project stand up to the arduino?
Just add to the project folder and move the simple foc code inside?

My skills with arduino are now in platformio, I flash the current bluepill via Stlink using.
Cube is also installed and I started studying a year ago right away with STM, so I can configure the periphery.

I can’t order a mosquito yet, because I am waiting for the production of the union pay card.

Is it possible to record a video of basic configuring process for new MCU?
it would be very informative for designing custom boards.

I work only with Arduino IDE. I’m not familiar with other IDEs or toolchains.

There are plenty of very professionally done youtube videos of flashing STM MCUs with Arduino. Including original videos by ST Micro.


1 Like

You can use PlatformIO…

Make sure the STM32 platform is installed. There are also detailed instructions for using PlatformIO in our SimpleFOC Docs: PlatformIO | Arduino-FOC

And Valentine’s excellent Mosquito User Guide (see PDF in this thread above) has detailed instructions on how to connect the ST-Link to the Mosquito…

Let us know if this is enough to get you started, or if you have further troubles…

1 Like

I just thought I’d chime in. This board looks really cool and I want to try it out in small combat robots (1lb/3lb).

I was able to get 3x boards (april 30th version) on OSHPark for $6.40 USD, and most of the parts on lcsc (4-6 of the expensive parts, and 20-400 of the cheap ones) for $59 USD (shipped to me in Canada). I got their last MS8313, but grabbed another 10 “DRV8313” (possibly just MS8313) for $21CAD, and 10 LMR14006 fpr $14.93CAD.

I’m just waiting on the PCB and the 10x DRV8313 (although I can start as soon as the PCBs arrive). They should clear customs and arrive this week.

That puts the effective BOM at around $25 USD/unit, which is darn reasonable if I can get it working :slight_smile:

I’ll be doing all the solder paste by hand under a cheap USB microscope, so there’s always the possibility of screwing up, particularly with the STM32. I might have an old stencil with that profile that I can use though to get that right.

Hello @Magneon

Thank you. This is very educational. I admire your dedication. Especially nahd soldering the g031, that’s really extremely challenging.

Please post any pictures, and share your experience. Also, any suggestions on improving / bettering / critiquing the board design would be also very helpful to the community.


I’ll be reflowing the top on a hot plate, just hand placing the paste+parts :slight_smile:

I draw the line at pads entirely under parts :wink: