circuit design for taking high voltage input...

Hi,

I want to use an uno board to power a mechanized prop for a pinball machine mod I am working on. Controlling the prop with relays is no problem but I want to connect the uno's input to one of the flasher bulb circuits to trigger movement of the prop. The issue is that the flasher bulb circuit I want to use for input runs around 24v dc, high current, and will fry the uno if I don't drop voltage somehow. How can I drop voltage without using a regulator that may drain the current, such that the flasher bulb still functions without overloading the circuit? This should be possible since the uno input only requires a trickle of current.

Show us the circuit for how the flasher is connected now.

We can suggest if a mosfet or relay would be the best way.

We

I would use a simple resistor voltage divider. Takes only two resistors.

Like so:

10k
[light +]--VVVVV--+--> [to input]
|

2.2k

|

/ / /

Sorry, in re read I notice you want to use as input not output.

Voltage divider is easiest way. For greater isolation you can use an optoisolator.

Weedpharma

Go for the optocoupler. It will save a lot of pain. :smiley:

10 mA into the optocoupler - 2k2 resistor. Dissipates a quarter watt. If it is never on continuously, a quarter watt resistor would do, otherwise use a half watt.

Output of the optocoupler goes from Arduino input to ground, use the internal pull-up. That is a total of two components.

RadioHacktive:
I would use a simple resistor voltage divider. Takes only two resistors.

Like so:

10k
[light +]--VVVVV--+--> [to input]
|

2.2k

|

/ / /

Without knowing the amperage of the flasher bulb circuit how do you know 10k resistor will drop to correct voltage range?

Thank you!

-----VVVVV----

Clever. I never thought of that. How do you do a vertical resistor ?

|
|

<

10 k
<

|
|

or

|
|

/
\ 10 k
/

/

|
|

?

moses1592:

Voltage divider

You said the light used 24V. The chip input rating for a '1' is from .6VCC to VCC+0.5V. For a 5V chip VCC that means a '1' is anything between 3V and 5.5V. To reduce 24V to something in between, we start with a desired voltage of (3+5.5)/2 or 4.25V. Nice and safe.

Also we don't want to draw too much current from the +24V, so we pick a safe value like .002A. For 19.75V (24v-4.25v) we'd need a resistor that would pass .002 amps, or from Ohm's Law 19.75v/.002A which gives us 9.785k. Closest standard value is 10k.

Now to get near 4.75v at .002A we need something around 2.375k. I don't like to use 5% values that much so instead of 2.4k, I went with 2.2k, a more common junk box value for me. That gives about 4.33V, close enough.

raschemmel:

It doesn't work well at all. The forum wants to format things it's way. I give up. We used to do this all the time on usenet.

Thank you for the thorough explanation! I appreciate it.

For starters, use "code" tags, not "quote" - you want a fixed space font.