Search found 119 matches

by nailgg
Tue Feb 16, 2021 10:56 pm
Forum: Inverters / Motor Controllers
Topic: Calculating idc from FOC quantities
Replies: 8
Views: 1678

Re: Calculating idc from FOC quantities

Not a guru, but the factor of 1.5 comes from the power-invariancy or amplitude-invariancy stuff. Detailed explanation can be found here: https://e2e.ti.com/support/microcontrollers/c2000/f/171/p/286510/1000558#1000558 In your code you're using power-invariant form of the Clarke Transformation, so th...
by nailgg
Sat Dec 19, 2020 11:18 pm
Forum: Inverters / Motor Controllers
Topic: Several questions about firmware
Replies: 11
Views: 2642

Re: Several questions about firmware

Installing the complete toolchain with debug, flash etc. support on Windows with a proper IDE needs some effort. I created a how-to for myself, might convert it to a wiki some day :) Hey Nailgg any progress on that how-to ?? Sorry for the late reply, unfortunately no. I couldn't keep up with the co...
by nailgg
Mon Mar 23, 2020 9:54 pm
Forum: Inverters / Motor Controllers
Topic: Recurrent OC issue while driving [SOLVED]
Replies: 17
Views: 4547

Re: Recurrent OC issue while driving [SOLVED]

My fw is based on version 4.18R but I have too many custom changes for my particular setup and it might not work well for you. Still attaching the bin/hex files but try it at your own risk! Instead of -1/0/+1 on the reverse/neutral/forward direction I also have implemented a "parking brake"...
by nailgg
Sun Mar 22, 2020 6:12 pm
Forum: Inverters / Motor Controllers
Topic: Recurrent OC issue while driving [SOLVED]
Replies: 17
Views: 4547

Re: Recurrent OC issue while driving [SOLVED]

Sometimes very short spikes cannot be monitored by CAN or UART. While working on the issue, I added a spot value called "maxspd" which keeps the highest RPM the encoder ever read since the inverter power up. Changed the code a bit, like below: It would be nice to have the same on "ma...
by nailgg
Wed Jan 08, 2020 10:38 am
Forum: Inverters / Motor Controllers
Topic: Recurrent OC issue while driving [SOLVED]
Replies: 17
Views: 4547

Re: Recurrent OC issue while driving [SOLVED]

Yes, but my sensor is totaly enclosed and is automotive inductive sensor. This should mean it gets funny ticks only after signal enters the main board. I also remember i put a diode from reverse pin towards reverse switch to keep reverse light from activating if i intentionaly activate BMS pin. Cou...
by nailgg
Tue Jan 07, 2020 10:58 pm
Forum: Inverters / Motor Controllers
Topic: Recurrent OC issue while driving [SOLVED]
Replies: 17
Views: 4547

Re: Recurrent OC issue while driving [SOLVED]

Can you monitor the speed with a data logger? Is there any spike? I had a similar issue too. Nothing was happening at high RPMs, even at full throttle. But it was tripping at very low speeds. Later I found that it was my encoder (US Digital E6-512-984-NE-S-D-D-B). Inside the encoder, there is a nylo...
by nailgg
Fri Sep 13, 2019 8:17 pm
Forum: Inverters / Motor Controllers
Topic: Inverter Firmware v4.53.R
Replies: 10
Views: 2080

Re: Inverter Firmware v4.53.R

Hi J did you implement some PI softening of throttle zero transition because i still feel quite a surge when i quickly release throttle through 0 and then press it back to positive torque. Late response (been away for a while, back now) I also feel the same behavior. When the throttle is near the z...
by nailgg
Sat Aug 24, 2019 6:14 pm
Forum: Inverters / Motor Controllers
Topic: Serial Link not starting? [SOLVED]
Replies: 33
Views: 7550

Re: Serial Link not starting? [SOLVED]

If you have an Arduino Uno, you can remove the ATMEL chip from the board and connect the RX/TX/GND lines to it, and use it's usb port as a usb/serial adapter. Just a suggestion if you already have it, it's pretty common.
by nailgg
Thu Aug 22, 2019 2:15 pm
Forum: Inverters / Motor Controllers
Topic: Serial Link not starting? [SOLVED]
Replies: 33
Views: 7550

Re: Serial Link not starting? [SOLVED]

If the inverter is echoing back different characters, the baud rate might be incorrect but you said you already tried 115200 with 2 stop bits. Have you connected the ground of your PC with the inverter ground? Also if your USB to Serial Converter has +5V/GND/RX/TX pins make sure you have +5V unconne...
by nailgg
Wed Jul 24, 2019 12:22 am
Forum: Battery Managment (BMS)
Topic: 4-channel BMS with daisychain bus
Replies: 230
Views: 65307

Re: 4-channel BMS with daisychain bus

Teknomadix wrote: Tue Jul 23, 2019 9:27 pm Also. Would like to suggest officially naming this the "Heubner BMS" 8-)
Johannes is probably too kind to do this, but I feel compelled to correct this before you have hundreds of them manufactured: It's "Huebner" not "Heubner" :)
by nailgg
Wed Jul 10, 2019 8:46 pm
Forum: General
Topic: Forum structure
Replies: 15
Views: 3053

Re: Forum structure

Suggestion: I think it would be nice if we had a like, love, thanks etc. reaction buttons under the posts. Just saw some addons on the phpBB community adding this feature, but unfortunately I couldn't find a working demo. EDIT: Just found a demo, but in French :) http://www.ezcom-fr.com/viewtopic.ph...
by nailgg
Wed Jul 10, 2019 8:06 pm
Forum: Inverters / Motor Controllers
Topic: Testing FOC for synchronous motor
Replies: 179
Views: 32823

Re: Testing FOC for synchronous motor

Finally! The first test drive with some serious power. At least more serious than anything so far. What was the problem? The motor is spinning backwards, as indicated by "angle" running from 360 to 0°. And that means we need NEGATIVE iq reference! Now I can spin to 4000rpm without trippin...
by nailgg
Mon Jul 08, 2019 9:03 pm
Forum: Inverters / Motor Controllers
Topic: Independent CAN BUS transmitt on V2 board [SOLVED]
Replies: 11
Views: 3703

Re: Independent CAN BUS transmitt on V2 board [SOLVED]

can tx opmode 468 0 8 160 can tx opmode 468 1 8 178 why the 8? If this is two byte message shouldnt i use 2 instead? can tx opmode 468 0 8 160 can tx opmode 468 8 8 178 can tx PARAMETER CANID START_BIT LENGTH GAIN With the first line, you define a signal of 8-bit length that starts from the bit 0. ...
by nailgg
Sun Jul 07, 2019 8:55 pm
Forum: Inverters / Motor Controllers
Topic: Testing FOC for synchronous motor
Replies: 179
Views: 32823

Re: Testing FOC for synchronous motor

Also when I set iqref to a positive value it reads a negative value :? It looks different when I put the car into gear and put the hand brake on. Then the commanded id and iq values are hit spot-on. Its only when the thing starts moving that things go weird. Anyone? Welcome back :) So if it works n...
by nailgg
Thu Jul 04, 2019 1:21 pm
Forum: Inverters / Motor Controllers
Topic: Independent CAN BUS transmitt on V2 board [SOLVED]
Replies: 11
Views: 3703

Re: Independent CAN BUS transmitt on V2 board [SOLVED]

Hmm. That sounds like a nice little hack. So your message is 0xA0 0xB2 which is 41138 in decimal. Maybe you can send din_forward or even better opmode with 41138 gain. Might be worth trying.

Code: Select all

can tx opmode 468 0 16 41138
by nailgg
Wed Jul 03, 2019 7:53 pm
Forum: Inverters / Motor Controllers
Topic: Independent CAN BUS transmitt on V2 board [SOLVED]
Replies: 11
Views: 3703

Re: Independent CAN BUS transmitt on V2 board [SOLVED]

