Go Down

### Topic: is there a better way to drop my voltage (Read 2317 times)previous topic - next topic

#### jonisonvespaa

##### Jan 25, 2013, 07:22 pmLast Edit: Jan 25, 2013, 07:32 pm by jonisonvespa Reason: 1
hi,
i m trying to connect to an alarm, when alarm is activated i get a 24v,  using this as an input to my pin, so im going to use a voltage devider to drop down voltage to 5v (should i aim for 4.7v ish? dont want to damage my pin), then a current limiting r into the pin

just wondering if this was the best method for doing? or maby there a better way i could do this?

thank you

#### runaway_pancake

#1
##### Jan 25, 2013, 07:38 pm
opto-interrupter / opto-isolator / etc.
"Who is like unto the beast? who is able to make war with him?"
When all else fails, check your wiring!

#### jonisonvespaa

#2
##### Jan 25, 2013, 07:48 pm
yes i did think of opto-isolator, but i still have to drop the voltage down on tee input, max v in on a 4n25 is 6v, i still have the problem of dropping the v down

#### retrolefty

#3
##### Jan 25, 2013, 07:50 pm
Quote
when alarm is activated i get a 24v

AC or DC?

Lefty

#4
sorry dc

#### cowasaki

#5
##### Jan 25, 2013, 09:05 pm
Simple opto-isolator with voltage divider giving the correct entry voltage and if required current limiting resistor then take 5v from the arduino into one side of the output and the other side will be your 5v to go to the input pin of the arduino with no worries about over voltage or current.

#### Grumpy_Mike

#6
##### Jan 25, 2013, 09:18 pm
Quote
i did think of opto-isolator, but i still have to drop the voltage down on tee input, max v in on a 4n25 is 6v,

Where does it say that in the data sheet then? It is not in the absolute maximum ratings table where I would expect it to be. The input is an LED so there is no maximum input voltage, you just have to limit the current with a resistor.

#### jonisonvespaa

#7
##### Jan 25, 2013, 09:58 pmLast Edit: Jan 25, 2013, 10:12 pm by jonisonvespa Reason: 1
hi mike

what is the absolute maximum voltage of a 4n25? im a bit confused, if thats the case that there is no max voltage on the input side then i dont need to drop the voltage (24v) just limit the current to the led?

would this be ok

thank you

#### Grumpy_Mike

#8
##### Jan 25, 2013, 10:44 pmLast Edit: Jan 25, 2013, 11:47 pm by Grumpy_Mike Reason: 1
Yes although I would make the resistor 2K4 or even 2K7 to keep the current just under 10mA

#### jonisonvespaa

#9
##### Jan 25, 2013, 11:14 pmLast Edit: Jan 25, 2013, 11:31 pm by jonisonvespa Reason: 1
24k or 27k?

im confused, surely using a 2k r would limit the led's current to 12ma why so high?

you mean 2.4k,  2.7k?

#### Grumpy_Mike

#10
##### Jan 25, 2013, 11:48 pm
Quote
you mean 2.4k,  2.7k?

Yes I do sorry.
Original post edited. I am glad you are playing attention.

#### jonisonvespaa

#11
##### Jan 25, 2013, 11:52 pm
many thanks for the help much appreciated.

#### retrolefty

#12
##### Jan 26, 2013, 01:06 am

hi mike

what is the absolute maximum voltage of a 4n25? im a bit confused, if thats the case that there is no max voltage on the input side then i dont need to drop the voltage (24v) just limit the current to the led?

would this be ok

thank you

The input side does however have a maximum reverse voltage rating as all diodes do, and leds tend to have small reverse voltage ratings of around 5vdc or so. So if one is driving the led input of a opto with a AC voltage then it can be damaged even though you have a properly sized current limiting resistors. The common fix to this is to just wire an external reversed biased diode across the input led pins.

Lefty

Go Up