Go to Post Starting from scratch is what makes it hard. - ChrisH [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 11-04-2013, 09:24
Jim Wilks Jim Wilks is offline
Electrical Engineer
AKA: Jim Wilks
FRC #1360 (Orbit Robotics)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Oakville, ON
Posts: 1,186
Jim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond repute
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?
__________________
Jim

  #2   Spotlight this post!  
Unread 11-04-2013, 09:32
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PWM Testing Equipment

Quote:
Originally Posted by Jim Wilks View Post
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 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.


  #3   Spotlight this post!  
Unread 11-04-2013, 11:54
electroken's Avatar
electroken electroken is offline
Electron Tamer
AKA: Ken Pontbriant
FRC #0230 (Gaelhawks)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Shelton, CT
Posts: 174
electroken is a jewel in the roughelectroken is a jewel in the roughelectroken is a jewel in the rough
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   Spotlight this post!  
Unread 11-04-2013, 12:00
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 5,990
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: PWM Testing Equipment

maybe something like this?

http://www.hobbyking.com/hobbyking/s..._select .html
  #5   Spotlight this post!  
Unread 11-04-2013, 12:01
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: PWM Testing Equipment

Quote:
Originally Posted by Jim Wilks View Post
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
There's lots of devices that can do #2. In hobby circles, they are called servo testers. If you don't want to dedicate a computer like Ether's suggestion, you can buy or easily make one. Here's one made by a mentor of 987: http://robotlogic.com/product_servotester.html. You can also make one using 2 555 timers. Here's a schematic http://www.seattlerobotics.org/encod...Excerciser.htm. You can also easily make one with a microcontroller, like an arduino.

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
  #6   Spotlight this post!  
Unread 11-04-2013, 12:04
Todd's Avatar
Todd Todd is offline
Software Engineer
FRC #1071 (Team Max)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Connecticut, Wolcott
Posts: 51
Todd is just really niceTodd is just really niceTodd is just really niceTodd is just really niceTodd is just really nice
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.
  #7   Spotlight this post!  
Unread 11-04-2013, 12:22
tsaksa's Avatar
tsaksa tsaksa is offline
Registered User
FRC #0997 (CHS Robotics)
Team Role: Mentor
 
Join Date: Jul 2011
Rookie Year: 2011
Location: Corvallis Oregon
Posts: 203
tsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond repute
Re: PWM Testing Equipment

Quote:
Originally Posted by Todd View Post
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.
I have an Arduino based tester like what you described in prototype mode right now. When I get further I will try to post something. But I may be wasting some time on one aspect of it by including both powered and un-powered PWM outputs. I know that the digital side car has jumpers to allow you to power the center pins for driving both servo's motor controllers. Does anyone know what the common motor controllers we use do with that center pin? Can I just provide power to the center pin all the time, or will that create a problem with some motor controllers? Since the motor controllers are powered separately and that pin is not needed, why would it just not get connected inside the motor controllers?
__________________
This is the zeroth day of the rest of your life.
  #8   Spotlight this post!  
Unread 11-04-2013, 12:36
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PWM Testing Equipment

Quote:
Originally Posted by Ether View Post
#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.
The above method is admittedly clunkier than a nice compact hand-held unit that gives a digital readout or an LED pass/fail indication, but it does have one advantage: You can see the actual waveform, and you can record the waveform over a period of time.

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.



  #9   Spotlight this post!  
Unread 11-04-2013, 12:38
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PWM Testing Equipment

Quote:
Originally Posted by tsaksa View Post
Does anyone know what the common motor controllers we use do with that center pin? Can I just provide power to the center pin all the time, or will that create a problem with some motor controllers? Since the motor controllers are powered separately and that pin is not needed, why would it just not get connected inside the motor controllers?
It's not even connected (at least according to the Jag schematic).


  #10   Spotlight this post!  
Unread 11-04-2013, 12:48
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: PWM Testing Equipment

Quote:
Originally Posted by Ether View Post
It's not even connected (at least according to the Jag schematic).
It's also not connected on the Victor. http://www.vexrobotics.com/vexpro/mo.../217-2769.html

Quote:
The red wire (center pin) on the 3-wire cable connected to the Victor is an open circuit.
There is no reason to disconnect the red wire in the cable.
The Victor does not source or draw power on the red wire.
  #11   Spotlight this post!  
Unread 11-04-2013, 13:00
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 5,990
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: PWM Testing Equipment

Quote:
Originally Posted by Ether View Post
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.
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!
Attached Thumbnails
Click image for larger version

Name:	1975#JF410.02-Jim-David-scope.jpg
Views:	134
Size:	316.9 KB
ID:	14575  
  #12   Spotlight this post!  
Unread 11-04-2013, 13:20
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PWM Testing Equipment

Quote:
Originally Posted by MrForbes View Post
My brother manning the scope, me on the probe.....circa 1974 (I might have us confused, we look alike).
Love that picture! The hair looks about right for 1974. How did you dig it up so fast? Do you keep it in your wallet :-)


  #13   Spotlight this post!  
Unread 11-04-2013, 14:34
tsaksa's Avatar
tsaksa tsaksa is offline
Registered User
FRC #0997 (CHS Robotics)
Team Role: Mentor
 
Join Date: Jul 2011
Rookie Year: 2011
Location: Corvallis Oregon
Posts: 203
tsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond repute
Re: PWM Testing Equipment

Quote:
Originally Posted by Ether View Post
It's not even connected (at least according to the Jag schematic).


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.
__________________
This is the zeroth day of the rest of your life.
  #14   Spotlight this post!  
Unread 11-04-2013, 14:45
Bill_B Bill_B is offline
You cannot not make a difference
FRC #2170
 
Join Date: Jan 2010
Rookie Year: 2004
Location: Connecticut
Posts: 1,099
Bill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond repute
Re: PWM Testing Equipment

Quote:
Originally Posted by Ether View Post
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.
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.
__________________
Nature's Fury FLL team 830 - F L eLements
FRC team 2170 - Titanium Tomahawks
  #15   Spotlight this post!  
Unread 12-04-2013, 02:38
ablatner ablatner is offline
Registered User
AKA: Andrew Blatner
FRC #0100 (The Wildhats)
Team Role: Leadership
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Redwood City
Posts: 116
ablatner is on a distinguished road
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.
__________________
2009-2013: Student, Team 100
2013-????: ?
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:22.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi