Hey guys, I’m happy you like it! @hbozyq, no sensorless yet.
You have all you need to implment it though, but it is not supported off-the-shelf in the SimpleFOClibrary
I’m using vesc boards which are drv8302 based. I suspect we’ll see someone trying low side on a similar driver in the next few months. @David_Gonzalez, are your dagor boards low side? Is there any low side code say on a forked repo?
@Marc_O, oops yes! I still haven’t looked at this properly! How hard do you thing it would be to integrate it using same extension points of inline current sensing that @Antun_Skuric added in simplefoc 2.1 ?
Hi @Owen_Williams,
In fact, I think we have no choice to synchronize the current reading for the low side shunt.
As you know, it is therefore specific to each microcontroller that you use. So, I think @Antun_Skuric will have to create a folder “current drivers” like he did for the specific PWM drivers, and specific at each microcontroller (So, a lot of work to do )
Here for the STM32, the idea that I used finally is to use TIM2 to synchronize instead of the TIM8 that can be using for another motor control way in the same time, and that perfectly works as I have shown in your link : “VESC Support - 1kW of Power!”, because I got 9000rpm with a 600W motor with my electronic board.
Yep the hardware specific folder will take in consideration all the mcu specific code. At this point the implementation is very simple. But it is going to become more complicated.
The general architecture is in place, we have the CurrentSense class that needs to be extended to implement the current sensing class. I’ve implemented the inline for now in the InlineCurrentSense class. But the idea here is to have LowsideCurrentSense.and maybe HighsideCurrentSense implelentation as well here. At this point we are not actively working on it, as for the last few weeks we did not have too much simplefoc free time
But the low-side current sensing is the no.1 next feature of the SimpleFOClibrary right above making the SimpleFOCStudio work with v2.1.
Nice.
low-side current sensing is MUCH cheaper.
A 4ch general opamp within half a buck is enough for 3 phases.
And ina240 is 3 buck per chip.
I will make a ALL-IN-ONE driver board once it is releasted.