# Looking for USB powered low power BLDC driver

**URL:** https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868
**Category:** Uncategorized
**Created:** [March 27, 2022, 6:35pm UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868 "2022-03-27T18:35:31Z")
**Posts on this page:** 14
**Page:** 2

<div class="post-metadata">

### Author: ![Karl\_Makes\_Music](https://community.simplefoc.com/user_avatar/community.simplefoc.com/karl_makes_music/32/1882_2.png) [@Karl\_Makes\_Music](https://community.simplefoc.com/u/Karl_Makes_Music)
#### Post date: [March 15, 2023, 11:46pm UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/21 "2023-03-15T23:46:36Z")

</div>

Hey! If you’re looking for a USB 3.0 driven low-power AIO?  
I created a prototype based on the TMC6300 with MA710/MA730/MAQ430 sensors in the rear.  
I’m now trying it with SmartKnob FW to see how well it works.

Although the construction is simple and affordable, I picked a very pricey sensor family.  
The whole BOM, without assembly, is between 15 and 17 euros.

As long as you use a Type-C connection, it can manage the maximum rated current for the TMC while also powering the MCU and other peripherals.

A 5.1K resisor on the CC lines limits the board to 5V 3A. It will work with older USB devices, but you will be restricted to **500mA - NOT RECOMMENDED.**

Specs:  
ESP32-S3-1U N4R2  
TMC6300 1.2A Max  
MPS MagAlpha MA/MAQ series position sensors  
Integrated TVS/ESD on USB datalines  
ST1L05CPU33R - A nice compact but capable LDO  
Type-C Conector capped at 5V 3A  
Accessible UART, JTAG, I2C and other GPIOs  
No Current Sensing 🙁

**Footprint just 35x35mm!** Its design to be mounted at the back of motor.  
Supports wide range of low power gimbal or ptz motors.  
Should work with many projects that use SimpleFOC.

Its compact!

 ![image](https://community.simplefoc.com/uploads/default/original/2X/0/00d1bf6a7c91d2ef8ef42154bf6ab9bb3430f36a.png)  
 ![IMG_20230315_133747](https://community.simplefoc.com/uploads/default/original/2X/3/36b16fda8128731296bb3a871af07eb106f96270.jpeg)  
 ![IMG_20230315_134115](https://community.simplefoc.com/uploads/default/original/2X/f/fc257273a18c4dcfefc2581b9bc9d32e24d1db4a.jpeg)  
 ![IMG_20230315_203221](https://community.simplefoc.com/uploads/default/original/2X/6/6f0b69af23272fffd51d34ab8732bcfe958d8dcf.jpeg)  
 ![IMG_20230315_233848](https://community.simplefoc.com/uploads/default/original/2X/e/e15c47220c30a5565a3535f76d9e0f26329a1368.jpeg)

---

<div class="post-metadata">

### Author: ![eduard](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/e/3da27b/32.png) [@eduard](https://community.simplefoc.com/u/eduard)
#### Post date: [March 15, 2023, 11:50pm UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/22 "2023-03-15T23:50:26Z")

</div>

Wow, such a beautiful design! Congrats! Is it possible to try out (buying) on of them?

---

<div class="post-metadata">

### Author: ![Karl\_Makes\_Music](https://community.simplefoc.com/user_avatar/community.simplefoc.com/karl_makes_music/32/1882_2.png) [@Karl\_Makes\_Music](https://community.simplefoc.com/u/Karl_Makes_Music)
#### Post date: [March 16, 2023, 12:06am UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/23 "2023-03-16T00:06:08Z")

</div>

I’m assembling first batch and need to test them and solve couple of issues of engineering nature.  
Not sure when these would be available hehe depends on how i manage my free time 🙂

---

<div class="post-metadata">

### Author: ![VIPQualityPost](https://community.simplefoc.com/user_avatar/community.simplefoc.com/vipqualitypost/32/4420_2.png) [@VIPQualityPost](https://community.simplefoc.com/u/VIPQualityPost)
#### Post date: [March 16, 2023, 9:34pm UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/24 "2023-03-16T21:34:34Z")

</div>

> [@Karl\_Makes\_Music](#):
>
> back of motor.

Any motor in particular? I would think stepper at first glance, but then you need one more half driver.  
Is there a standard size for hole placement? On many of the small ones I get from aliexpress, the hole spacing seems random, almost.

---

<div class="post-metadata">

### Author: ![Karl\_Makes\_Music](https://community.simplefoc.com/user_avatar/community.simplefoc.com/karl_makes_music/32/1882_2.png) [@Karl\_Makes\_Music](https://community.simplefoc.com/u/Karl_Makes_Music)
#### Post date: [March 16, 2023, 9:58pm UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/25 "2023-03-16T21:58:30Z")

</div>

Concept behind it was to keep it ultra small but big enough so you can attach few 2.54 headers.  
Size of board is 35x35mm (+2mm for VIN GND notch).  
It’s square form factor might be misleading that it fits Nema or other steppers but this is not correct.

I designed 2 adapters taht will come with board.

**Adapter 1:**  
Controler Attachment Board  
1.6mm Aluminium PCB

**Adapter 2:**  
Motor Atachment Board with milled 3mm rails  
1MM aluminium PCB

Idea is to stack them on top of another,

using female-female standoffs for less granular offset between motor/magned and use adapters for more granular height adjustment.

**Each set will contain**  
1x Base Adapter, 3x 1mm motor adatpers, 4x 6mm standoffs, 4x 8mm standoffs, and bunch of M3 screws.

Once i receive them i will test this and provide manual on assembly which should be quite straight forward.

Motor adapter support motors from 16-40mm screw spacing and also 24-29mm 3 screw mount

 ![IMG_20230316_233233](https://community.simplefoc.com/uploads/default/original/2X/e/e4fc11d4f5fa7ad2872813829593cda8c5aaa73f.jpeg)  
 ![IMG_20230316_233207](https://community.simplefoc.com/uploads/default/original/2X/d/de6d6130e0c9372a81f01f15235108dfd337ef37.jpeg)

 ![image](https://community.simplefoc.com/uploads/default/original/2X/d/d26c818e460ebf9a3c2a5f753a6d0bce7df60585.png)  
 ![image](https://community.simplefoc.com/uploads/default/original/2X/7/78b442f4010856d2218710dfa6bb875ea25673ba.jpeg)

---

<div class="post-metadata">

### Author: ![Karl\_Makes\_Music](https://community.simplefoc.com/user_avatar/community.simplefoc.com/karl_makes_music/32/1882_2.png) [@Karl\_Makes\_Music](https://community.simplefoc.com/u/Karl_Makes_Music)
#### Post date: [March 16, 2023, 11:05pm UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/26 "2023-03-16T23:05:37Z")

</div>

I guess point I’m trying to make here is that the solution is of similar or exact form factor as some sensor boards. Yes maybe bigger than most of sensors hehe.

But you’d have low power AIO solution without cable mess, finding perfect sensor and driver, power issues or short supply wires. It’s USB powered but can be powered via VIN/GND headers (5-6V max as LDO cant handle more). It’s rated at 3A VIN max although i only had 2A Shottky available.  
Also it has UART, I2C and Plenty of GPIO if you want to connect screen or other auxilary stuff.  
It has 4MB Flash and 2MB PSRAM.

Idea behind it was for someone who want to jump into SimpleFOC projects but doesnt have Bench PSU, Solder iron, Hotair etc. can just hook up small gimbal or ptz motor and get to coding without hassle.

Yes i of course encourage getting to know theory and getting hands dirty, however a lot of people just want relatively cheap, comprehensive and hassle free solution.

 ![IMG_20230317_001024](https://community.simplefoc.com/uploads/default/original/2X/b/b6007a0c0ed4110344a3779f2b343e8706f0ada5.jpeg)

---

<div class="post-metadata">

### Author: ![VIPQualityPost](https://community.simplefoc.com/user_avatar/community.simplefoc.com/vipqualitypost/32/4420_2.png) [@VIPQualityPost](https://community.simplefoc.com/u/VIPQualityPost)
#### Post date: [March 17, 2023, 12:03am UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/27 "2023-03-17T00:03:21Z")

</div>

That’s pretty brilliant solution for the motor mount spacing!  
I also see the value in AIO board, which is why I have been working on mine (not done yet obviously) 🙂

 ![Screenshot 2023-03-16 at 8.01.23 PM](https://community.simplefoc.com/uploads/default/original/2X/a/a9ce641bd8e00e657d6e4dc5b283832a29d9eac6.png)  
I’m thinking to move to 40mm base and add a buck to feed the LDO since this discrete driver can take higher voltage.

---

<div class="post-metadata">

### Author: ![VIPQualityPost](https://community.simplefoc.com/user_avatar/community.simplefoc.com/vipqualitypost/32/4420_2.png) [@VIPQualityPost](https://community.simplefoc.com/u/VIPQualityPost)
#### Post date: [March 21, 2023, 3:48am UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/28 "2023-03-21T03:48:40Z")

</div>

I did it!  
Well, maybe not entirely…

> [@VIPQualityPost](#):
>
> - design can be flashed over USB, with virtual com port
> - can be fully assembled by LCSC (trying to avoid using tmc6300 since that requires hand assembly, but I haven’t found a replacement for all-in-one IC like that yet, so for now I’m going with discrete mosfets
> - priced under $10 per board (also why for now, we stay with STM32, I am trying just to only use basic components)
> - SPI, ABZ magnetic encoder (originally I was just using SPI, but I want the hardware interrupts from ABZ mode, which is why for now I choose STM32 since hw interrupts on rp2040 are not supported yet)
> - maybe current sensing, it does not matter much for these small motors I think but I am still curious to play with it
> - needs to be able to power entirely off USB 2.0 spec (500mA)
> - accessible UART, SPI, I2C, SWD

OK, I was not able to get SPI or I2C exposed externally, but this can be for the next revision. I will probably focus on CAN instead because I want all of these to hang out on one bus.  
Additionally, I did not end up using SPI/SSI for the magnetic sensor MT6701. ~~I tried to make some hacky configuration so that you can enable I2C bus to configure the chip, read registers if you like and maybe data, then disable the bus in order to use ABZ outputs. The chip is QFN16 but they only use 12 pins. I wish they would have put the serial ports on the unused pins so you can natively have both ABZ and SPI/SSI/I2C~~ I am a big dummy. I didn’t think about using -A/-B/-Z in conjunction with the serial interface. To be fair they don’t really cover this in the datasheet (I assume the signal is just inverted?). Also, I don’t have pulldown for “mode” pin when serial is not enabled so I need some bodge wires. Current sensing is built into the PCB but I did not opt to place the current amplifier because I don’t really have a use for this with my current projects, I think. The current sense resistors share a footprint with solder jumper underneath so if you don’t want current sense, you can just solder jumper this and skip populating 1206 sense resistor + LT199G1 amplifier, it saves a couple of bucks. I should have got it placed anyway but I can’t cancel the order now. I don’t think anyone has used this chip yet for current sensing and it is a nice cheap bidirectional current shunt amp.

The motor voltage can be up to 12V but to stick with only LCSC basic components, the large 100uF buffer capacitor are only spec to 6.3V, this should only be used on USB 5V or other low voltage supply. If you build the board yourself you can choose just use better capacitors but the cost will go up.

I did get a board that is 2 layer, top side only assembly, with all these features for \< $10 USD per board (including both manufacturing and assembly), which I am really happy about. I am a bit sad about how the component layout is, I wish the third driver chip can be aligned more symmetrically, but it’s OK for this first rev, I think. My board only comes in at 38x38mm, so marginally larger than @Karl_Makes_Music. I just placed the order, so we will see how it comes out.

 ![Screenshot 2023-03-20 at 10.04.07 PM](https://community.simplefoc.com/uploads/default/original/2X/4/4593159c7c08804c96842a6f1b0864200c8bedc2.jpeg)

edit: oops!!! forgot to change the silkscreen to reflect the encoder is not mt6835 anymore but mt6701…

> **[GitHub - VIPQualityPost/easy-esc-stm32f103-mt6701-ncp81155: small, closed loop...](https://github.com/VIPQualityPost/easy-esc-stm32f103-mt6701-ncp81155/tree/main)**
>
> main

---

<div class="post-metadata">

### Author: ![Karl\_Makes\_Music](https://community.simplefoc.com/user_avatar/community.simplefoc.com/karl_makes_music/32/1882_2.png) [@Karl\_Makes\_Music](https://community.simplefoc.com/u/Karl_Makes_Music)
#### Post date: [March 21, 2023, 9:46am UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/29 "2023-03-21T09:46:52Z")

</div>

Hey! Simply great board! I really like layout and I wouldn’t be too bothered by asymmetric layout.

My first remark is that rule of thumb is caps being double the nominal voltage value, so that 100uF bulk cap at 6.3 should be at least 10 but better 16V.

I also can’t see any TVS on D+/D- on preview

---

<div class="post-metadata">

### Author: ![VIPQualityPost](https://community.simplefoc.com/user_avatar/community.simplefoc.com/vipqualitypost/32/4420_2.png) [@VIPQualityPost](https://community.simplefoc.com/u/VIPQualityPost)
#### Post date: [March 21, 2023, 1:52pm UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/30 "2023-03-21T13:52:09Z")

</div>

> [@Karl\_Makes\_Music](#):
>
> double the nominal voltage value

yea, I know this should be, I might end up installing a higher rating later. I think 6.3V is already 25% headroom but maybe for inductive loads this is not enough. Mostly I was thinking that USB5V is already pretty clean and without any large motor current there shouldn’t be any large noise/ripple developed onto the main supply. We will see!

> [@Karl\_Makes\_Music](#):
>
> TVS on D+/D-

To be honest, I never include this in my hobby projects, but I recognize it should be there. I guess I can make room for the footprint anyway 🙂

---

<div class="post-metadata">

### Author: ![Karl\_Makes\_Music](https://community.simplefoc.com/user_avatar/community.simplefoc.com/karl_makes_music/32/1882_2.png) [@Karl\_Makes\_Music](https://community.simplefoc.com/u/Karl_Makes_Music)
#### Post date: [March 21, 2023, 2:15pm UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/31 "2023-03-21T14:15:27Z")

</div>

[https://eu.mouser.com/ProductDetail/onsemi/NUF2042XV6T1G?qs=ZXBb0xZ9WeAV3XcAwewBSw%3D%3D&countryCode=DE&currencyCode=EUR](https://eu.mouser.com/ProductDetail/onsemi/NUF2042XV6T1G?qs=ZXBb0xZ9WeAV3XcAwewBSw%3D%3D&countryCode=DE&currencyCode=EUR)

Have look at this.  
BOM about 35cents

This would save you putting these 4.7p caps and resistors on data lines as they are built into tvs

---

<div class="post-metadata">

### Author: ![VIPQualityPost](https://community.simplefoc.com/user_avatar/community.simplefoc.com/vipqualitypost/32/4420_2.png) [@VIPQualityPost](https://community.simplefoc.com/u/VIPQualityPost)
#### Post date: [March 21, 2023, 2:28pm UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/32 "2023-03-21T14:28:51Z")

</div>

Nice! I didn’t know about this type of chip. It’s awesome they include all those features in such a small package size.

---

<div class="post-metadata">

### Author: ![Karl\_Makes\_Music](https://community.simplefoc.com/user_avatar/community.simplefoc.com/karl_makes_music/32/1882_2.png) [@Karl\_Makes\_Music](https://community.simplefoc.com/u/Karl_Makes_Music)
#### Post date: [March 21, 2023, 3:08pm UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/33 "2023-03-21T15:08:24Z")

</div>

Exactly. Something to think of for your next revision.  
Worth to check if LCSC has budget equivalent of this chip

---

<div class="post-metadata">

### Author: ![VIPQualityPost](https://community.simplefoc.com/user_avatar/community.simplefoc.com/vipqualitypost/32/4420_2.png) [@VIPQualityPost](https://community.simplefoc.com/u/VIPQualityPost)
#### Post date: [March 21, 2023, 3:11pm UTC](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868/34 "2023-03-21T15:11:06Z")

</div>

Yes, I’m looking now. They have a bunch of ESD parts but I have yet to find one with termination components too. LCSC lookup is such garbage, I find myself just digging through pages with vague searches because if you are specific nothing will show up 🥲

[Previous page](https://community.simplefoc.com/t/looking-for-usb-powered-low-power-bldc-driver/1868.md?page=1)
