0
\$\begingroup\$

New to electronics, 1st experiment, just bought all this stuff to start, so apologies in advance for inaccuracies.

I'm trying to have Arduino detect resonance frequency of an LC circuit, unknown mH & uF. My intention is to hit the circuit with a short lived square pulse, and listen to the ringing right after it to infer its natural frequency.

I notice I could use the ringing frequency of the circuit after a square pulse, the scope shows a beautiful damped sinus when not grounded and the power source being a function generator on square mode.

Not grounded Fn Generator here

  • Bunch of inductors on the left (about 900mH).
  • Capacitor on the right (10uF).
  • Orange wire is the loop, with a diode to prevent back circulation.
  • Blue wire is test point (left capacitor leg) to probe on channel 2 (blue line on screen.)
  • Also diode to prevent back kick on power source.
  • Natural frequency about 44KHz.
  1. When I use the Arduino pin as power source I see nothing.
  2. A DC power supply, switched on-off with an Arduino pin need to be grounded for it to work at all [**]. When grounded the ringing is gone, only one period shown on scope but 1/2 the frequency shown on the function generator pulses (not grounded.) The switch is a P2222 NPN transistor driven by an Arduino digital pin. It switches current from a DC power supply.

Not grounded Not Grounded here

Grounded Grounded here

Questions:

  • [**] Why is the scope not detecting any voltage with the DC supply if not grounded, yet the function generator doesn't seem to need that?
  • Why doesn't switching the DC supply on/off produce a ringing like the function generator does?

**Edit: Adding diagram **

This should be close enough. Power source changes between scenarios, also the open/close circuit to negative/ground.

enter image description here circuit Diagram

"Grounded": I don't actually have a ground connection, I meant, the anode pin from the power source, or Arduino's GND.

\$\endgroup\$
5
  • 5
    \$\begingroup\$ Circuit diagram please - it's easier than tracing someone else's breadboard \$\endgroup\$ Commented Aug 18, 2022 at 20:40
  • 3
    \$\begingroup\$ Especially since it's not clear what you mean by "grounded" and "not grounded". \$\endgroup\$
    – TimWescott
    Commented Aug 18, 2022 at 20:56
  • \$\begingroup\$ "Grounded": I don't actually have a ground connection, I meant, the anode pin in power source, or Arduino'd GND. edited Question, thanks. \$\endgroup\$
    – juanmf
    Commented Aug 18, 2022 at 21:08
  • 3
    \$\begingroup\$ What point are you changing when you say "grounded" and "ungrounded?" \$\endgroup\$
    – JRE
    Commented Aug 19, 2022 at 5:56
  • \$\begingroup\$ Besides what @JRE asked (what you say and the schematic are really puzzling), you should know that only undamped LC cause oscillations; critically damped and overdamped do not. \$\endgroup\$ Commented Aug 19, 2022 at 6:16

1 Answer 1

1
\$\begingroup\$

Not a good experiment for a beginner.

When not grounded energy is flowing inside the diode. In the return path the diode provides almost infinite resistance which dampens the oscillation very quickly.

In the response of a RLC series circuit with some power stored initially at the capacitor or the inductor, the damping is increased with increased resistance of the resistor and at least in one way the diode's DC resistance is almost close to infinity.

When you connect the pin to the Arduino it has a path of smaller resistance and the LC circuit rings.

\$\endgroup\$
4
  • 1
    \$\begingroup\$ Watch this:youtube.com/watch?v=61t8Z6ba1vM \$\endgroup\$
    – Miss Mulan
    Commented Aug 18, 2022 at 21:52
  • \$\begingroup\$ Thanks, this problem is the sole reason why I jumped into this field, so I get it might be a steep start, but here I am. code on the Arduino to detect freq ready (with improved sampling rate from SDK provided features), circuit is the tricky part so far. \$\endgroup\$
    – juanmf
    Commented Aug 18, 2022 at 22:18
  • \$\begingroup\$ Okay, I could generate a steady state only with Arduino digital pin, but when I plug the A1 (analog) pin to read the sinus signal dissipates, and looks like a Capacitor-exponential discharge. Surely what you suggested, current leaves the system through A1. But it doesn’t through scope probe. How can I measure the sinus with Arduino? \$\endgroup\$
    – juanmf
    Commented Aug 19, 2022 at 15:39
  • \$\begingroup\$ Made a post about it on Arduino, forum.arduino.cc/t/pick-up-voltage-without-draining-current/… \$\endgroup\$
    – juanmf
    Commented Aug 19, 2022 at 16:14

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.