0
\$\begingroup\$

Background

I'm trying to make a circuit to determine rotor angle of a motor using a resolver https://en.wikipedia.org/wiki/Resolver_(electrical). This involves generating a ~5-10kHz sine wave to drive the input to a rotary transformer.

Problem

I've created the following circuit on a breadboard:

schematic of breadboard circuit

The DAC1 input signal is a sine wave, 0 to +3.3v, generated by a microcontroller. The EXC and IEXC outputs go to the excitation coil on the resolver. The op amp is powered by 12v, single supply, which is generated by an old fashioned wall wart (non-switching, transformer based power supply), which is rated 800mA max.

If I run this circuit without the excitation coil connected, here is what I see:

enter image description here

The cyan waveform is from pin 1 of the op amp, and the yellow one is from the EXC pin (which has DC bias removed). So far, this seems to be working. However, when I connect the coil, the waveform looks like this:

enter image description here

Somehow adding the load to the circuit has made the signal look really garbled.

What I've tried

none of these made much of a difference in the shape of the output waveform

  1. Double checked the connections several times.
  2. Swore at it. Then apologized and pleaded with it to work.
  3. When I originally created this circuit, I didn't have C1 and R3 (Which form a Zobel network). I added these to try to address this issue.
  4. I initially tried powering the op amp from the original 3.3v supply from the microcontroller, I switched to a separate 12v supply because I thought the former might not have enough power to drive the coil.
  5. Attached the scope to the 12v supply (unloaded) to make sure it wasn't noisy.
  6. Made the op amp unity gain, by connecting the output directly to the inverting input without R1 & R2, both with the 12v and 3.3v supply.
  7. Running without the op amp (just DAC to EXC through C2). The output is very distorted, a shark fin shape, but doesn't look quite as noisy.

My question:

I think it would be hard to root cause this issue with the information given, but I'm hoping someone can give some advice:

  1. Does this look like a phenomenon someone is familiar with involving these kinds of circuits?
  2. What kinds of steps for debugging this sort of issue would you recommend?
\$\endgroup\$
4
  • 2
    \$\begingroup\$ LM358 is very weedy. What's the input impedance of your resolver? Let's see the trace for pin 3 of the opamp as well. We know what it should be, but is it? Has connecting the resolver messed up your power supply or ground quality to the extent that the DAC output is wrong? Try a resistor in series with your resolver input as part of your experiments. \$\endgroup\$
    – Neil_UK
    Jan 5, 2022 at 7:25
  • \$\begingroup\$ Would be interesting to a whole "schematic" of wiring ... :-) \$\endgroup\$
    – Antonio51
    Jan 5, 2022 at 7:46
  • 1
    \$\begingroup\$ Can the opamp supply the current? It looks like the waveforms are smaller. Plus, an inductance as load means a differentiator, which does wonders for noise. \$\endgroup\$ Jan 5, 2022 at 8:10
  • \$\begingroup\$ And specifications of the "resolver" used? Same oscillator with 2 quadrature outputs and power amplifiers. \$\endgroup\$
    – Antonio51
    Jan 5, 2022 at 9:03

1 Answer 1

2
\$\begingroup\$

It looks like the op-amp is limiting current, max should be 20 mA. You have tried with gain=1 with same result, so resolver impendance is below 80 Ohm. You need more current output. An audio amplifier can handle 4 Ohm, so maybe a good choice.

\$\endgroup\$
1
  • \$\begingroup\$ That was it. I switched to an LM386 and the waveform looks like a sine wave. I guess one lesson I've learned is always check the data sheets. :) \$\endgroup\$
    – JeffB
    Jan 5, 2022 at 20:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.