GarageAdasia wrote: ↑Fri Jan 20, 2023 11:36 pm
Hi guys!
I am trying to run this compressor witch Arduino uno&mcp2515 but still no effects.
Sending message; 108 0B 00 1D 00 00 08 03 no response
I am receiving 388 1 2 0 0 0 0 0 0
Any ideas for noob?
Its all in the beginning of this thread. I explain also here;
https://leafdriveblog.wordpress.com/tag/ac-compressor/
First AC compressor will need to see hartbeat telegram at 10ms:
Also Heater needs to see telegram from BMS which means HV is connected.
0x285 00,00,14,39,91,FE,0C,10 which means we are driving repeat at 10ms;
Then command telegram is at 100ms;
0x185 0B 00 1D 00 00 08 00 03
byte0 is status command, 08 means standby and 0B is start
byte2 just works with 1D signal
byte5 is RPM command from 08 (min) to 54(max)
byte7 can be 00 or 03, it does not differentate
Compressor reports at 100ms;
0x388 0x 0x 0x 0x 0x 0x 0x 0x
byte0 status, 7C start, 02 no power, 01 power present.
byte2 RPM report high byte
byte3 RPM report low byte
byte4 seems to be amp flow [current=dec value/10]
byte7 CAN status 00-No CAN, 01-CAN error, 02-heartbeat 0x285 present.
______________________________________________________________
For you compressor reports 01 means power is there, but B7 at 00 means no CAN signal because it seems you are not sending correct message.
Try sending 0x185 command, but you also need to send 0x285 telegram for compressor to work.
You can see my complete code here:
https://leafdriveblog.wordpress.com/202 ... ev-heater/
Search for "void sendCANframeE()" and "void sendCANframeURGENT()" functions. There you can see how i dinamicaly control compressor RPM. Code is for Arduino DUE!