發表文章

目前顯示的是 1月, 2023的文章

VESC hall sensor table and use it to add hall sensors to RC sensorless motor, then nake it work with RC sensored ESC

圖片
  The HALL sensors provide an indication as to where in the electrical revolution the rotor is. You get enough information to run the motor in BLDC mode depending on the HALL signal values. In BLDC mode there are six phases and the hall sensors conspire to make exactly six combinations.     When driving the motor in FOC mode, the position of the rotor during an electrical revolution is thought of as a position on a compass: say 0-360 degrees. Now the three hall signals combine to make a 3-bit number 0-7. So now for each possible combination you note the average compass value when that value is output by the hall sensors. So if during 0-60 the combination 001 or "1" shows on the hall sensors, you put the average "30" in the table at position 1. Now 60-120 teh hall sensors show 011, so you put the average 90 in position 3 in the table.    Now Benjamin decided to save a few bits by instead of counting the revolution in human-convention-units of a degree (i.e. 0-360), h