Search found 835 matches

by bexander
Tue Oct 31, 2023 11:33 am
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

I can't find anything obviuos at the moment so I have turned on the print out of all received data from readAllSlaves. Please run this and post the print outs. Will be a lot of data...
BMS2_7_3_EDITED_3.ino
(47.38 KiB) Downloaded 52 times
by bexander
Mon Oct 30, 2023 7:06 pm
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

Yes, the die temp is on the far right.
Don't know at the moment what is going on with the 8th cell. Will have to wait until tomorrow to look into it further.
by bexander
Mon Oct 30, 2023 3:15 pm
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

Try this:
BMS2_7_3_EDITED_3.ino
(47.39 KiB) Downloaded 61 times
by bexander
Mon Oct 30, 2023 2:17 pm
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

Hey guys, I am having a storage pack with Peugeot modules that also use MAX 17841 https://openinverter.org/forum/viewtopic.php?p=62076#p62076 Are you using Arduino Nano or ESP 32 for controller? I have an Arduino working but I have problem moving to ESP32. My problem with Arduino is that the RAM me...
by bexander
Mon Oct 30, 2023 4:14 am
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

I think the cells are connected in the same manner as the PHEV-bms, i.e. pos 1-4 and 6-9 and not pos 1-8 for each chip.
That means you need to roll back some of the early changes.
by bexander
Sun Oct 29, 2023 4:24 pm
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

Found a typo...
BMS2_7_3_EDITED_2.ino
(46.67 KiB) Downloaded 51 times
by bexander
Sun Oct 29, 2023 3:30 pm
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

Check now
BMS2_7_3_EDITED_2.ino
(46.67 KiB) Downloaded 46 times
by bexander
Sun Oct 29, 2023 2:28 pm
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

Try with this:
BMS2_7_3_EDITED_2.ino
(46.67 KiB) Downloaded 43 times
by bexander
Sun Oct 29, 2023 6:41 am
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

There is also a lot of other places that need to be changed, I realize.
Post your latest code and I will make some changes to it and post it back.
by bexander
Sun Oct 29, 2023 6:33 am
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

In writeAllSlaves() there is an error in your code:

Code: Select all

// Check alive-counter
		if(!(readRegisterData[5] == 0x0))
		{
			errorByte |= mismatchAfter;
		}
Should be:

Code: Select all

// Check alive-counter
		if(!(readRegisterData[5] == 0x08))
		{
			errorByte |= mismatchAfter;
		}
by bexander
Sat Oct 28, 2023 4:42 pm
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

Replace the entire readAllSlaves() with this: void readAllSlaves(uint8_t dataRegister, boolean setupDone) // Read all slaves { uint8_t command = 0x03; // READALL uint8_t byteList[3] = {command, dataRegister, 0x00}; uint8_t PEC = calculatePEC(byteList, 3); uint8_t readRegisterData[21]; uint8_t errorB...
by bexander
Fri Oct 27, 2023 11:58 am
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

