Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   EE question: convert RS232 voltages to RC servo (http://www.chiefdelphi.com/forums/showthread.php?t=106979)

Ether 26-06-2012 16:33

Re: EE question: convert RS232 voltages to RC servo
 
1 Attachment(s)
Quote:

Originally Posted by EricH (Post 1174596)
However, in MI (and most other states), it's mail order.

Benton Electronics Supply. Nothing like it in a hundred-mile radius.



Ether 26-06-2012 16:40

Re: EE question: convert RS232 voltages to RC servo
 
Quote:

Originally Posted by Al Skierkiewicz (Post 1174710)
The schematic shows 330 ohms in series with the driver chip output.

Thanks Al.

After some research and some experimentation on three old PCs I had languishing here, I've determined that the RS232 control pins typically1 output only about 8 milliamps when shorted. A simple 1N914 diode2 is all that is required to turn that into a PWM signal suitable for driving a Jag or Vic motor controller3.


1 warning: YMMV

2 available at Radio Shack! 3 bucks for a pack of 50

3 I hope. I haven't looked at the waveform on a scope yet to see how crisp it is, nor tried running a motor controller with it.

EricH 26-06-2012 16:51

Re: EE question: convert RS232 voltages to RC servo
 
Quote:

Originally Posted by Ether (Post 1175454)
Benton Electronics Supply. Nothing like it in a hundred-mile radius.

Yeah, I'm pretty sure the west side of Chicago and the northwest side of Indy are over a hundred miles from them (at least if you're driving around the lake). That's why so many retailers allow online ordering--lets 'em get to customers who move too far away from the store.;)

Ether 27-06-2012 20:15

Re: EE question: convert RS232 voltages to RC servo
 
Quote:

Originally Posted by Ether (Post 1175455)
A simple 1N914 diode is all that is required to turn [the RS232 RTS control pin output] into a PWM signal suitable for driving a Jag or Vic motor controller3.


3 I hope. I haven't looked at the waveform on a scope yet to see how crisp it is, nor tried running a motor controller with it.

With the very gracious assistance of Richard Wallace and various engineers and technicians in his motor lab this afternoon, I can now report that this works quite well indeed. Please note two things though:
1) Before doing this, check the short-circuit current output of the RTS pin of the RS232 port you plan to use. All the ones I tested were limited to approx 7 milliamps, but yours may not be. If not, add a series resistor to limit the current.

2) If using this simple diode circuit, note that the polarity of the PWM input to the motor controller becomes important. Don't reverse the polarity. I'm not sure the LED in the photocoupler would like that. To paraphrase a famous quote, measure twice (with your meter), and connect once.
More details later.


efoote868 27-06-2012 21:50

Re: EE question: convert RS232 voltages to RC servo
 
Just to be clear, which circuit were you using? I've been lurking in this thread and have been curious to the solution myself.

Ether 28-06-2012 07:57

Re: EE question: convert RS232 voltages to RC servo
 
1 Attachment(s)
Quote:

Originally Posted by efoote868 (Post 1175614)
Just to be clear, which circuit were you using? I've been lurking in this thread and have been curious to the solution myself.

FigureH is what we used.
  • Measure the open-circuit voltage and short-circuit current provided by your particular RS232 hardware.

  • Size the resistor to limit the current if necessary.

  • Be careful not to reverse the polarity on the signal to the Victor. RS232 voltage can be as high as 25 volts. Reverse polarity may damage the photocoupler LED in the Vic.


DonRotolo 28-06-2012 21:38

Re: EE question: convert RS232 voltages to RC servo
 
The zener would be useful only if there was a maximum voltage tolerable; that's not the case here. So Figure H would be fine IMHO (and seems like it is). R can be adjusted to limit current if necessary

Ether 19-07-2012 08:45

Re: EE question: convert RS232 voltages to RC servo
 
Quote:

Originally Posted by efoote868 (Post 1175614)
Just to be clear, which circuit were you using? I've been lurking in this thread and have been curious to the solution myself.

If you'd like more information, I've just posted a more detailed explanation in a collection of PDFs here:

http://www.chiefdelphi.com/media/papers/2702

It includes circuit diagrams and complete source code for a demo app to generate the PWM signal with an old unwanted laptop or desktop PC.

Thanks to Eric, Don, Hugh, Al, and others who helped with the circuit stuff.




All times are GMT -5. The time now is 05:51.

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