Close

Improving noise with filters and better amps

A project log for Open FFBoard

A modular and open source force feedback interface and motor driver for DIY wheels and controllers

yannick-gigawipfYannick (Gigawipf) 02/04/2020 at 17:232 Comments

In the first version of the TMC board i tried INA282 current shunt amplifiers.

It turns out despite having very good specs on paper they are extremely susceptible to fast rising common mode voltages.

And we have these a lot as the TMC needs to measure currents on the floating motor outputs.

This meant extremely bad noise on the current measurements.
As an alternative there are the AD8417 which are much better suited for this application for the same price.

See for yourself what a difference this makes:

3 Phase openloop current
Open loop current of slow 3 phase motor

Looks pretty good considering that this is on a low scale and we can go MUCH higher and maybe even improve the noise with filter tuning.

INA282
INA282 at more than double the current

Looks very bad right?
This is because the INAs output spikes >1V up or down for up to 15µs after almost every pwm cycle (25-50khz).

This is the output of the INA282 with no motor current. Only pwm active. yup. pretty bad.

Obviously we are now using the AD8467. For even better noise the AD8468 with low gain could be used but this would decrease the maximum current even more. I am aiming for >25A fullrange for this version for now.

By using different shunts or the lower gain AD8468 we can decrease or increase the limit depending on the application.

We will also add low pass filters to the encoder and hall inputs as with some motors significant pwm noise gets back through these lines and causes glitches. This means even more components to solder :/

Next step is to order new pcbs to fix the previous errors and write the firmware.
The firmware is currently in a stage where most base features are working and i am implementing an example for FFB soon

Also as the board is quite small there is not much room to add capacitors causing high ripple on the motor voltage rail when backdriven as there is currently only space for one larger cap.
When used with large motors it is recommended to add external caps between GND and PB+.

Discussions

gregt2278 wrote 02/17/2020 at 02:13 point

Very impressive project, I am also playing around with 4671 eval kit (10A70V) and hoping to get your advice. When connected to a BLDC w/encoder feedback (trinamics QBL motor) and using the wizard to set up it up in open loop i cannot seems to get my adc_I0,1,2 to have the same amplitude no matter what I do. Also my sigma-delta ADC inputs are coming in with different amplitudes. Not a lot of info on this board online and trinamic isn't responding to me. Any idea? 

  Are you sure? yes | no

saadat.moh wrote 06/20/2021 at 22:27 point

Hi gregt2278,

I have the exact same issue! Just wondering if you were able to solve the issue? 

  Are you sure? yes | no