![]() |
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? |
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. |
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 |
Re: PWM Testing Equipment
|
Re: PWM Testing Equipment
Quote:
We needed to do this to test our shooter prototype. We had one team start working on an arduino to do it, while another team started working on a 555 timer version. In the end, the Arduino team won, by several hours, but now we have two. It would not be hard to make a microcontroller read a PWM signal and display the value. I haven't seen any off the shelf solutions that do it, however. Here's one example of doing it on an arduino. http://diydrones.com/profiles/blog/s...BlogPost:38418 |
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. |
Re: PWM Testing Equipment
Quote:
|
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. |
Re: PWM Testing Equipment
Quote:
|
Re: PWM Testing Equipment
Quote:
Quote:
|
Re: PWM Testing Equipment
1 Attachment(s)
Quote:
|
Re: PWM Testing Equipment
Quote:
|
Re: PWM Testing Equipment
Quote:
|
Re: PWM Testing Equipment
Quote:
|
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.
|
Re: PWM Testing Equipment
Quote:
|
Re: PWM Testing Equipment
Quote:
Quote:
Quote:
I've not studied the USB or Ethernet* port. Find me a technical document which has detailed instructions how to toggle control pins at the bare-metal level on those and I'll look at it. *Decades ago, I wrote a letter the editor of Digital News magazine correcting an error in an article they published about the Ethernet collision avoidance/detection/recovery protocol. I got a phone call from the editor asking me if I was involved in any way in the development of the protocol. Unlike a certain politician whom I will not name here, I said no. They published my letter, but appended to it a note that I was not the inventor of the Ethernet. |
Re: PWM Testing Equipment
Quote:
Sadly, this old stuff is going away. It was so nice to be able to do so much with so little "investment". |
Re: PWM Testing Equipment
Quote:
If they've got a USB port (and BIOS boot support for it), they don't need a disk drive to run FreeDOS, or even Linux :-) |
Re: PWM Testing Equipment
Most of mine didn't have USB....pre-'96
|
Re: PWM Testing Equipment
Quote:
I use a 1.44MB 3.5" diskette, with bootable FreeDOS. FreeDOS fits on there with space to spare for TP7 and apps. And you can use the memory for a RAMdisk or cache. |
Re: PWM Testing Equipment
The 360k 5.25" floppy drives are dying fast too....
|
Re: PWM Testing Equipment
Quote:
|
Re: PWM Testing Equipment
5.25" disks must hold a lot of data. I bet with 2 of them you wouldn't even need a hard drive. :D
|
Re: PWM Testing Equipment
Quote:
Quote:
Also, this is the first time I've wondered about the etymology of ethernet??? |
Re: PWM Testing Equipment
Quote:
http://gridconnect.com/usb-to-serial...32-to-usb.html |
Re: PWM Testing Equipment
Quote:
http://ethernethistory.typepad.com/p...ernetPaper.pdf |
Re: PWM Testing Equipment
Quote:
1) The $80 price tag kind of defeats the purpose 2) USB does not have any control outputs, just data. |
Re: PWM Testing Equipment
I just got a radio shack version of this velleman kit. USB interface for several I/O options and it mentions PWM output too. The local RS had a sale on it so your availability may vary. RS site doesn't list it but there is a kit that does DC to PWM. It doesn't appear to be available at a store near me. I may risk being on the RS mailing list forever by ordering it online.
|
Re: PWM Testing Equipment
Quote:
-Kevin |
Re: PWM Testing Equipment
Quote:
|
| All times are GMT -5. The time now is 06:16. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi