ASC712 current sensors

Nano is 5V, so that’s ok, but it might be a bit slow for FOC + current sensing. You’ll have to try.

For the code, see the example:

When you construct the current sensing, change the pins to the ones you are using. I think the following values would work for the 66mV/A version:

InlineCurrentSense current_sense = InlineCurrentSense(1.0f, 1.0f/0.066f, A0, A1, A2);

Initialisation:

  current_sense.init();
  motor.linkCurrentSense(&current_sense);
  motor.current_limit = 4.0f; // 4A limit
1 Like