cancel
Showing results for 
Search instead for 
Did you mean: 

How to config ADC ports for B-EMF detection with ST MC WB?

frank chen
Associate
Posted on December 20, 2017 at 04:45

For Motor controller design using FOC sensorless prototype, there are 3 B-EMF signals need to be monitored by MCU. So I shall config 3 ADC channels for this purpose. But with ST MC WB there is no way to do this. what can I do?

Bellow is my schematic. 

U, V, W are 3-phase output to drive motor directly. R6, R8 and R10 provide B-EMF signals,  and distribute voltages on R8, R13 and R21 seperately , filtered and smoothed by C1, C5, and C12, clamped on 0.6V by D4ã€�D6ã€�D7,finally connect to Pin 18, 19 and 22 of STM32F302C8, to detect the 0-cross of 3 B-EMF signals.

3 REPLIES 3
AvaTar
Lead
Posted on December 20, 2017 at 08:56

There are 3 B-EMF signal need to monitored by MCU - STM32F302C8. So I need to config 3 ADCs for this purpose.

So why not using a F303 with 3 or 4 ADCs ?

Posted on December 21, 2017 at 06:55

I've updated my question that it is sofware tool problem. But thanks anyway.

Posted on December 21, 2017 at 08:42

I've updated my question that it is sofware tool problem.

This is not good style, because it puts the answers seemingly out of context.

Rather post your refined question as follow-up.

So I shall config 3 ADC channels for this purpose. But with ST MC WB there is no way to do this.

Don't know 'ST MC WB', presumably a 'motor control workbench'.

And I'm not sure if the F3 is the right choice.

This ADC peripherals of this series can only be coupled to a dual-mode.

The F4 series features a triple mode, where all three ADC's virtually operate as one.

That comes into play if you need full speed of more than 1 Msps.

If you stay significantly below the ADC's limit, you could get away with one ADC, and a sequential conversion of three channels.

For Motor controller design using FOC sensorless prototype, there are 3 B-EMF signals need to be monitored by MCU.

The usual precautions (hardware design) apply, or you might destroy the controller.

But for the software, you can either try ST's HAL/Cube, or consult the reference manuals and write it yourself.

I don't comment on the former.