I have 12-24v sensors.

Hello,

I have 12-24v sensors, as I know i can't put them to digitals.

How can i use these sensors to arduino board?

Should i have to buy something like a to convert 24v to 5v?

Any ideas?

Thanks.

You can reduce 24v signals to 5v signals by using two resistors as a voltage divider. You want to divide the voltage by about 5 so you need two resistors of value x and about 4*x. The input pin is connected to ground through the 'x' resistor and the sensor is connected to the input pin through the '4*x' resistor. The standard 10% resistor values of 1.2k and 4.7k will work and give an output voltage around 4.9v.

Thanks for information.

From where i can get these resistors, maybe you can include any link to buy ?

Thanks for your reply :)

control123: Hello,

I have 12-24v sensors, as I know i can't put them to digitals.

How can i use these sensors to arduino board?

Should i have to buy something like a to convert 24v to 5v?

Any ideas?

Thanks.

Can you provide a link to your specific sensors? There is just too much room for misidentifying what you actually might have to give good feedback.

Lefty

control123: From where i can get these resistors, maybe you can include any link to buy ?

You can order them from DigiKey.com if you don't have any electronics parts stores like Radio Shack near you:

1.2k http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=CF14JT1K20CT-ND http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=S1.2KQCT-ND

4.7k http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=CF14JT4K70CT-ND http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=CF18JT4K70CT-ND