Apologies in advance, I'm still new to electronics and am probably missing something simple.
I'm working on a custom VESC-based piece of hardware but am running into an issue where the motor won't start. I've hacked up a Toyota Prius Inverter and got it connected to an STM32. The IGBT's are switching properly I'm able to connect with the VESC tool and such, and when attempting to run the motor in BLDC mode it cogs once a second, though it never actually starts. When rotating the rotor by hand the duty cycle goes up, however the RPM stays at zero. The "Sampled Data" page (taken when rotating shaft by hand) is showing some odd voltage readings, which I've attached below. It seems the negative swing of the waveform is getting truncated? This is where I'm honestly not sure what I'm doing.
Something I'm very confused about: I'm not sure what the STM32 is referencing each phase voltage against on both my hardware and the official VESC.
I understand that this is getting outside the scope of VESC support and more electronics support but I'd still appreciate any help I can get.
I should note that my current sensors aren't working right now, so current is reading as just zero. Not sure if that has any effect, but from what I understand it shouldn't matter in BLDC mode (though admittidely I understand very little here).
Some notes about the Prius Inverter, for those who are interested:
Why a Prius Inverter?
It has two 'motor controllers' (IGBTs, current sensors, temp sensors, etc). IE, you can control two motors with one physical unit.
It has a built in boost converter to boost battery voltage higher for the motors.
Each 'motor controller' can handle a ton of current. MG1 can handle 250 amps, MG2 can handle 350, constant.
It's split into two PCBs, the Logic PCB and the Power PCB. Replacing the Logic with your own as I've done is simple, so it's quite hackable.
They're everywhere and very cheap. Got mine for $50 at the local junk yard.
It's liquid cooled, so you can go pretty crazy as long as you keep it cool.
What's up with your logic replacement?
I whipped up a PCB in KiCad and had JLCPCB send some assembled boards to me. This is my second PCB ever so it's probably trash, but hey, the things sorta working.
Open source the boards?
Yeah, of couse. Once I get this stuff working I'd be glad to put all this up on github. Just don't drag me for how little I know about electronics/designing PCBs :(
What are you using this for?
I'm trying to build an electric go kart using some QS Motor 5000w hub motors. I don't like the Kelly controllers they came with so I figured I'd go a bit outside of my comfort zone and try something new.
Thanks in advance!