4
\$\begingroup\$

I have a Sparkfun Power Shield for 12v fan powering, controlled with a BeagleBone Black. As I haven't been able to read the RPM with this setup, I added an spared Arduino Uno to do this, and also I will be using it for some 5v sensors I have, and a small SPI Oled Screen for debugging purposes, all connected to the BeagleBone using serial.

This is the wiring layout:

enter image description here

I did to measure the RPM, and while it's working as intended (it reads accurately the rpm), when I connect the 12v ground from the power shield to the Arduino, the fan starts, as it seems the open collector could power the fan, or somehow the circuit is closing and I'm not able to see it.

The strange thing is, as I was moving some cables to see if the layout was ok, I removed the ground from the power shield, and then I enabled the fans from the BeagleBone, and it started to measure the RPM, on one wire..

I know there are "one wire sensors", but I don't know why I didn't found some similar layouts on the web, as it seems to work perfectly, and using only one cable it's great, at least for me, because of the fear of burning something with the open collector tach..

This is my first question on a stackexchange website, please tell me if I should make any amendments to the question. Best regards.

This is the schema, I just removed the ground connection between the arduino and the fan. Note: I hope the selected components are ok, as this is my first schema. Note 2, 8Khz square signal estimating 4 cycles per RPM, 2000 RPM average.

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
3
  • 2
    \$\begingroup\$ Psst... schematic button above the textarea... \$\endgroup\$ Aug 22, 2013 at 3:36
  • 1
    \$\begingroup\$ I'm guessing there's a ground loop between 5V ground and 12V ground, possibly via mains ground. \$\endgroup\$
    – pjc50
    Aug 22, 2013 at 11:56
  • \$\begingroup\$ The BeagleBone is turning on/off the fan using a mosfet from the power shield, and the only cable coming from the fan is the tach. Edit: I will put together a minimum case scenario this afternoon after work, removing the BeagleBone and powering the fan directly. \$\endgroup\$
    – Geomancer
    Aug 22, 2013 at 14:58

1 Answer 1

3
\$\begingroup\$

Why do I get a signal even though only one wire is connected?

Well, the fan is putting a signal on the RPM wire. The conductive fan forms one plate of a capacitor and your arduino forms the other plate with the air between them as a dielectric. So, even though you can't see it, that circuit still has two connections. (Actually, a better explanation is that both have capacitive coupling to earth ground - the one between them is essentially the combination of those two series capacitors).

So, while there is physically only one wire, there is still a second signal path due to the capacitor formed between your two devices. This then forms the new measurement ground for the RPM signal. What that reference actually is depends on the capacitance of the capacitor and the potential difference between both sides (in other words, how much current is flowing through that cap). When you directly connect ground, you short circuit that capacitor causing no current to flow through it (since the potential difference at both ends is the same).

So even if that signal only ends up swinging from 1.4v to 3.6v, that's about enough to show up as a digital logic 0 to 1 transition.

Want to see more of this - if you have a multimeter that can measure frequency, tie one end to your mains hot or neutral and the other end to a hand sized piece of aluminum foil. See that 50hz (his profile says Argentina) signal? Guess where you're picking that up from.

\$\endgroup\$

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.