Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   PWM Testing Equipment (http://www.chiefdelphi.com/forums/showthread.php?t=115970)

JamesTerm 12-04-2013 11:22

Re: PWM Testing Equipment
 
Quote:

Originally Posted by Ether (Post 1260413)
If you have an old junker laptop (or desktop PC), you can do both.

#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.



This is great... but old computers are hard to find that still work properly... It would be nice to rig up a newer interface in lieu of the RS-232 (as much as I loved that). Perhaps Ethernet port or USB (e.g. FTDI driver)... that would make it possible to work for the classmate PC. The classmate is small and should have a powerful enough processor to be quite useful. I'll bet there are teams out there that have classmate PC's. ;)

Ether 12-04-2013 11:57

Re: PWM Testing Equipment
 
Quote:

Originally Posted by JamesTerm (Post 1260896)
but old computers are hard to find...

If you put the word out that you're interested, they'll come out of the woodwork.

Quote:

...that still work properly.
Every junker PC that's been given to me (well over a dozen so far) has had no trouble being used for test equipment like this.

Quote:

It would be nice to rig up a newer interface in lieu of the RS-232 (as much as I loved that). Perhaps Ethernet port or USB (e.g. FTDI driver)... that would make it possible to work for the classmate PC.
RS232 is easy to work with because it has control pins (outputs) that are independent of the serial data lines, and which are easily turned on or off with one register write (2 machine code instructions).

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.

MrForbes 12-04-2013 12:04

Re: PWM Testing Equipment
 
Quote:

Originally Posted by Ether (Post 1260911)
Every junker PC that's been given to me (well over a dozen so far) has had no trouble being used for test equipment like this.

The dozens I've had mostly all worked when I got them, but time takes it's toll....I recently got rid of about three or four dozen, and at least half of them were dead, usually having issues with disk drives. I'm down to fewer than 50 computers now.

Sadly, this old stuff is going away. It was so nice to be able to do so much with so little "investment".

Ether 12-04-2013 12:17

Re: PWM Testing Equipment
 
Quote:

Originally Posted by MrForbes (Post 1260916)
usually having issues with disk drives.

I've got a couple like that.

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 :-)



MrForbes 12-04-2013 12:22

Re: PWM Testing Equipment
 
Most of mine didn't have USB....pre-'96

Ether 12-04-2013 13:01

Re: PWM Testing Equipment
 
Quote:

Originally Posted by MrForbes (Post 1260928)
Most of mine didn't have USB....pre-'96

Yeah, I've got a few of those too, with bad hard drives.

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.



MrForbes 12-04-2013 14:19

Re: PWM Testing Equipment
 
The 360k 5.25" floppy drives are dying fast too....

Ether 12-04-2013 14:35

Re: PWM Testing Equipment
 
Quote:

Originally Posted by MrForbes (Post 1260995)
The 360k 5.25" floppy drives are dying fast too....

I've got only one good one left, and a box with 500 old disks :-(



FrankJ 12-04-2013 14:42

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

lcoreyl 12-04-2013 16:11

Re: PWM Testing Equipment
 
Quote:

Originally Posted by Ether (Post 1260911)
If you put the word out that you're interested, they'll come out of the woodwork.

Every junker PC that's been given to me (well over a dozen so far) has had no trouble being used for test equipment like this.

I'll second this. When I was still a teacher a few years ago, I was given a couple Pentium 2s that were "broken". I figured it would be fun for kids to open up and see whats going on. Word got out and I ended up with 6-7 P2/3s just from around the building. I did nothing to these other than load ROBOlab (the RCX LEGO software) and arduino onto whatever windows they had on them. They worked great up until an administrator threw them away. Now I'm extra mad after learning of this great additional use for them. However, I'll just be putting out the word that we're looking for donations again, and I'm confident we will have no problems.

Quote:

Originally Posted by Ether (Post 1260911)
...I was not the inventor of the Ethernet.

Hopefully people think I'm sitting here working hard and the random lol is just because I'm a bit off...

Also, this is the first time I've wondered about the etymology of ethernet???

JamesTerm 12-04-2013 16:17

Re: PWM Testing Equipment
 
Quote:

Originally Posted by Ether (Post 1260911)
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.

Hmmmm... perhaps instead of going that route maybe this would work:

http://gridconnect.com/usb-to-serial...32-to-usb.html

Ether 12-04-2013 16:22

Re: PWM Testing Equipment
 
Quote:

Originally Posted by lcoreyl (Post 1261049)
I've wondered about the etymology of ethernet???

2nd paragraph, first page:

http://ethernethistory.typepad.com/p...ernetPaper.pdf



Ether 12-04-2013 16:30

Re: PWM Testing Equipment
 
Quote:

Originally Posted by JamesTerm (Post 1261052)
Hmmmm... perhaps instead of going that route maybe this would work:

http://gridconnect.com/usb-to-serial...32-to-usb.html

Two things:

1) The $80 price tag kind of defeats the purpose

2) USB does not have any control outputs, just data.



Bill_B 12-04-2013 21:59

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.

Kevin Watson 13-04-2013 00:10

Re: PWM Testing Equipment
 
Quote:

Originally Posted by Jim Wilks (Post 1260410)
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?

If you've got an old IFI robot controller sitting around and the Microchip C18 build tools, you could modify code I wrote to do both jobs. The code in frc_pwm.zip will generate a very precise servo PWM signal, and the code found in ifi_ir_sensor.zip will show you how to determine the servo pulse width. The code I wrote for the 2004 game does kinda the same thing.

-Kevin


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