19 February 2015

Troubleshooting Tach stability with new VFD addition

I got my VFD added to the non-milling machine. The first thing I noticed was that it worked :)
The second thing I noticed was that my RPM readout was all over the place (800-2200 @1550RPM actual).

After alot of troubleshooting, it turned out to be my cheap "DVE" 12V power supply running the Arduino was entirely the problem. I discovered this after I tried a battery in place of the Arduino power supply.. and then tried another power supply.

Luckily I found it pretty quick but for people having trouble with their DIY tach sensor circuits and readings, keep my experience here in mind.


Quick overview, I'm using TouchDRO with the Arduino controller based hardware and Rysiu M's firmware. I wired in a tach sensor using this IR tx/rx hardware. It's got two IR sensors, I just used one. The little "motherboard" cleans up the IR sensor signal into a digital pulse train which gets fed into Arduino pin D7.  More details are here.

Initially, looking at the signal on pin D7 (the tach input pin to Arduino) I thought it was clean and stable. I triggered on it nicely and noticed that some pulses seemed to shift width just a hair, like 1 pixel on my scope's LCD screen. I watched the Hz and period measurements on screen and figured that they were moving less than what I was seeing on the RPM readout, even accounting for scaling from Revs Per/Sec to Revs Per/Min.
Pin D7 pulses with DVE power supply, looked good to me initially.

I poked around with the scope looking at signals and grounding things, none of it producing any real result. The next day, at some point I zoomed in on one of the D7 pulses.... bouncing!

DVE PS zoom into front edge of tach sensor pulse, bouncing(intermittently, not always).
Also present on trailing edge sometimes.
The bouncing wasn't always there, just intermittent and sometimes more than one bounce. So basically it seems the bouncing was being seen as extra pulses along with the real pulses.

Below are some pictures that show what the bad power supply was producing, with the VFD on there was over 1 V of noise riding on the 12V DC.
DVE Power Supply, no load, VFD stop (AC Coupled .5V/div),
DVE Power Supply powering Arduino, VFD Run. (AC Coupled .5V/div),

Below are pictures of the new Netgear power supply I dug up. It's worst case was 15mV at no load.... when powering the Arduino it was actually almost within 5mV.
Netgear Power Supply, no load, VFD stop (AC Coupled .005V/div)

Netgear Power Supply, powering Arduino, VFD run (AC Coupled .005V/div)This is better than picture above showing no load/no VFD run.
Below are pictures of the signal at pin D7. Ignore the number of pulses and spacing etc, there were 5 or 6 strips of electrical tape vs just 1 or 2 in the previous D7 signals seen way up above. The main thing to notice is the missing bounce on rising or trailing edges.

Netgear PS, D7 signal, VFD run.

Netgear PS, D7 signal pulse leading edge, VFD run


Netgear PS, D7 signal pulse trailing edge, VFD run

Anyway, I think i'm going to switch to USB power for the Arduino. I'd like to have a USB cable coming out of the box it's all mounted in anyway.

No comments:

Post a Comment