# Mosquito Board / New design

**URL:** <https://community.simplefoc.com/t/mosquito-board-new-design/1621>\
**Category:** hardware support\
**Created:** [January 27, 2022, 8:52pm UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621 "2022-01-27T20:52:19Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)\
**Post date:** [April 5, 2022, 10:20pm UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/21 "2022-04-05T22:20:36Z")

</div>

> [@David\_Leitner](#):
>
> Lets say 12V was to much

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

> [@David\_Leitner](#):
>
> 2nd works pretty well, nothing gets hot, not even warm, flashing is no problem

That’s great! Please post some pics.

> [@David\_Leitner](#):
>
> Just the programm, it only works partially.  
> But for that i´ll open a separate thread.

I’m curious. Waiting.

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

Cheers,  
Valentine

---

<div class="post-metadata">

**Author:** ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)\
**Post date:** [April 17, 2022, 4:49pm UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/22 "2022-04-17T16:49:59Z")

</div>

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.

 ![image](https://community.simplefoc.com/uploads/default/original/2X/f/f57ccbff148671495ce87e58b2515b523048a8f6.jpeg)

 ![image](https://community.simplefoc.com/uploads/default/original/2X/f/fddf2687289c2d8e5ecf743877be5dae101efd6a.jpeg)

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

Cheers,  
Valentine

52mm gimbal (5208-200)  
 ![ezgif.com-gif-maker1](https://community.simplefoc.com/uploads/default/original/2X/c/cecdaada847fc9e7426303ac6c9c0799e4cb80dd.gif)

Micro-drone outrunner  
 ![ezgif.com-gif-maker](https://community.simplefoc.com/uploads/default/original/2X/b/b0e2b5f1e08a86a32ba8d23bb6cce1287ff8c427.gif)

 ![image](https://community.simplefoc.com/uploads/default/original/2X/6/6fd6191b4d0f74f18ef26b965ac849b992e48e70.jpeg)  
 ![image](https://community.simplefoc.com/uploads/default/original/2X/c/cb5605b7b178de3b48cabc8713dde10dcd239a57.jpeg)

Shared schematics

> **[立创开源硬件平台](https://oshwlab.com/cost.co/20220126_bldc_mosquito_copy)**
>
> 基于嘉立创EDA进行电路设计的硬件开源设计大本营,集嵌入式、电子模块、DIY设计、物联网、智能硬件、电子应用、电工电子等多种电路设计模块为一体的开源硬件平台

---

<div class="post-metadata">

**Author:** ![ator1811](https://community.simplefoc.com/user_avatar/community.simplefoc.com/ator1811/32/2705_2.png) [@ator1811](https://community.simplefoc.com/u/ator1811)\
**Post date:** [April 22, 2022, 5:00am UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/23 "2022-04-22T05:00:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)\
**Post date:** [April 22, 2022, 5:16am UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/24 "2022-04-22T05:16:39Z")

</div>

@ator1811

Thanks. SimpleFOC is needed to run the board.

Please visit

> **[Home](https://docs.simplefoc.com/)**
>
> Arduino Simple Field Oriented Control (FOC) project documentation.

Let us know if you have questions.

Cheers,  
Valentine

---

<div class="post-metadata">

**Author:** ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)\
**Post date:** [April 23, 2022, 2:46am UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/25 "2022-04-23T02:46:55Z")

</div>

Documentation for the board.

> **[Mosquito\_BLDC\_UserGuide\_20220422.pdf](https://drive.google.com/file/d/1Ev1wcCPXnmiUsTl4JunoNijvsclqJlB7/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![ator1811](https://community.simplefoc.com/user_avatar/community.simplefoc.com/ator1811/32/2705_2.png) [@ator1811](https://community.simplefoc.com/u/ator1811)\
**Post date:** [April 23, 2022, 4:48am UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/26 "2022-04-23T04:48:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)\
**Post date:** [April 24, 2022, 12:20am UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/27 "2022-04-24T00:20:40Z")

</div>

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

 ![image](https://community.simplefoc.com/uploads/default/original/2X/9/9746e4a3dfcc75e8c7fa5402dcb1027646d273b2.jpeg)  
 ![image](https://community.simplefoc.com/uploads/default/original/2X/7/7ebe8fabf9a279f46df0e0cf0978c64705c83ee5.jpeg)

---

<div class="post-metadata">

**Author:** ![Andrey\_Sabadash](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/a/c37758/32.png) [@Andrey\_Sabadash](https://community.simplefoc.com/u/Andrey_Sabadash)\
**Post date:** [April 26, 2022, 8:41am UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/28 "2022-04-26T08:41:45Z")

</div>

Hi Valentine!  
Design looks good

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

 ![изображение](https://community.simplefoc.com/uploads/default/original/2X/6/6bd56b78941bf56ac3d723d4d51a21c39319ea57.png)

- mb relocate encoder to external board?

 ![изображение](https://community.simplefoc.com/uploads/default/original/2X/7/79e6d2e1bfd45c1dc0dc3f2fca4b7395862eebaa.jpeg)

---

<div class="post-metadata">

**Author:** ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)\
**Post date:** [April 26, 2022, 12:42pm UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/29 "2022-04-26T12:42:47Z")

</div>

> [@Andrey\_Sabadash](#):
>
> It is possible to add current sensing

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

> [@Andrey\_Sabadash](#):
>
> how about use 8313 in QFN package? looks smalle

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.

---

<div class="post-metadata">

**Author:** ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)\
**Post date:** [April 26, 2022, 12:47pm UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/30 "2022-04-26T12:47:44Z")

</div>

> [@Andrey\_Sabadash](#):
>
> mb relocate encoder to external board?

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.

 ![image](https://community.simplefoc.com/uploads/default/original/2X/9/92083a25d1000c3240dbc964ce3cb4656adb2ad1.jpeg)

---

<div class="post-metadata">

**Author:** ![Andrey\_Sabadash](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/a/c37758/32.png) [@Andrey\_Sabadash](https://community.simplefoc.com/u/Andrey_Sabadash)\
**Post date:** [April 26, 2022, 4:59pm UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/31 "2022-04-26T16:59:31Z")

</div>

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

 ![изображение](https://community.simplefoc.com/uploads/default/original/2X/4/4144ad820a99958b7f3d53143f57ead2b04d11b9.png)

> **[0 to 50 A Integrated Current Sensor ICs | Allegro MicroSystems](https://www.allegromicro.com/en/products/sense/current-sensor-ics/zero-to-fifty-amp-integrated-conductor-sensor-ics)**
>
> Our family of fully integrated, high isolation current sensor solutions provides accurate measurement with very low resistance—all without the need for external isolation components.

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.

---

<div class="post-metadata">

**Author:** ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)\
**Post date:** [April 26, 2022, 10:27pm UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/32 "2022-04-26T22:27:18Z")

</div>

> [@Andrey\_Sabadash](#):
>
> opinion about hall or shunt resistor

Hall current sense is better imo.

> [@Andrey\_Sabadash](#):
>
> due to the political situation

Unfortunately it’s going to get a lot worse.

---

<div class="post-metadata">

**Author:** ![runger](https://community.simplefoc.com/user_avatar/community.simplefoc.com/runger/32/395_2.png) [@runger](https://community.simplefoc.com/u/runger)\
**Post date:** [April 27, 2022, 3:08pm UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/33 "2022-04-27T15:08:03Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Andrey\_Sabadash](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/a/c37758/32.png) [@Andrey\_Sabadash](https://community.simplefoc.com/u/Andrey_Sabadash)\
**Post date:** [April 30, 2022, 10:39pm UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/34 "2022-04-30T22:39:44Z")

</div>

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.

 ![изображение](https://community.simplefoc.com/uploads/default/original/2X/1/1e2975b8af8c648bf378d10cd5d814100ccc229b.png)  
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.

---

<div class="post-metadata">

**Author:** ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)\
**Post date:** [April 30, 2022, 11:16pm UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/35 "2022-04-30T23:16:26Z")

</div>

> [@Andrey\_Sabadash](#):
>
> How can this be combined with Arduino?

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

> [@Andrey\_Sabadash](#):
>
> record a video of basic configuring process for new MCU

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

[https://www.youtube.com/results?search\_query=arduino+stm+st-link](https://www.youtube.com/results?search_query=arduino+stm+st-link)

Cheers,  
Valentine

---

<div class="post-metadata">

**Author:** ![runger](https://community.simplefoc.com/user_avatar/community.simplefoc.com/runger/32/395_2.png) [@runger](https://community.simplefoc.com/u/runger)\
**Post date:** [May 1, 2022, 9:21am UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/36 "2022-05-01T09:21:46Z")

</div>

> [@Andrey\_Sabadash](#):
>
> in platformio, I flash the current bluepill via Stlink using.

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](https://docs.simplefoc.com/library_platformio)

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…

---

<div class="post-metadata">

**Author:** ![Magneon](https://community.simplefoc.com/user_avatar/community.simplefoc.com/magneon/32/3000_2.png) [@Magneon](https://community.simplefoc.com/u/Magneon)\
**Post date:** [May 16, 2022, 12:21am UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/37 "2022-05-16T00:21:23Z")

</div>

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 🙂

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.

---

<div class="post-metadata">

**Author:** ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)\
**Post date:** [May 16, 2022, 3:33am UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/38 "2022-05-16T03:33:59Z")

</div>

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.

Cheers  
Valentine

---

<div class="post-metadata">

**Author:** ![Magneon](https://community.simplefoc.com/user_avatar/community.simplefoc.com/magneon/32/3000_2.png) [@Magneon](https://community.simplefoc.com/u/Magneon)\
**Post date:** [May 16, 2022, 2:22pm UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/39 "2022-05-16T14:22:35Z")

</div>

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

I draw the line at pads entirely under parts 😉

---

<div class="post-metadata">

**Author:** ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)\
**Post date:** [May 16, 2022, 2:30pm UTC](https://community.simplefoc.com/t/mosquito-board-new-design/1621/40 "2022-05-16T14:30:51Z")

</div>

I’ve seen people reflowing on top of a hot kitchen stove or household iron with incredible results, but then I’m not that brave. Please do not injure yourself.

[Previous page](https://community.simplefoc.com/t/mosquito-board-new-design/1621.md?page=1)

[Next page](https://community.simplefoc.com/t/mosquito-board-new-design/1621.md?page=3)
