Previous in Forum: transformre oil level indicators   Next in Forum: Electric Speed Controls
Close
Close
Close
40 comments
Rate Comments: Nested
Anonymous Poster

Voltage Divider

10/05/2009 8:10 AM

Ok here is what I am doing. I have an analog joystick and I am reading the voltage outputs from the x-axis. at neutral it sits at 4.67V when I move left it rises to 4.98V and when I move right it lowers to 4.40V.

Now I'm trying to reduce the voltage output with a simple divider because the arm module I have cannot go beyond 3.3V as an input, but the output gets all out of wack not just on the otherside of the divider but the original input changes ( neutral is .13V, left is 4.3V, right is .03V before divider). And I have tried different resisters in this divider.

Does anyone have an idea how I can obtain the output I desire by any other means or help with a better divider design? without opening up the joystick.

Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#1

Re: Voltage Divider

10/05/2009 9:35 AM

Sounds like your divider chain has too low a resistance, & is loading the output from the joystick. What are the highest resistor values you tried? What is the input impedance of your measuring device? What's the input impedance of the arm module?

__________________
"Love justice, you who rule the world" - Dante Alighieri
Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#2

Re: Voltage Divider

10/05/2009 10:26 AM

I suspect that you do not understand what John is quite accurately asking for. So I'll give you a few simple tests that you should do. I suspect also that you do not have a schematic of the potentiometers used in your joystick nor the schematic of what you wish your joystick to connect to. So this is how to test their source and input impedances. The simplest analog joystick signal will be just a potentiometer. It maybe easier to power your joystick with a separate supply for these tests. Now power your joystick without connecting it to your controller electronics. Measure the output voltages with a high input impedance device like a digital volt ohm meter at mid-point setting, fully forward and fully backwards. (This might be what you already did but one needs to know the test circuit , not just the numbers from the test.) Now return to your mid-point position. If you add a fixed resistor now in parallel with your volt meter and the voltage drops precisely in half, the resistor you added will be the output impedance of the joystick at mid-point. But don't go nuts trying to find this by putting in different resistors. As long as a significant voltage change is noticed, recorded and the fixed resistor value is recorded; the output impedance of the joystick can be calculated. With the load resistor still in place, record the new fully forward and fully backwards settings. (Sometimes the output impedance significantly changes with an analog signal.)

Now to measure the input impedance of your electronics will be similar but with less steps. Take a AA battery and record the voltage across the battery. Add a series resistor to the battery and connect this resistor and battery combination to the input of your electronics. Once again when the voltage at the input electronics is exactly at half of the battery voltage, the series resistor has the same value as the input impedance. If a 510K series resistor will not drop the voltage in half, we'll just accept that you have a high input impedance. This may happen.

Once you return this collection of data, I'm certain a simple accurate circuit to meet your needs can be fabricated.

(I do wish that people who start a question would have to sign in with a name.)

__________________
"Don't disturb my circles." translation of Archimedes last words
Reply
Commentator

Join Date: Mar 2009
Location: Southern California
Posts: 97
Good Answers: 15
#3

Re: Voltage Divider

10/05/2009 11:30 PM

A voltage divider is simple but perhaps too simple in this case. If you put the joystick output onto one end of a two-resistor network and take the arm input between the two resistors (the textbook way of using s voltage divider), you don't have isolation between the output of the voltage divider and the arm module. The arm module is parallel to one of the resistors in your voltage divider network, so if the arm has low input impedance it doesn't really matter what resistor is in the voltage divider.

Why not use an opamp instead of a resistor network? That way you have isolation between the joystick and the arm module, and you can choose whatever voltage range you want for the output of the opamp.

Reply
Active Contributor

Join Date: Oct 2009
Location: Stockton/Chico California
Posts: 11
#4
In reply to #3

Re: Voltage Divider

10/05/2009 11:40 PM

So I made a profile now, so i'm not a guest.

Hey that sounds really good. I may just try to do that then. Thanks for the input.

__________________
"ABILITY is what you are capable of doing. MOTIVATION determines what you do. ATTITUDE determines how well you do it." -- Lou Holtz
Reply
Commentator

Join Date: Mar 2009
Location: Southern California
Posts: 97
Good Answers: 15
#5
In reply to #4

Re: Voltage Divider

10/05/2009 11:53 PM

Welcome to CR4! There are some mighty smart people here. Be careful, some of them might be your professors!

Reply Off Topic (Score 5)
Guru

Join Date: May 2006
Location: Placerville, CA (38° 45N, 120° 47'W)
Posts: 6215
Good Answers: 248
#6
In reply to #4

Re: Voltage Divider

10/06/2009 12:05 AM

Thanks for registering, and welcome to CR4!

__________________
Teaching is a great experience, but there is no better teacher than experience.
Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#10
In reply to #3

Re: Voltage Divider

10/06/2009 9:18 AM

Yes a simple divider maybe too simple. That's why I asked for specific testing to be done to determine what will work before trying a dozen circuit configurations. Just a simple engineering practice I've found useful over the years. When you don't know what you have, find out before you waste your time.

__________________
"Don't disturb my circles." translation of Archimedes last words
Reply
Guru

Join Date: Feb 2006
Posts: 1758
Good Answers: 6
#7

Re: Voltage Divider

10/06/2009 4:08 AM

Regards.

It seems that the Out=put Impedance Zout is too high causing a low ''Fan-out'' ie cannot handle more current.

As the supply to Joystick control is built in [rather drawn from internal supply & usually through voltage dividerss so no further dividers can be derived.

Add a non-inverting amplifier with sufficient ''Fan-out'' between Joy-stick control points the control-voltage

or

build your network direcly from a separate power supply for your control network.

Reply
Power-User
Hobbies - CNC - New Member Hobbies - Musician - New Member

Join Date: Jan 2007
Location: South Africa Johannesburg
Posts: 187
Good Answers: 3
#8

Re: Voltage Divider

10/06/2009 5:41 AM

Can you run the joy stick on 3.3V?

__________________
Think and move like an electron
Reply
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#9

Re: Voltage Divider

10/06/2009 8:39 AM

GUEST,

IF THIS THE TYPE OF JOYSTICK THAT YOU HAVE THE OUPUTS DEPEND ON THE LOAD OF THE EQUIPMENT INPUTS FROM THE RHEOSTAT WIPERS AT PINS 3, 6, 11 & 13 TO PROVIDE A VARIABLE CURRENT.

YOU WOULD HAVE TO GROUND THE OPEN ENDS OF THE RHEOSTATS TO MAKE THEM INTO POTENTIOMETERS AND REDUCE THE DC VOLTAGE APPLIED TO PIN 1 AND 9 TO GET 0 TO 3.3 VOLTS OUTPUT FOR A VARIABLE VOLTAGE.

THAT'S THE BEST I CAN DO WITH THE LIMITED INFO PROVIDED.

JON

Reply Score 1 for Good Answer
Active Contributor

Join Date: Oct 2009
Location: Stockton/Chico California
Posts: 11
#11

Re: Voltage Divider

10/06/2009 2:56 PM

The joystick needs the +5Vdc input. and the pinout does not work that way.

Its a Sidewinder 3D Pro running as a simple analog joystick without the drivers for it.

heres the pinout.. http://www.allpinouts.org/index.php/PC_Gameport

__________________
"ABILITY is what you are capable of doing. MOTIVATION determines what you do. ATTITUDE determines how well you do it." -- Lou Holtz
Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#12
In reply to #11

Re: Voltage Divider

10/06/2009 3:49 PM

Ok cool, if the analog circuit diagram is precisely what your link shows (particularly that the potentiometers are 100k) then building one +3.3V reference supply (the maximum input voltage) to replace the +5V into the joysticks will solve your problem for both axes. The simplest reference would be a resistor zener combination. A 1N4728A zener diode will do. The anode of the diode goes to ground. The cathode (color band) of the diode goes to the +3.3V joystick input (formerly the +5V pin 1). Lastly the resistor goes from the +5V supply to the common node of the diode cathode and the joystick supply. This resistor should be 5.6Ω<Rs≤Rl*1.7/6.6. Now Rs is the series resistor that you are adding. Rl is the input impedance of your electronics. To measure the input impedance you can just use your volt meter's resistance measurement capability instead of the complicated method I previously described. To minimize power consumption I would choose Rs≈Rl/4.

__________________
"Don't disturb my circles." translation of Archimedes last words
Reply
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#15
In reply to #12

Re: Voltage Divider

10/06/2009 4:38 PM

Like Redfred said:

Rs 5.6Ω

Jon

Reply Score 1 for Good Answer
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#17
In reply to #15

Re: Voltage Divider

10/06/2009 5:08 PM

Wait a minute, you gave us the data needed to calculate your input impedance if the potentiometer values are 100K. 4.4V/Rl=5.0V/(Rl+100K) → Rl= 440K/0.6≈730K. So with that high of an input impedance you must get into the joystick and ground the unconnected potentiometer end as kudukdweller9 drew here. (Nice work by the way ) But to save some power and to not overheat anything I would make Rs≈18K. This will keep the zener always in the avalanche region providing sound regulation.

__________________
"Don't disturb my circles." translation of Archimedes last words
Reply
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#21
In reply to #17

Re: Voltage Divider

10/06/2009 5:18 PM

Red,

That's better.

Jon

Reply
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#13
In reply to #11

Re: Voltage Divider

10/06/2009 4:03 PM

ChicoEE,

What I said before still applies.

If this is the Joystick that you have it depends on the load of the equipment inputs from the Rheostat wipers at Pins 3 & 6 to provide a variable current.

You would have to ground the open ends of the Rheostats to make them into Potentiometers and reduce the DC Voltage at Pin 1 to about 3.3 Volts using "Vreg" for the desired variable Voltage in the 0 to 3.3V range.

Jon

Reply Score 1 for Good Answer
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#14
In reply to #13

Re: Voltage Divider

10/06/2009 4:34 PM

kudukdweller9,

You will get a more accurate response by attaching the unused potentiometer end to ground. But this will require minor rewiring of the joystick. Also without knowing the input impedance of the sensing electronics one cannot design or select a suitable +3.3V regulator.

__________________
"Don't disturb my circles." translation of Archimedes last words
Reply
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#16
In reply to #14

Re: Voltage Divider

10/06/2009 5:02 PM

Red,

"attaching the unused potentiometer end to ground"

I said grounding the unused Rheostat end makes it a potentiometer and the wiper will then go from 5 volts to zero volts.


The input impedance of the electronics is usually quite high for the sake of linearity.

Jon

Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#18
In reply to #16

Re: Voltage Divider

10/06/2009 5:11 PM

Quite correct. Notice the GA I gave you and my slight change of Rs to keep things cool.

__________________
"Don't disturb my circles." translation of Archimedes last words
Reply
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#22
In reply to #18

Re: Voltage Divider

10/06/2009 5:20 PM

Thanks Fred,

Reply
Active Contributor

Join Date: Oct 2009
Location: Stockton/Chico California
Posts: 11
#19

Re: Voltage Divider

10/06/2009 5:14 PM

Well I took apart the 15pin connector and there were only 10 wires connected. The pins at 6,8,9,13,15 have no connection with this pin or the circuit. And I tried to get some sort of a datasheet for the Sidewinder 3d pro, but to no avail. Even without those grounded I have obtained outputs.

So you're pretty much saying not to use an opamp to get the voltage drop? and change the input voltage just to 3.3V while grounding those pins that are not connected?

David

__________________
"ABILITY is what you are capable of doing. MOTIVATION determines what you do. ATTITUDE determines how well you do it." -- Lou Holtz
Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#20
In reply to #19

Re: Voltage Divider

10/06/2009 5:18 PM

Yep. See the schematic that kud.9 drew up. You will have to ground the unused potentiometer end though.

__________________
"Don't disturb my circles." translation of Archimedes last words
Reply
Active Contributor

Join Date: Oct 2009
Location: Stockton/Chico California
Posts: 11
#23
In reply to #20

Re: Voltage Divider

10/06/2009 5:22 PM

yes I misread his response and it through me off. Cuz I did not follow right away.

So I'm grounding out which side?or which pins?11,13? or must I open up the joystick and ground that?

I wouldn't have thought this joystick would be beyond me...lol

__________________
"ABILITY is what you are capable of doing. MOTIVATION determines what you do. ATTITUDE determines how well you do it." -- Lou Holtz
Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#24
In reply to #23

Re: Voltage Divider

10/06/2009 5:26 PM

Sorry to say but you have to open the joystick. You will find for each axis of motion a three lead part with only two wires on it. You must add a ground wire to the unused lead.

__________________
"Don't disturb my circles." translation of Archimedes last words
Reply
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#25
In reply to #19

Re: Voltage Divider

10/06/2009 5:35 PM
Reply
Active Contributor

Join Date: Oct 2009
Location: Stockton/Chico California
Posts: 11
#26
In reply to #25

Re: Voltage Divider

10/06/2009 6:06 PM

yes that is, where did you find that? I've been trying to find something similar. so i took it apart and I do not see where the pin I need to set to ground is.

__________________
"ABILITY is what you are capable of doing. MOTIVATION determines what you do. ATTITUDE determines how well you do it." -- Lou Holtz
Reply
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#29
In reply to #26

Re: Voltage Divider

10/06/2009 6:11 PM

ChicoEE,

Google as usual.

Jon

Reply
Active Contributor

Join Date: Oct 2009
Location: Stockton/Chico California
Posts: 11
#31
In reply to #29

Re: Voltage Divider

10/06/2009 6:14 PM

Well thanks a bunch for the ideas i do appreciate it. and sorry to have misled, I did not understand how the sidewinder actually operated.

Back to the drawing board.

Thanks again,

David

__________________
"ABILITY is what you are capable of doing. MOTIVATION determines what you do. ATTITUDE determines how well you do it." -- Lou Holtz
Reply
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#27
In reply to #19

Re: Voltage Divider

10/06/2009 6:07 PM

ChicoEE,

Forget it.

The Joystick needs the 5 volts to operate optical devices and ICs in it.

After digging through the net I found that you had no idea what was in the Microsoft Sidewinder 3d pro controller and having been mislead by you we gave you wrong information.

The Joystick uses optical position sensors and the outputs are from some kind of processing ICs.

Your task is not simple.

Jon

Reply
Active Contributor

Join Date: Oct 2009
Location: Stockton/Chico California
Posts: 11
#28
In reply to #27

Re: Voltage Divider

10/06/2009 6:10 PM

Well I misled myself, I was assuming it was a basic analog joystick. Yea I had no idea what was entailed.

So Ideas? or would using the opamp idea be ok for that voltage drop?

__________________
"ABILITY is what you are capable of doing. MOTIVATION determines what you do. ATTITUDE determines how well you do it." -- Lou Holtz
Reply
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#30
In reply to #28

Re: Voltage Divider

10/06/2009 6:14 PM

CicoEE,

The whole mess requires drivers to operate on a computer.

Jon

Reply
Active Contributor

Join Date: Oct 2009
Location: Stockton/Chico California
Posts: 11
#32
In reply to #30

Re: Voltage Divider

10/06/2009 6:19 PM

and that's not what I am going for. Trying to use this to control a turret based on the voltage given and then writing code to appropriate the PWM output on the motors.

zero to min to max input changes speed, direction and then duration of input to output.

Thanks for the input though.

__________________
"ABILITY is what you are capable of doing. MOTIVATION determines what you do. ATTITUDE determines how well you do it." -- Lou Holtz
Reply
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#33
In reply to #32

Re: Voltage Divider

10/06/2009 6:27 PM

ChicoEE,

Using an O'scope it would be interesting to see what kind of outputs follow movement of the stick.

Jon

Reply
Active Contributor

Join Date: Oct 2009
Location: Stockton/Chico California
Posts: 11
#34
In reply to #33

Re: Voltage Divider

10/06/2009 6:38 PM

Well from what I have measured on the x&y axes before I took it apart it was a steady 4.67V at zero point then a max and min when moving left to right at 4.36V to 4.99V.

and the firing trigger is a digital high until pulled.

__________________
"ABILITY is what you are capable of doing. MOTIVATION determines what you do. ATTITUDE determines how well you do it." -- Lou Holtz
Reply
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#35
In reply to #34

Re: Voltage Divider

10/06/2009 6:49 PM

ChicoEE,

X and Y sounds like an Analog to digital function at work.

Jon

Reply
Active Contributor

Join Date: Oct 2009
Location: Stockton/Chico California
Posts: 11
#36
In reply to #35

Re: Voltage Divider

10/06/2009 7:01 PM

Kud,

So are you thinking that I could not translate that to perform the actions I desire?

But the voltages do change depending on the angle as well, so a smaller angle say to the left would represent 4.7V up until the max angle giving the max voltage.

I spoke with some others in another forum about the joystick and I got responses saying if I did not use the drivers then it would function as an analog joystick with digital high buttons.

David

__________________
"ABILITY is what you are capable of doing. MOTIVATION determines what you do. ATTITUDE determines how well you do it." -- Lou Holtz
Reply
Guru

Join Date: Jan 2009
Posts: 1011
Good Answers: 25
#37
In reply to #36

Re: Voltage Divider

10/06/2009 7:15 PM

David,

I think you could "jerry rig" a translator for the analog to get it in the range you need.

Sounds like an interesting project.

Jon

Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#38
In reply to #36

Re: Voltage Divider

10/06/2009 7:23 PM

(I think we've talked about this before ...)

In the light of new information: without the drivers it will emulate a simple analog joystick - but only when connected to a gameport.

A circuit with a 5V supply and an op-amp or two - & maybe a couple of comparators for the button signals - should be able to give you, say, 0.3V to 3.0V, centered on 1.65V, for the joystick output, and maybe button signals switching between 0.3 and 3V, all suitable for input to your arm module (whatever that may be).

Maybe someone here has an hour or two to spare?

__________________
"Love justice, you who rule the world" - Dante Alighieri
Reply
Active Contributor

Join Date: Oct 2009
Location: Stockton/Chico California
Posts: 11
#39
In reply to #38

Re: Voltage Divider

10/06/2009 7:29 PM

Well I'm going to try to use a difference amplifier and see how that works. Theoretically by calculation it gives me centered at 1.5V a min of .45V and a max of 3.1V

Just need to go to a lab and test it since I do not have all the equipment here at my house.

Thanks,

David

__________________
"ABILITY is what you are capable of doing. MOTIVATION determines what you do. ATTITUDE determines how well you do it." -- Lou Holtz
Reply
2
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#40

Re: Voltage Divider

10/07/2009 9:57 AM

Wow this suddenly got very complicated. Welcome to the digital world. ChicoEE, I know that you did not intend to mislead us but what you actually have and what you thought you had are so different that it will be difficult to help you in this forum.

Your primary problem will now be convincing people here what your information means. Again this won't be because of any deception by yourself but we will not have much confidence in the information you bring us. For an example, the voltages you cite are three digit numbers. This implies that you obtained this information using a hand held digital volt meter. In reply #33 the idea of using an oscilloscope to look at the time based signals out of this sidewinder joystick was proposed. You did not respond to this query by saying that you did not have access to an oscilloscope, ask what an oscilloscope does, ask why this would matter or explain that the output signal you measured earlier with an oscilloscope did not vary with time so you choose to record data with the higher resolution of a hand held voltmeter. Instead you repeated the data from your original posting but with an emphasis that the voltage was steady. Well with the nominal tenth of a second response time of a hand held voltmeter, a serial data stream would look like a steady voltage.

As you've noticed, there are several people here who enjoy the mental challenge of remote troubleshooting. Since we don't have the hardware in front of us we must ask questions to determine what you have so we can help. Most of the questions will end up not being relevant, but we don't know that until we ask. Some of the questions may baffle you. Ask us then what our techno-babble means. But if you don't respond to our questions, we cannot help you.

__________________
"Don't disturb my circles." translation of Archimedes last words
Reply Good Answer (Score 2)
Reply to Forum Thread 40 comments

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

ChicoEE (11); dkwarner (1); Haajee (1); JohnDG (2); kudukdweller9 (13); madness (1); Mitsurati (2); redfred (9)

Previous in Forum: transformre oil level indicators   Next in Forum: Electric Speed Controls

Advertisement