Also this function needs to be changed boolean balanceCells(uint16_t lowestCellVoltage) { static uint8_t counter = 1; static uint16_t cellToBalanceFilter = 0x0FFF & 0x5555; // Every odd cell boolean measureVoltages = false; //if(1 == counter) Serial.println("Balance cells"); writeAllSl...
by bexander
Fri Oct 27, 2023 11:50 am
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

Change:
const uint8_t numberOfCells = 96;
to
const uint8_t numberOfCells = 64;
by bexander
Fri Oct 27, 2023 11:48 am
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

I would also comment out this part: if(dataRegister == 0x2D) // Aux voltage measurements (external temperature sensors) { storeCellTemperature(readRegisterData); } Like this: /*if(dataRegister == 0x2D) // Aux voltage measurements (external temperature sensors) { storeCellTemperature(readRegisterData...
by bexander
Fri Oct 27, 2023 11:46 am
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

void storeCellVoltage(uint8_t dataRegister, uint8_t readRegisterData[29]) { if((dataRegister >= 0x20) && (dataRegister <= 0x23)) // Cell voltage registers 1-4 { uint8_t cellNumberOffset = dataRegister - 0x20; for(int i=0; i<12; i++) { uint16_t measVoltage = ((readRegisterData[25-i*2] << 8) ...
by bexander
Fri Oct 27, 2023 11:43 am
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

void readData() { for(int i=0; i<4; i++) { readAllSlaves((0x20 + i), true); // Read CELL 1-4 of all slaves } for(int i=0; i<4; i++) { readAllSlaves((0x25 + i), true); // Read CELL 5-8 of all slaves" Try this: void readData() { for(int i=0; i<8; i++) { readAllSlaves((0x20 + i), true); // Read C...
by bexander
Thu Oct 26, 2023 4:29 am
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

bexander wrote: Thu Oct 26, 2023 4:17 am The number of slaves also determines the value of check byte so this have to match.
I ment the alive-counter. 0x0C with 12 slaves, 0x08 with 8 slaves. Will need to be changed in 3 places in the SW, daisyChainInit(), writeAllSlaves() and readAllSlaves().
That should get you through the setup.
by bexander
Thu Oct 26, 2023 4:17 am
Forum: Hyundai/Kia
Topic: Kia Niro BMS
Replies: 146
Views: 33470

Re: Kia Niro BMS

Yes, this seem to be a integrated BMS, interesting. So you have connected via SPI to the onborad MAX17841, correct? My SW is hard coded to 12 slaves with 4+4 cells connected at pos 1-4 and 6-9. This will have to be changed to 8 slaves with 9 cells connected. The number of slaves also determines the ...
by bexander
Fri Oct 20, 2023 11:48 am
Forum: Charging
Topic: Communicate and control Eltek Flatpack 2 HE
Replies: 40
Views: 21943

Re: Communicate and control Eltek Flatpack 2 HE

I don't know what bytes 0-2 do, they just work with the given values. Byte 3-4 sets the default voltage.
I don't know if it is even possible to set a default current limit.
by bexander
Sat Oct 07, 2023 12:22 pm
Forum: Projects
Topic: [DRIVING] Renault Clio Electrique -97
Replies: 342
Views: 54165

Re: [DRIVING] Renault Clio Electrique -97

Did some more test, without and success. I'm calling this fail at the moment. If anyone have any idea on what to test, let me now. It is fairly easy to do the needed setup now that I have all parts needed. Even if several persons have reached spining motor, it does not mean it is garanteed to work w...
by bexander
Fri Oct 06, 2023 4:03 pm
Forum: Projects
Topic: [DRIVING] Renault Clio Electrique -97
Replies: 342
Views: 54165

Re: [DRIVING] Renault Clio Electrique -97

I can't make the MGR run in reverse. I suspect it is down to resolver timing? When I swap resolver pinout I get same behaviour but in both directions, i.e. no motor rotation, inverter only draws current and whines. At this point I have no other idea on what to test? BTW, the inverter/motor runs fine...
by bexander
Fri Oct 06, 2023 8:14 am
Forum: Projects
Topic: [DRIVING] Renault Clio Electrique -97
Replies: 342
Views: 54165

Re: [DRIVING] Renault Clio Electrique -97

New power supply arrived and I have tested to spin the MGR using 80V and YES, it spins!! At the moment it only works in reverse gear and wheels in the air so not producing a lot of torque. Will try to figure out why it woun't work in forward. It only consumes power and my thinking is that the invert...
by bexander
Sat Sep 30, 2023 5:44 pm
Forum: Projects
Topic: [DRIVING] Renault Clio Electrique -97
Replies: 342
Views: 54165

Re: [DRIVING] Renault Clio Electrique -97

Yes, well I have 7pcs of Eltek FP 2 HE 48V power supplies, but they aren't great at limiting current down to 0V so not the best for this kind if experimenting but I'm thinking about using 2pcs for ~100V and using a current limiting light bulb in series or something... The PSU I ordered seem to ship ...
by bexander
Fri Sep 29, 2023 12:37 pm
Forum: Projects
Topic: [DRIVING] Renault Clio Electrique -97
Replies: 342
Views: 54165

Re: [DRIVING] Renault Clio Electrique -97

Ev8 wrote: Fri Sep 29, 2023 12:09 pm Fairly sure people have experienced the same when testing gs450h transmissions with very low voltages.
Ok, so focus on finding a supply with higher voltage then.

EDIT: Just put in an order for a cheap 120V 3A bench top power supply. Slow delivery though so will have to wait a bit.
by bexander
Fri Sep 29, 2023 9:35 am
Forum: Projects
Topic: [DRIVING] Renault Clio Electrique -97
Replies: 342
Views: 54165

Re: [DRIVING] Renault Clio Electrique -97

Tried to spin the MGR today, without success :( The motor yerks and want's to produce torque for a very short time. Keeps pulsing but no steady torque. I did only use a power supply of 36V, 10A. Maybe needs higher voltage? Damien used 60V in the video. Did test all 4 resolver possibilities, no chang...