How do i connect??

hi all

i have some problem with the arduino as this can give 5V o/p, but the device which iam going to connect with arduino is having i/p voltage in the range of +/-10V (as the i/p voltage varies depend on motor position). so how can i connect these both is there should be special circuit in between?? if so what is that and can u give me brief idea of that circuit??

any good ideas!!!

So what your saying is you need to output PWM around 10v?

So u mean that i need an op amp circuit. the device which i am connecting is ce106 ball and beam. As there is a cam follower attached on the back end of beam. So my i/p should vary between +/-10V according to beam position. It can be +10V at one position or 0V or it can be -10v. It should vary in b/w those values. Can u give me an op amp circuit for this...please

thanks

Do you have access to the -10V power rail on the ball & beam? If so you can connect that to the arduino ground then you a voltage divider (4:1) to turn the 20V signal into a 5V signal. This assumes that the power supply for the sensor is floating.

No i don't have access to the -10V. It is a single point i/p in the device it will take the i/p in the range of 10V to -10V as according to the beam position and cam follower. So can u help me with the circuit any ideas

it will take the i/p in the range of 10V to -10V as according to the beam position

Do you actually mean it will set the output to +/- 10V according to the beam position?

I assume you have a ground connection as well otherwise there is nothing you can do.

yes of course there is a gnd port available to the device but the i/p i can give is in range of +/-10V as according to beam position and cam follower i want to vary the voltage. so u mean that to connect the -10V to gnd??

Take a 10V power supply and connect the +ve to the ground of your sensor and the -ve to the ground of your arduino.

Then get a 30K resistor and connect one end to the sensor's output and the other end to the arduino's analogue input. To the same input connect a 10K resistor down to the arduino's ground. Finally connect a diode, cathode to the arduino's +5V and anode to the analogue input.

i/p i can give is in range of +/-10V

STOP SAYING INPUT IT'S AN OUTPUT FROM THE SENSOR!!!