|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
PWM Testing Equipment
One item of electrical testing we seem to be at a real disadvantage with is our ability to test PWM signals.
I've been there all too often blindly swapping PWM cables and motor controllers in order to get to the bottom of a problem that all too often is not electrical. I've seen postings here on how to build your own Arduino based PWM generator, but building DIY test equipment is not the route I'd like to go. What I'm really looking for is a test box that: 1) can accept any PWM signal and display what it is receiving 2) generate a PWM signal based on some "hand control" input Does anyone have any idea if such a thing exists and if so, where to get it? |
|
#2
|
||||
|
||||
|
Re: PWM Testing Equipment
Quote:
#1 You can use a free program like Audacity as a simple oscilloscope. Connect the PWM signal to the "line in" input of the sound card. Use a simple resistor voltage divider to reduce the signal voltage to 1 volt. #2 Read this paper. It shows how to generate PWM signals with an old computer. |
|
#3
|
||||
|
||||
|
Re: PWM Testing Equipment
We use the small circuit linked below to generate motor controller PWM signals. At the moment it works with Talons and Victors. The timing would need a tweak to run a Jaguar.
The potentiometer is mounted on a joystick with a spring return to center. We like that arrangement because the motor always returns to OFF when the stick is released. The code is in PIC assembler and anyone who wants it can have it. https://docs.google.com/file/d/0B6MH...it?usp=sharing Last edited by electroken : 11-04-2013 at 12:05. Reason: revised drawing |
|
#4
|
|||||
|
|||||
|
Re: PWM Testing Equipment
|
|
#5
|
|||||
|
|||||
|
Re: PWM Testing Equipment
I realize you already mentioned that you've seen Arduino samples on how to make a PWM generator, but just for reference, we made one following the example at
https://sites.google.com/site/0123ic...arduino_jaguar and it works splendidly. Having a test harness with something simple like a power gauge indicator for PWM lines would be really worthwhile in on the spot diagnosis, maybe we'll look into making one this year. |
|
#6
|
||||
|
||||
|
Re: PWM Testing Equipment
Quote:
|
|
#7
|
||||
|
||||
|
Re: PWM Testing Equipment
Quote:
|
|
#8
|
||||||
|
||||||
|
Re: PWM Testing Equipment
Quote:
Quote:
|
|
#9
|
||||
|
||||
|
Re: PWM Testing Equipment
Quote:
|
|
#10
|
||||
|
||||
|
Re: PWM Testing Equipment
Great. That makes it easier to use the standard PWM servo outputs as found on an Arduino development board for the requested capability. The tester I have been working on uses an Arduino Uno for both PWM signal generation and monitoring, along with a few other functions. But I needed to do a lot of extra work to build an interface board for it. If there is no need to have the power pin disconnected, it opens up the possibility of using a development version of the board (with and LCD shield) for the tester. This reduces the amount of custom wiring needed to get to a useful configuration. You would still need to wire a power switch, a few buttons, and one or two potentiometers, but I think it would be a relatively easy tester for most teams to build. As I said, I have a prototype version working, and I will try to provide more information and code after I test it and clean it up a bit more.
|
|
#11
|
||||
|
||||
|
Re: PWM Testing Equipment
Quote:
This means that in addition to measuring the pulse width, you can also: - see any noise or improper waveform - see what the period is, and if it is consistent - see if there are intermittent dropouts Plus it just might inspire a student or two. I still remember how inspiring it was the first time I built a simple RC circuit and saw the waveform on a glowing green oval CRT screen. It made physics come alive for me. |
|
#12
|
|||||
|
|||||
|
Re: PWM Testing Equipment
My brother manning the scope, me on the probe.....circa 1974 (I might have us confused, we look alike). We built the scope, using surplus parts, 4 tubes plus the CRT. Non-linear (and dangerous) as heck, but it made wavy green lines!
|
|
#13
|
||||
|
||||
|
Re: PWM Testing Equipment
Quote:
|
|
#14
|
|||
|
|||
|
Re: PWM Testing Equipment
I had a "pong" paddle on my green phosphors. Never got a full game going though. Shifted over to turning a B&W Sony portable TV into a TV Typewriter. I think that beast may still be in the cellar somewhere, much to my wife's justifiable chagrin.
|
|
#15
|
|||
|
|||
|
Re: PWM Testing Equipment
For what do you need to test PWM signals? I have never needed to do that as part of any troubleshooting. Usually, PWM problems can be diagnosed otherways: through the dashboard on the driver station, the lights on the motor controllers, etc.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|