I have a rotary encoder (basically a wind vane) that comprises a rotary potentiometer with phased off takes to produce - for any given position of the vane - 3 discrete voltages down the three signal wires. The unit is nominally 12v and the voltages down the signal line vary between nominal 12v and 0v depending on the position of the vane.
In practice the measured voltages are less, with a maximum of maybe 8 or 9v, due probably to the age (20 years) of the transducer and presumably wear and dirt over the contacts etc.
The 3 signal wires are connected to a display instrument that has a needle showing the wind direction. Obviously there are no stops on the display, the needle is free to rotate through 360 degrees in either direction.
The instrument requires no external power supply of it's own to work, the needle is driven by the three signal wires.
I wish to tap those voltages and process them using the ADC element of an Arduino to produce a digital output of wind direction. I have a working set-up based on the transducer alone, i.e. the Arduino reads analog voltages (via a voltage divider, of course!) from 0 to 9v on each signal wire and outputs a digital wind direction. (the algorithm is based upon a ration of (highest voltage - middle voltage)/ (highest voltage-lowest voltage))
The problem is that I have no idea how the display instrument actually works,(bear in mind, it is 20 years old and was probably designed years before that) but what happens is that when you connect it, the voltages on the signal wires all trend towards a similar value. The differences become extremely small. So for example, the open circuit voltages of (say) 8v, 2v, 3v, will - once the display is connected, become something like 2.3v, 2.1v, 2.0v.
The differences (especially after voltage division) are now so small that the Arduino cannot measure accuatrely enough and the calculations to extract the wind direction become very inaccurate.
So I amftersome general guidance as to a way to either (a) measure the open circuit voltage in a way that the connected instrument will not influence it. Suggestions have been to introduce analog optocouplers in the signal lines so that the arduino lies 'upstream' of the o/c or (b) measure the residual voltages with sufficient accuracy to calculate a valid direction.
At this point I need to explain that my knowledge of electronics is pretty much confined to DC, resistors, capacitors and thats it. Semiconductors are a black art to me, so I regret that devices like Op-amps and so on, if needed, will require me to be pointed in a direction where I can also find out the details of any necessary supporting components etc.
Graetful for any pointers. Even if I could just understand how the display 'changes' the voltages, I'd be a lot clearer in my own mind!
Graeme
In practice the measured voltages are less, with a maximum of maybe 8 or 9v, due probably to the age (20 years) of the transducer and presumably wear and dirt over the contacts etc.
The 3 signal wires are connected to a display instrument that has a needle showing the wind direction. Obviously there are no stops on the display, the needle is free to rotate through 360 degrees in either direction.
The instrument requires no external power supply of it's own to work, the needle is driven by the three signal wires.
I wish to tap those voltages and process them using the ADC element of an Arduino to produce a digital output of wind direction. I have a working set-up based on the transducer alone, i.e. the Arduino reads analog voltages (via a voltage divider, of course!) from 0 to 9v on each signal wire and outputs a digital wind direction. (the algorithm is based upon a ration of (highest voltage - middle voltage)/ (highest voltage-lowest voltage))
The problem is that I have no idea how the display instrument actually works,(bear in mind, it is 20 years old and was probably designed years before that) but what happens is that when you connect it, the voltages on the signal wires all trend towards a similar value. The differences become extremely small. So for example, the open circuit voltages of (say) 8v, 2v, 3v, will - once the display is connected, become something like 2.3v, 2.1v, 2.0v.
The differences (especially after voltage division) are now so small that the Arduino cannot measure accuatrely enough and the calculations to extract the wind direction become very inaccurate.
So I amftersome general guidance as to a way to either (a) measure the open circuit voltage in a way that the connected instrument will not influence it. Suggestions have been to introduce analog optocouplers in the signal lines so that the arduino lies 'upstream' of the o/c or (b) measure the residual voltages with sufficient accuracy to calculate a valid direction.
At this point I need to explain that my knowledge of electronics is pretty much confined to DC, resistors, capacitors and thats it. Semiconductors are a black art to me, so I regret that devices like Op-amps and so on, if needed, will require me to be pointed in a direction where I can also find out the details of any necessary supporting components etc.
Graetful for any pointers. Even if I could just understand how the display 'changes' the voltages, I'd be a lot clearer in my own mind!
Graeme