Buy an Axon, Axon II, or Axon Mote and build a great robot, while helping to support SoR.
0 Members and 1 Guest are viewing this topic.
Yeah I meant that I need 2 seperate signals.
I think I figured out how I'm gonna do it: I'll take the output of the switch, split it and NOT one branch. Then I'll switch +5V into the whole thing with the button (including the gate). So if the button isn't pressed, everything is zero. If it is pressed, I get two outputs that flip based on the switch. That works, right? (and its only one gate)
Hi,Quote from: pterrus on June 22, 2012, 11:04:02 PMYeah I meant that I need 2 seperate signals.Do you mean that you need an output (from the entire whatever) consisting of two lines that will always be each others complement, as long as the button is pressed?If so, why do you need those anti-"phase outputs, when a microcontroller can act on either one?
Quote from: pterrus on June 22, 2012, 11:04:02 PMI think I figured out how I'm gonna do it: I'll take the output of the switch, split it and NOT one branch. Then I'll switch +5V into the whole thing with the button (including the gate). So if the button isn't pressed, everything is zero. If it is pressed, I get two outputs that flip based on the switch. That works, right? (and its only one gate)Assuming you need the complement output, you can make it with a DPDT switch and a pushbutton, no further circuitry needed - I can draw you a schematic if needed
Quote from: Soeren on June 23, 2012, 12:57:46 PMDo you mean that you need an output (from the entire whatever) consisting of two lines that will always be each others complement, as long as the button is pressed?If so, why do you need those anti-"phase outputs, when a microcontroller can act on either one?Yes, that's what I mean. I'm trying to bypass the microcontroller entirely. I'm running out of ports. :p
Do you mean that you need an output (from the entire whatever) consisting of two lines that will always be each others complement, as long as the button is pressed?If so, why do you need those anti-"phase outputs, when a microcontroller can act on either one?
Quote from: Soeren on June 23, 2012, 12:57:46 PMAssuming you need the complement output, you can make it with a DPDT switch and a pushbutton, no further circuitry needed - I can draw you a schematic if needed Actually that would be awesome. I didn't think of DPDT. I tried to figure it out myself, but the schematic I came up with doesn't seem right (one output is always floating, not sure if that's okay).
Assuming you need the complement output, you can make it with a DPDT switch and a pushbutton, no further circuitry needed - I can draw you a schematic if needed