I have 4 12v signals that I would like to switch using a single digital pin.
I need help figuring out how to switch the outputs of a given input. I picked up a few of these 4066 chips and thought it would be good for this given the low resistance.
As i said there are 4 signals on the input (4 wires) and the 4066 chip can be triggered via the digital pin on each one of its 4 control pins. But what I want to accomplish is "output 2" (of the circuit) turned on when the digital pin is low (through the 4066) and "output 1" be triggered when the digital pin is high (some sort of pass through), and "output 1" also be the default output.
I was reading something about a transistor latch where it latches to the last high state - even if triggered by a momentary switch. If the transistor latch is the answer how would i wire one up to experiment with it.
Am I completely off base? I'm teaching myself electrical engineering; I'm not too versed in circuit design, but I like to tinker.
I can't say that I understand what is confusing you. A 4066 switches makes or breaks a circuit between a pair of its pins depending on whether the input for that switch is HIGH or low. You could connect an Arduino I/O pin to the input.
You say "output 2" (of the circuit) turned on when the digital pin is low. What do you mean by "output 2" and what pin do you mean when you say "digital pin".
Basically I want to setup an input that switches between two outputs...
From my understanding; I'm going to turn on either output "A" or output "B" depending on the state of the digital IO pin on the arduino.
Lets just say that IO pin is high: I'd expect output "B" to receive the 4 signals from the original input - my confusion is how do i ensure that output "A" (possibly independent of the 4066) is either "off" or active as the IO pin rises or falls - effectively toggling the outputs...
I'm still confused. And you did not answer my question. Can you make a simple pencil drawing that illustrates what you mean by 'A' and by 'B' and everything else.
Also, what do you mean by the 4 signals from the original input. I thought you just wanted to use a single Arduino I/O pin
What you write probably makes complete sense to you because you have the whole idea in your head. But all we know about it is what you tell us.
Can you make a simple pencil drawing that illustrates what you mean by 'A' and by 'B' and the 4 signals and everything else and post a photo of the drawing. See this Simple Image Posting Guide
Seems OP wants to switch a 12volt signal with 5volt logic.
Can't do that with a 75HC4066 (or 74HC4053).
Can't do that either with a CD4066 or CD4053.
Leo..
I was going to mention that (but had to get to work ).
There is a difference between a "12v signal" and "12 V AC" (RMS). If the signal voltage is constrained to be between 0V and 12 V then the CD4000 series ICs will handle it when powered at 12 V. If the signal was centred on 0V then you could use +/- 6 V supplies. You simply have to arrange the control voltage to switch between those extremes.
Thank you everyone for the replies - sorry if i failed to mention this earlier:
So the input is the signal(s) for a stepper motor. the outputs will be (output1) two steppers and (output2) a single stepper.
the stepper is a Nema17 running at 12V
I would like the end result to be a component that switches an axis (Y axis would be the defaulted output) on my cnc to a rotary attachment - the y axis runs 2 motors and the rotary runs one
The cnc runs off an arduino based RAMBO board - I would like to map and program an empty pin to toggle the 2 outputs (outside the scope of this post). The reason: I dont want to have to open the case and unplug the motors and replace it with the rotary (I switch motors way too often)
rcpilotp51:
So the input is the signal(s) for a stepper motor.
If that means the step and direction signals from an Arduino then you can make up switching circuits with simple AND and OR gates - there is no need for a bilateral switch.
If you are thinking of switching the current between the stepper driver and the stepper motor then DON'T. Disconnecting the connection between the driver and the motor, even very briefly, is likely to destroy the driver. Each motor should be permanently connected to its driver while the system is powered.
A diagram of what you are thinking of doing would be a great help.
And a description of the whole project - so we can understand your questions in the proper context.
rcpilotp51:
Using the menu system in the RAMBO board i would disable the steppers make the switch and then re-enable the steppers.
Do you KNOW that that will successfully protect the driver?
Here is a diagram of what I would like to accomplish.
Assuming that disabling the steppers will protect the driver (and I have no idea whether it will) then it seems to me you should use relays to switch the power so as to have the minimum of resistance in the lines between the driver and the motors.
Wouldn't it make life a lot easier just to add a 5th stepper driver - even if it means wiring two of the drivers separately from the RAMBO board - and add some logic chip(s) to switch the Arduino signal between two drivers?
Or just ditch the RAMBO board and use 5 stepper drivers controlled directly from an Arduino - maybe a Mega if you need extra I/O pins.
Robin2:
Do you KNOW that that will successfully protect the driver?
Assuming that disabling the steppers will protect the driver (and I have no idea whether it will) then it seems to me you should use relays to switch the power so as to have the minimum of resistance in the lines between the driver and the motors.
Wouldn't it make life a lot easier just to add a 5th stepper driver - even if it means wiring two of the drivers separately from the RAMBO board - and add some logic chip(s) to switch the Arduino signal between two drivers?
Or just ditch the RAMBO board and use 5 stepper drivers controlled directly from an Arduino - maybe a Mega if you need extra I/O pins.
...R
You may be thinking of the RAMPS board - the board im using is the RAMBO board with internal drivers for the steppers: Rambo Board
I'm pretty sure that "disabling" the steppers makes them safe to switch...I will do a bit more research on it to find out definately.
I really dont want to change my setup since i have everything working well and paid good money for the RAMBO board.
Does the RAMBO have accessible Arduino I/O pins that could be used to control a 6th stepper driver (I had been assuming it has 4 but I see it actually has 5).
Robin2:
Does the RAMBO have accessible Arduino I/O pins that could be used to control a 6th stepper driver (I had been assuming it has 4 but I see it actually has 5).
...R
yeah. they have exposed pins and i have 2 left available to my setup.