Search found 1801 matches

by Pete9008
Sat Jul 22, 2023 8:47 am
Forum: Inverters / Motor Controllers
Topic: My Car tried to Kill me today (1973 Beetle +SDU Conversion), Potential Cruise Control Bug ?
Replies: 114
Views: 23788

Re: My Car tried to Kill me today (1973 Beetle +SDU Conversion), Potential Cruise Control Bug ?

I would suggest that as an absolute minimum: All safety critical parameters are excluded from being can mappable. New fixed messages (possibly with just the id being configurable) are added for each safety critical parameter that needs to be transferred, each using the approaches detailed in uhi's p...
by Pete9008
Thu Jul 20, 2023 9:03 pm
Forum: Inverters / Motor Controllers
Topic: My Car tried to Kill me today (1973 Beetle +SDU Conversion), Potential Cruise Control Bug ?
Replies: 114
Views: 23788

Re: My Car tried to Kill me today (1973 Beetle +SDU Conversion), Potential Cruise Control Bug ?

For the safety relevant CAN messages, there are better methods in the field than just timeouts. They cover also situations where the sender is just repeating the same message again and again, and also cases when an other sender is sending garbage on a wrong ID which matches the critical ID. The con...
by Pete9008
Thu Jul 20, 2023 7:56 pm
Forum: Inverters / Motor Controllers
Topic: My Car tried to Kill me today (1973 Beetle +SDU Conversion), Potential Cruise Control Bug ?
Replies: 114
Views: 23788

Re: My Car tried to Kill me today (1973 Beetle +SDU Conversion), Potential Cruise Control Bug ?

Right, I've taken a few deep breaths and calmed down a little. That's not how CAN should be done, every critical message must have a dedicated timeout, throttle and brake in particular.

If you need any help putting a fix together let me know, don't want to tread on toes but this needs sorting!
by Pete9008
Thu Jul 20, 2023 7:29 pm
Forum: Inverters / Motor Controllers
Topic: My Car tried to Kill me today (1973 Beetle +SDU Conversion), Potential Cruise Control Bug ?
Replies: 114
Views: 23788

Re: My Car tried to Kill me today (1973 Beetle +SDU Conversion), Potential Cruise Control Bug ?

Did I read that right, is there currently no throttle specific timeout, will any received CAN message keep it live? :shock:

Edit - just checked the code and you're right! I'm lost for words!
by Pete9008
Thu Jul 20, 2023 10:13 am
Forum: Nissan
Topic: Leaf Gen2 DC Voltage Sense
Replies: 4
Views: 3289

Re: Leaf Gen2 DC Voltage Sense

Is the UDC measurement only used for those limits or is it used for more direct motor control stuff? If it is used for motor control stuff then it would make sense to me to have it as accurate as possible across the full range. Or maybe it doesn't matter much? One of the reasons I did this was to g...
by Pete9008
Thu Jul 20, 2023 9:57 am
Forum: Projects
Topic: [WIP] L322 RR Vogue - The beached whale
Replies: 127
Views: 142147

Re: L322 RR Vogue - The beached whale

Looking good, really like the attention to detail going into this build :)

How did you get on with the bms, were you able to repair that pcb trace?
by Pete9008
Thu Jul 20, 2023 9:55 am
Forum: Mitsubishi
Topic: kitcar conversion
Replies: 2
Views: 3343

Re: kitcar conversion

One thing to bear in mind is that the PHEV motor has a fixed ratio gearbox and so its top speed may be a bit limited. Not a problem if it's for road use but if you plan to use it on track at all it may be an issue?
by Pete9008
Thu Jul 20, 2023 9:52 am
Forum: Classifieds
Topic: Various Batteries (Tesla, BMW), and other parts
Replies: 28
Views: 7943

Re: Various parts, Batteries, chargers, inverters

Sorry I’ve been away, here’s a photo, part number G9200-47140 - comes with the wiring harness plug too Thanks for the picture, afraid I'm going to leave it though. The one I've already got is a G9200-47230 (slightly later model with different pcbs inside) and I'm really looking for another the same.
by Pete9008
Tue Jul 18, 2023 7:39 am
Forum: Inverters / Motor Controllers
Topic: Measuring IPM Motor Parameters from Plots
Replies: 37
Views: 12752

Re: Measuring IPM Motor Parameters from Plots

Looks good, that's a pretty high value for flux linkage which explains why the motor doesn't like to spin too fast. It should make good torque but it's going to need a lot of field weakening current! Not 100% sure about the spikes but think it's due to the flux moving up the B/H curve, not quite sat...
by Pete9008
Mon Jul 17, 2023 9:55 am
Forum: Vehicle Control (VCU)
Topic: Trouble contributing to Stm32-vcu
Replies: 11
Views: 5261

Re: Trouble contributing to Stm32-vcu

Agree with ArdianB, I've been doing this kind of stuff for years and still found the OI stuff a fairly steep learning curve. When using stlink you can either use a .hex or the .bin file. If you use the .bin you have to manually specify the load address, otherwise it could be programmed into the wron...
by Pete9008
Sun Jul 16, 2023 8:39 pm
Forum: Inverters / Motor Controllers
Topic: IPM Motor - Auto-setup
Replies: 163
Views: 15211

Re: IPM Motor - Auto-setup

Ignore me re the pwm values, forgot that they are not available as params. Haven't added logging to manual mode yet (seemed to be asking for trouble adding the extra complexity at the same time), probably ought to though! Do you have a working logging setup now? A problem with the offset calibration...
by Pete9008
Sun Jul 16, 2023 8:14 pm
Forum: Tesla
Topic: Persistent OVERCURRENT error after installing SDU V8 board w/new sensors
Replies: 22
Views: 2108

