You are here

FAULT_CODE_HIGH_OFFSET_CURRENT_SENSOR_3

11 posts / 0 new
Last post
TB_Poule
Offline
Last seen: 1 year 5 months ago
Joined: 2019-03-03 08:58
Posts: 5
FAULT_CODE_HIGH_OFFSET_CURRENT_SENSOR_3

Hello everybody, I have had a problem for a few days with my VESC 6+ that I have been using since 2019 on a bike.

The red led is flashing and I have a fault code: FAULT_CODE_HIGH_OFFSET_CURRENT_SENSOR_3

Last week i did a firmware update, but i must have made a wrong manipulation when i reprogrammed the motor parameters in FOC mode? Could not find the solution to eliminate the problem !?

Can anyone help me? Sincerely, TB.

vadicus
Offline
Last seen: 1 month 2 weeks ago
VESC Free
Joined: 2018-08-17 07:26
Posts: 431

That means the current sensor on phase 3 must have failed. In VESC tool, go to Sample Data, select Current tab, hit "Samples now" and post the graph here.

 

 

NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)

TB_Poule
Offline
Last seen: 1 year 5 months ago
Joined: 2019-03-03 08:58
Posts: 5

Hi, for the moment I cannot insert my image ...

 

TB_Poule
Offline
Last seen: 1 year 5 months ago
Joined: 2019-03-03 08:58
Posts: 5

graph Capture du 2021-04-11 07-44-14.png

 

vadicus
Offline
Last seen: 1 month 2 weeks ago
VESC Free
Joined: 2018-08-17 07:26
Posts: 431

Sensors seem to be fine according to the graph. Can you go to the terminal and run these commands: 1) hw_status; 2) faults. Then post ouputs for both.

 

 

NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)

TB_Poule
Offline
Last seen: 1 year 5 months ago
Joined: 2019-03-03 08:58
Posts: 5

on the graph it seems nevertheless that there is a little offset for I phase 3 ?

here is the result of the tests you ask me:

hw_status:

Firmware: 5.2

Hardware: 60

UUID: 2D 00 2D 00 16 47 37 33 38 33 32 38

Permanent NRF found: No

FOC Current Offsets: 2047 2047 3337

USB config events: 1

USB write timeouts: 0

Mempool mcconf now: 0 highest: 0 (max 9)

Mempool appconf now: 0 highest: 0 (max 2)

 

faults:

No faults registered since startup

fault:

FAULT_CODE_HIGH_OFFSET_CURRENT_SENSOR_3

 

 

vadicus
Offline
Last seen: 1 month 2 weeks ago
VESC Free
Joined: 2018-08-17 07:26
Posts: 431

Yes, your hw_status response shows that the sensor phase 3 is not good. The program is auto offsetting it too much: FOC Current Offsets: 2047 2047 3337

It's either disconnected or the amplifier is shot. I  would inspect it and measure voltages on the amplifier and compare it to voltages on a good sensor. 

Another possibility, considering that you said this happened after fw update, is incorrect version of the fw is installed. Maybe sensor 3 is mapped to a different pin in the new firmware. Although unlikely, I would still double check. You might also want to reinstall the fw just in case something didn't write correctly, although, unlikely as well if the controller responds. 

 

 

NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)

TB_Poule
Offline
Last seen: 1 year 5 months ago
Joined: 2019-03-03 08:58
Posts: 5

You're right, when we analyze the programming we come to the same conclusion:

in terminal.c:

commands_printf ("FOC Current Offsets:% d% d% d", curr0_offset, curr1_offset, curr2_offset);

In mcpwm.c:

#ifdef HW_HAS_3_SHUNTS

curr2_offset = curr2_sum / curr_start_samples;

In mc_interface.c:

#ifdef HW_HAS_3_SHUNTS

if (abs (curr2_offset - MIDDLE_ADC)> HW_MAX_CURRENT_OFFSET) { mc_interface_fault_stop (FAULT_CODE_HIGH_OFFSET_CURRENT_SENSOR_3,! is_motor_1, false);

in hw_axiom.h:

#define HW_MAX_CURRENT_OFFSET 620 // More than this offset (0.5 Vdc) trips the offset fault (likely a sensor disconnected)

 

I do not believe that the problem comes from the software, I have redone the programming several times ...

I will try to test the circuit ...

bayetan
Offline
Last seen: 1 week 3 days ago
VESC Free
Joined: 2019-08-30 02:40
Posts: 14

Hello vadicus,

Should the current (Mean Filtered} for 3 phases read close to zero?  My Phase3 current is below zero and Phase1 and Phase2 are slight above 0.  I tried executing "foc_sensors_detect_apply" with 5 amps.  After some current was applied, I got the response no sensor found and changed to "senseless mode".  Was originally in "Encoder mode".  Can/Should I change the offset?

Thanks, Ben

Screenshot 2023-09-21 072012.jpg

bayetan
Offline
Last seen: 1 week 3 days ago
VESC Free
Joined: 2019-08-30 02:40
Posts: 14

Hello vadicus,

I' not getting a fault but Should the current (Mean Filtered} for 3 phases read close to zero?  My Phase3 current is below zero and Phase1 and Phase2 are slight above 0.  I tried executing "foc_sensors_detect_apply" with 5 amps.  After some current was applied, I got the response no sensor found and changed to "senseless mode".  Was originally in "Encoder mode".  Can/Should I change the offset?

Thanks, Ben

Screenshot 2023-09-21 072012.jpg

Mohanangappan
Mohanangappan's picture
Offline
Last seen: 2 months 3 days ago
VESC Free
Joined: 2023-07-06 08:17
Posts: 1

Screenshot (1).pngHi, 

We are also facing same problem for the Fault in current sensor 1 and 3. The error screenshot attached for your reference. Kindly give the solution for this. what is problem and suggestions. . We checked sensor and FET side not short are there. Screenshot (4).png. We checked sensor and FET side not short are there. 

Mohan