How to use 0-9v to simulate 4 switches?
How to use 0-9v to simulate 4 switches?
(OP)
I am a circuit as attachment, I want to use output 0-9v signal to simulate 4 SWs, what can I do?
Then if my power is 9v, how can I use it for this 3v circuit?
Then if my power is 9v, how can I use it for this 3v circuit?





RE: How to use 0-9v to simulate 4 switches?
It is quite difficult to understand what you are saying. So I respond to what I guess that you want to do. It may be far from what you really meant to ask.
Gunnar Englund
www.gke.org
--------------------------------------
Half full - Half empty? I don't mind. It's what in it that counts.
RE: How to use 0-9v to simulate 4 switches?
In fact, that circuit is a train sound generator for train model, I want to use Lego RCX or PF to control that 4 switches, so that if I set RCX/PF output to 1v, SW1 is on and sound1 on, set output to 2v so SW2 is on and sound2 on, and so on, when set output to 0v, all SWs off and no sounds are on.
May I make sense?
RE: How to use 0-9v to simulate 4 switches?
RE: How to use 0-9v to simulate 4 switches?
RE: How to use 0-9v to simulate 4 switches?
http://homepages.udayton.edu/~hardierc/EGR101/RCX%...
Z
RE: How to use 0-9v to simulate 4 switches?
Then I have about 10 RCXs and I need to use them.
RE: How to use 0-9v to simulate 4 switches?
>http://homepages.udayton.edu/~hardierc/EGR101/RCX%...
I am a software engineer, I am not sure how to extend one SW to four SWs, can you show me a simple circuit?
RE: How to use 0-9v to simulate 4 switches?
As you have a software background, the Arduino suggested earlier might be your best approach. Tie the motor output to an A/D input and then use whatever algorithm you want to control four outputs.
If you want to stay in hardware, you could wire four comparators up to control the four switches. Do you care about the other 12 stages that four bits give you? Use google or DigiKey to pull up a comparator datasheet and you'll see an example circuit.
Z
RE: How to use 0-9v to simulate 4 switches?
RE: How to use 0-9v to simulate 4 switches?
And now you have the name of such a comparator - even a decoded one. Isn't about time that you do some work of your own? This is not "Free Engineering" it is EngTips. Youv'e got the tips. Now start engineering!
A final tip: there's not much left to do when you use a decoded comparator.
Gunnar Englund
www.gke.org
--------------------------------------
Half full - Half empty? I don't mind. It's what in it that counts.
RE: How to use 0-9v to simulate 4 switches?
the standard board. The chip is socketed and that can then be popped out and installed in your custom board. This could be made
very small and cheap by a board house that caters to small lots. Only four functions would be needed. The oscilator could be just
about any close frequency you find cheap on ebay since you don't use timing for serial communications. Power on reset could be just
a resistor and capacitor. The output pins would be connected to a 2.2K/2.2K voltage divider. This would give 2.5V at the input
pin of the sound chip. That should be sufficient to trigger it. Haven't looked it up but the UNO chip may even work on 3.3V the
same as the sound chip eliminating the divider. Uno chips with the bootup are about $5. Another appropriate voltage divider is
needed for the A/D input to bring the voltage down. Use a higher resistance value 22K/22K to give more input protection. Use of
the UNO is open so you would be free to sell this solution to others. This same solution is possible with many other microprocessors.
RE: How to use 0-9v to simulate 4 switches?
RE: How to use 0-9v to simulate 4 switches?
Dan - Owner
http://www.Hi-TecDesigns.com
RE: How to use 0-9v to simulate 4 switches?