Re: Persistent OVERCURRENT error after installing SDU V8 board w/new sensors

nubster wrote: Sun Jul 16, 2023 7:53 pm I see. I must have misunderstood the reply in my other post. I will give these a shot. Thank you!!
Oops, sorry, the ones I described in that post are the overall default parameters in the OI code but not the specific parameter defaults for the SDU :(
by Pete9008
Sun Jul 16, 2023 7:53 pm
Forum: Inverters / Motor Controllers
Topic: IPM Motor - Auto-setup
Replies: 163
Views: 15211

Re: IPM Motor - Auto-setup

One final thought for today. There is one difference between the normal run mode code and mine, because mine is running in manual mode the ADC offset routine may not have run so I run it at the start of the first test. This shouldn't make any difference but if it isn't working right it could cause t...
by Pete9008
Sun Jul 16, 2023 7:37 pm
Forum: Projects
Topic: [WIP] L322 RR Vogue - The beached whale
Replies: 127
Views: 142147

Re: L322 RR Vogue - The beached whale

Having seen your fabrication and CAD skills I shouldn't be surprised :) Looks like a superb bit of kit!

Thanks for the offer of the DXFs, may take you up on it in the future but going to have a look for something pre-assembled first.
by Pete9008
Sun Jul 16, 2023 7:17 pm
Forum: Inverters / Motor Controllers
Topic: IPM Motor - Auto-setup
Replies: 163
Views: 15211

Re: IPM Motor - Auto-setup

I clipped the ground to the phases and poke the probe to the negative :D Makes sense :) There is definitely something not right there. On the bidir plot you posted the motor is just oscillating between around -10 and +50degrees rather than doing a full rotation and in the video it's so uneven in pl...
by Pete9008
Sun Jul 16, 2023 6:39 pm
Forum: Projects
Topic: [WIP] L322 RR Vogue - The beached whale
Replies: 127
Views: 142147

Re: L322 RR Vogue - The beached whale

Looking good :)

If you don't mind me asking - where did you get your welding table, was it in kit form or pre-assembled and would you recommend the supplier?
by Pete9008
Sun Jul 16, 2023 6:37 pm
Forum: Inverters / Motor Controllers
Topic: IPM Motor - Auto-setup
Replies: 163
Views: 15211

Re: IPM Motor - Auto-setup

Can't fault those waveforms (why are they negative though if measured relative to HV gnd?), all the IGBT's appear to be working fine. I'm out of ideas again. Can't quite tell in the video, was the spin with the sin software much smoother? They should be virtually equivalent, both should apply the sa...
by Pete9008
Sun Jul 16, 2023 5:58 pm
Forum: Inverters / Motor Controllers
Topic: IPM Motor - Auto-setup
Replies: 163
Views: 15211

Re: IPM Motor - Auto-setup

Something just doesn't look right there, it's never going to be perfectly smooth but it should be a lot better than that (it appears to be going in the wrong direction sometimes!). It's almost like it's missing a phase (or half a phase maybe, just 1 IGBT)? Is it worth checking the winding resistance...
by Pete9008
Sun Jul 16, 2023 5:09 pm
Forum: Inverters / Motor Controllers
Topic: IPM Motor - Auto-setup
Replies: 163
Views: 15211

Re: IPM Motor - Auto-setup

It still doesn't seem to be following the field correctly :( What does it do on a forward spin now? (until that spins reliably there's not much point in trying to find syncofs) Have you checked the phase resistances, is it possible that there is a problem with the motor? Edit - not sure why the aver...
by Pete9008
Sun Jul 16, 2023 4:25 pm
Forum: Inverters / Motor Controllers
Topic: IPM Motor - Auto-setup
Replies: 163
Views: 15211

Re: IPM Motor - Auto-setup

Been thinking about how to setup the controller gains when first setting up a new motor and have come up with this: StartingGains.png The idea is that you use the inductance value that the phase check test gives and the voltage you are running at to look up the values to use for kp and ki. For examp...
by Pete9008
Sun Jul 16, 2023 9:01 am
Forum: Projects
Topic: [DRIVING] Project RX8 , Prius gen2, Lexus transaxle to rwd
Replies: 298
Views: 41295

Re: Project RX8 , Prius gen2, Lexus transaxle to rwd

Either way still an impressive achievement :-)

How's it running with the extra volts?
by Pete9008
Sun Jul 16, 2023 8:58 am
Forum: Inverters / Motor Controllers
Topic: IPM Motor - Auto-setup
Replies: 163
Views: 15211

Re: IPM Motor - Auto-setup

Ev8 wrote: Sun Jul 16, 2023 8:56 am Hi Pete did you update the bin for this on your GitHub? Just realised I can test it on mg1 if I put mg2 in run mode (only mg2 control board controls the contactors)
Good point!

Didn't check but it should have pulled the new one across.

Edit - just checked and latest files are on there.
by Pete9008
Sun Jul 16, 2023 8:56 am
Forum: Projects
Topic: [DRIVING] Project RX8 , Prius gen2, Lexus transaxle to rwd
Replies: 298
Views: 41295

Re: Project RX8 , Prius gen2, Lexus transaxle to rwd

Great result :)

How on earth did you manage it, the rx8 engine isn't that heavy to start with and you now have two motors and a fair number of cells in there now?