Go to Post A good thing to do when thinking about designs like this, ask yourself "what do I gain?" - lemiant [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-06-2012, 21:56
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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
EE question: convert RS232 voltages to RC servo


Looking for EE's to comment please.

I want to convert a -12V to +12V PWM signal to RC servo voltage levels (0 to +5V), with sufficient current to reliably drive a Victor.

I cannot locate any specs for the Victor's input impedance and required minimum input voltage.

I'm thinking a simple circuit like this will do the job. The questions I have are these:

- Is 1200 ohm a small enough output impedance to reliably drive the Victor's input?

- Is the 2.7MegOhm small enough to allow the 12V input to drive the 2N3904's base?

- Will the transistor operate as desired (i.e. shut off) with a -12V signal at the base, without damaging the transistor?

- Will these resistance and voltage values keep the 2N3904 within a safe operating range ?



Last edited by Ether : 18-06-2012 at 22:04.
  #2   Spotlight this post!  
Unread 19-06-2012, 03:31
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: EE question: convert RS232 voltages to RC servo

Victors are opto-isolated, so really you just need to get your current in to the right range. You should be able to do this with a resistor and a(n optional?) diode (to be nice to the LED in the opto at -12V.

I'm not sure what value resistor would be best.

Your base resistor seems a bit high by my math, I'm not convinced it will turn on enough to register as a low... but my BJT math is extra rusty. I'd replace the BJT with a FET and lower the gate resistance to 100k, like the digital-age/class-D EE whippersnapper I am.
  #3   Spotlight this post!  
Unread 19-06-2012, 06:58
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: EE question: convert RS232 voltages to RC servo


Am I interpreting your suggestions correctly?


And, does anyone have specs on:
  • what minimum input voltages the Vic requires in order to operate correctly, and

  • what input voltages the Vic can tolerate without damage, and

  • what is the input impedance of the Vic?


  #4   Spotlight this post!  
Unread 19-06-2012, 08:47
Hugh Meyer's Avatar
Hugh Meyer Hugh Meyer is offline
Registered User
FRC #1741 (Red Alert Robotics)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Greenwood Indiana
Posts: 158
Hugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud of
Re: EE question: convert RS232 voltages to RC servo

Ether,

As Eric said the input is an opto isolator. If you look at the schematic for the Jaguar, it is very similar, but not identical. A few years ago I made a device that would drive the victors and found it required about twice as much current as the Jaguars. I wanted the same device to drive either.

On your drawing you didn't say if the other side of the input was going to + vcc or gnd. If it is going to gnd, then 1200 will not supply enough current.

I will try to dig up the stuff I used. Seems like I remember it needed to be in the 400 ohm range.

-Hugh
  #5   Spotlight this post!  
Unread 19-06-2012, 08:50
Hugh Meyer's Avatar
Hugh Meyer Hugh Meyer is offline
Registered User
FRC #1741 (Red Alert Robotics)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Greenwood Indiana
Posts: 158
Hugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud of
Re: EE question: convert RS232 voltages to RC servo

Ehter,

Check out this thread, if you had not already.

http://www.chiefdelphi.com/forums/sh...ghlight=victor

Hugh
  #6   Spotlight this post!  
Unread 19-06-2012, 11:41
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: EE question: convert RS232 voltages to RC servo

Quote:
Originally Posted by Hugh Meyer View Post
Thanks for the link, Hugh.

In that thread, Don Rotolo posted:

Quote:
Originally Posted by DonRotolo View Post
you can use a 5.1 volt Zener diode (and a low-value series resistor) to clamp the input voltage to 5 volts or so.
Like this? That seems to me to be the safest way to proceed, since my concern is to make sure I do not damage the Victor:
  • As long as the zener doesn't burn up, it protects the Vic by limiting the positive voltage to +5 volts applied at the Vic's input

  • The zener also limits the negative voltage applied to the Vic input to approx -0.7 volts instead of -12V (as Eric suggested)

  • The value of resistor R1 becomes less critical. It just needs to be large enough to prevent the zener from burning out, and small enough to assure that the voltage drop across it doesn't drop the Vic input voltage below 5 volts. Since Hugh indicated that 1200 ohms series resistance worked well with an 8-volt supply, I'm guesstimating maybe 1800 ohms for R1 would be a good choice for my 12 volt signal?


  #7   Spotlight this post!  
Unread 19-06-2012, 14:00
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: EE question: convert RS232 voltages to RC servo

I suggest a fully series circuit: +/-12V -> diode -> resistor -> PWM input -> return.

Lets take a look at the jaguar because we have a schematic available for it. Its PWM input stage is a H11L1M in series with 150 Ohms.

The H11L1M has a threshold current of 1.6mA, and can handle up to 60mA continuous. It specs forward voltages at 10mA in the 1.2 to 1.5V range. It can only handle up to 6V in reverse.

Lets target 3mA. The forward voltage is in the 1 to 1.3V range (Figure 6 plus slop), and lets say that our series diode's forward voltage is .3V. Total silicon drop is somewhere between 1.3V and 1.6V, lets call it 1.5V. Our resistance should be (12V - 1.5V) / 3 mA = 3.5kOhm

Zener-ing it can be made to work, but that is more appropriate for a voltage-mode input. The Jaguar and Victor both have current mode inputs.
  #8   Spotlight this post!  
Unread 19-06-2012, 15:15
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: EE question: convert RS232 voltages to RC servo

Quote:
Originally Posted by EricVanWyk View Post
I suggest a fully series circuit: +/-12V -> diode -> resistor -> PWM input -> return. ... The H11L1M ... can only handle up to 6V in reverse.
Doesn't there need to be a charge-drain resistor R2 to prevent reverse voltage across the H11L1M diode when the signal is -12 volts?


Attached Thumbnails
Click image for larger version

Name:	series.jpg
Views:	58
Size:	21.4 KB
ID:	12841  

Last edited by Ether : 19-06-2012 at 16:18. Reason: added hand sketch
  #9   Spotlight this post!  
Unread 19-06-2012, 16:28
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: EE question: convert RS232 voltages to RC servo

Quote:
Originally Posted by Ether View Post
If I put 12 volts reverse voltage across 2 diodes in series, won't I have 6V reverse voltage across each one? That's awful close to the max allowed for the H11L1M.

Shouldn't there be a resistor R2 across the H11L1M inputs to prevent this?
This is where things get painfully handwavy, because we are outside of what the datasheet specs. Also, you can't really assume that 12V/2 = 6V. You can think of diodes in series as a resistor divider where the resistors are extremely non-linear and suffer huge part to part and thermal variation. The math gets ugly and full of conflating variables. Make conservative assumptions and eliminate as much noise as possible, expect an answer with >=1 significant figure

Take the 1N914, selected by sorting digikey by price and choosing the first one with a decent datasheet. Figures 1 and 2 show reverse bias current curves, and are in the 20nA range for 12V. I'm confident the LED can handle this 20nA of reverse bias because at 3V in reverse it is leaking up to 10uA. The 6V number on the H11L1M sheet means that 6V @ zero ohms is being applied and survived forever in a worst case manufacturing / temperature scenario.

Another option is to put the diode antiparallel across the LED. The disadvantage is that it conducts in both directions. The advantage is that it is easy to prove from the datasheets that everything will be ok.
  #10   Spotlight this post!  
Unread 19-06-2012, 17:11
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: EE question: convert RS232 voltages to RC servo

Quote:
Originally Posted by EricVanWyk View Post
Another option is to put the diode antiparallel across the LED. ... The advantage is that it is easy to prove from the datasheets that everything will be ok.
That's kind of what I had in mind when I drew Figure C for post #3.

Hugh mentioned in an earlier post that the Victor requires about twice as much input current as the Jag. So make the Vic 6ma. Divide that into 12 volts to get approx 2000 ohms for the resistor in Figure C.

Other than mail order and Radio Shack, are there any other places any more that might carry small electronic parts like resistors and diodes? For example, would RC hobby stores carry stuff like that?

I used to have drawers full of parts, collected from old radios and TVs and hi fi equipment I disassembled. Somewhere along life's road and many moves they got lost or discarded.


  #11   Spotlight this post!  
Unread 19-06-2012, 19:39
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: 6,033
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: EE question: convert RS232 voltages to RC servo

Quote:
Originally Posted by Ether View Post
Other than mail order and Radio Shack, are there any other places any more that might carry small electronic parts like resistors and diodes? For example, would RC hobby stores carry stuff like that?
not likely. Digikey is your friend.

Quote:
I used to have drawers full of parts, collected from old radios and TVs and hi fi equipment I disassembled. Somewhere along life's road and many moves they got lost or discarded.
I know where mine went....the kid in college taking Computer Engineering has them. And he actually builds stuff.
  #12   Spotlight this post!  
Unread 19-06-2012, 20:04
EricH's Avatar
EricH EricH is online now
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,825
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: EE question: convert RS232 voltages to RC servo

Quote:
Originally Posted by squirrel View Post
not likely. Digikey is your friend.
I ran into something like this a couple weeks back... and there is one other place. However, in MI (and most other states), it's mail order. squirrel, you're in the same boat unless you're making a run to Phoenix or Tempe.

Fry's Electronics is that rare store that sells both consumer electronics and electonic parts in the same place. They are online, too--http://www.frys.com/template/index/--but like I said, they aren't in MI. They're strongest in CA and TX, though there is one in IL (Chicago area) and one in IN (Indianapolis area).
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #13   Spotlight this post!  
Unread 19-06-2012, 21:31
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: EE question: convert RS232 voltages to RC servo


Would this work? No +5V supply required. R1 = 1200 ohms, R2 = 5600 ohms. I have these parts on hand.

My main question is, would the +/-12V on the base turn the transistor on and off without damaging it?


Attached Thumbnails
Click image for larger version

Name:	1212.jpg
Views:	58
Size:	25.5 KB
ID:	12842  
  #14   Spotlight this post!  
Unread 20-06-2012, 19:13
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: EE question: convert RS232 voltages to RC servo


The PWM outputs from the digital sidecar: can anyone tell me what their output impedance is please?


  #15   Spotlight this post!  
Unread 20-06-2012, 19:19
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: EE question: convert RS232 voltages to RC servo

The schematic shows 330 ohms in series with the driver chip output.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
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 19:50.

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