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.
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.
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…
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 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.