With the current software you can only send the existing parameters like udc, speed etc. The software needs to be modified in order to be able to define arbitrary messages through the web interface (or console) other than the existing parameters. Maybe Johannes or someone else could implement sendin...
by nailgg
Wed Jul 03, 2019 6:18 pm
Forum: Inverters / Motor Controllers
Topic: Independent CAN BUS transmitt on V2 board [SOLVED]
Replies: 11
Views: 3703

Re: Independent CAN BUS transmitt on V2 board [SOLVED]

This could easily be done with some minor software modification, by placing the lines below at the end of the Ms10Task in stm32_sine.cpp. But this would send your message in every 10ms of course. static void Ms10Task(void) { ... if (MOD_RUN == opmode) { uint32_t myCanData[2] = { 0xA0B20000, 0x000000...
by nailgg
Tue Jul 02, 2019 6:20 pm
Forum: Tesla
Topic: Antispinn system
Replies: 7
Views: 1677

Re: Antispinn system

The Zero-EV system runs all within the inverter control board. So they are probably using a secondary processor on their control board for sensing the wheel speed. Maybe something that acts as a man-in-the-middle between the throttle input and the main inverter mcu. I think they don't like to share...
by nailgg
Tue Jun 25, 2019 11:00 am
Forum: Inverters / Motor Controllers
Topic: Erratic Speed Measurements [SOLVED]
Replies: 40
Views: 8337

Re: Erratic Speed Measurements [SOLVED]

Please don't get me wrong, I don't know what power are you expecting out of your inverter but at powers around 50kW+ you'll probably have serious issues with those bus bars :(
by nailgg
Tue Jun 25, 2019 10:57 am
Forum: Nissan
Topic: Current limit error
Replies: 13
Views: 2814

Re: Current limit error

Oh that makes sense. Johannes is also encountering a similar "trip out" issue on his Leaf motor, so he was working on implementing FOC for faster current regulation, here (not finished yet): viewtopic.php?f=7&t=153&start=20
by nailgg
Tue Jun 18, 2019 10:36 pm
Forum: Nissan
Topic: Current limit error
Replies: 13
Views: 2814

Re: Current limit error

take the inverter out but it's not as bad as i expected. I measured 1.5 V on pin 5,7,8,10. EDIT: With no current flowing through. Yes, 3.3k/4.7k gives you 1.5V, my mistake. Looked at pins 6/4 and 11/9 and the voltage went up as i took ocurlim param down from 2000A to 400A Actually as you lower the ...
by nailgg
Mon Jun 17, 2019 7:19 pm
Forum: Nissan
Topic: Current limit error
Replies: 13
Views: 2814

Re: Current limit error

I would do some hardware debugging to find where the issue is. First see the main board schematic here: https://github.com/jsphuebner/inverter-hardware/blob/master/mainboardv1.1.pdf You have a LM2901 voltage comparator for over current protection on your main board. When the voltage on ADC5>PB7 or A...
by nailgg
Thu Jun 06, 2019 11:59 pm
Forum: Nissan
Topic: Current limit error
Replies: 13
Views: 2814

Re: Current limit error

If the ocurlim is set to 600, then the issue must be arising from something else than a real over current. Especially if you aren't enabling the forward/reverse switches. I'm not sure about the Leaf hardware as I haven't used it before, but the error inputs are OR'ed on the main board, so the softwa...
by nailgg
Thu Jun 06, 2019 7:45 pm
Forum: Nissan
Topic: Current limit error
Replies: 13
Views: 2814

Re: Current limit error

Are you getting the same error when there is no actual voltage at the DC bus, i.e. when batteries are not connected? What is the current ocurlim, il1gain and il2gain values? Have you calibrated your sensors and set ocurlim properly? There shouldn't be a current spike when the main contactor closes. ...
by nailgg
Mon Jun 03, 2019 2:22 pm
Forum: Inverters / Motor Controllers
Topic: Testing FOC for synchronous motor
Replies: 179
Views: 32823

Re: Testing FOC for synchronous motor

Adding more ki eventually leads to the motor spinning even with 0 id and iq commanded. I guess thats down to the remaining offset of the sensors. Yes, probably. Maybe you can remember I tried to achieve zero current offset here: https://openinverter.org/forum/viewtopic.php?p=416#p416 When the inver...