2 power supplies

Discussion in 'General Electronics Chat' started by jludwig83, Aug 5, 2013.

  1. jludwig83

    Thread Starter Member

    Jul 22, 2013
    33
    0
    Hello,
    I am in need for some advice.... I am trying to connect two arduino boards to the same 24dc slave clock coil......each arduino board has a different program that reverses polarity one is set every 60 sec the other is every 2 sec how do I protect the Coil, L293DNE H-bridge and the Arduino board from someone flipping both switches at the same time
     
  2. jludwig83

    Thread Starter Member

    Jul 22, 2013
    33
    0
    this is my diagram I have connected the coil to 2 switches and have 2+ and 2- going to the coil itself and I am using 24vdc not 9
    [​IMG]
     
  3. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    Don't run the motor from the Arduinos 5V regulated output. 24VDC on the Arduino's 5V regulator will make it very hot even without the motor. Once the motor starts it'll probably shutdown the regulator.
     
    jludwig83 likes this.
  4. jludwig83

    Thread Starter Member

    Jul 22, 2013
    33
    0
    ok thanks for the advice but I still have the same issue how would I protect the circuit from burning up if both arduino boards are turned on at the same time
     
  5. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    Why not rethink your design using one Arduino or something more suitable to the job. Post a complete design schematic.

    Why did you start a new thread on the same subject as your previous post? I see no reason a single Arduino couldn't do the job of your dual Arduino version.
     
  6. GopherT

    AAC Fanatic!

    Nov 23, 2012
    6,029
    3,790
    I agree completely. Don't always go with your first design, sometimes you have to step back and ask, does this still make sense? Is there an easier way to do this?

    Proper programming of the Arduino will be easier than a two boards.
     
  7. jludwig83

    Thread Starter Member

    Jul 22, 2013
    33
    0
    Last edited: Aug 6, 2013
  8. jludwig83

    Thread Starter Member

    Jul 22, 2013
    33
    0
    my question is how would the adruino know to change functions after the switches have been cycled switch 4 controls normal clock time and switch 5 is a setting mode that makes the hands move fast around the clock
     
  9. Potato Pudding

    Well-Known Member

    Jun 11, 2010
    684
    92
    XOR gate comes to mind.

    Your description seems very confused, but if you want an output from either signal, but no output when both signals coincide or neither signal is present then that is an XOR gate. This is probably not exactly what you want, and this question is the confusing part of your request. What should happen when you have both signals at the same time? Killing the output is probably not what you want. I suspect you want one signal to get priority.

    Having offered that as a direct answer to your question, you really do need to do this in software, and using only one Arduino will keep the hardware and software more efficient.
     
    jludwig83 likes this.
  10. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    Break down what you want into let's say 2 second intervals. Timer interrupts would come in handy for that, read switches (or better yet their interrupt flags) then some counters, etc...

    Try finding an online flowchart diagrammer and plot out how it works, this can help everyone including yourself visualize your design.

    To become a good programmer you have to be able to describe your problem precisely, us humans can try to guess what you want but computers need it to be exact.
     
  11. jludwig83

    Thread Starter Member

    Jul 22, 2013
    33
    0
    That's exactly what I would need.... now do XOR Gates handle 24vdc
     
  12. jludwig83

    Thread Starter Member

    Jul 22, 2013
    33
    0
    ok so most XOR GATES seem to operate on less than 12vdc would it be safe to assume I can use a resistor to drop the voltage going into the gate then use a capacitor to boost the voltage back up to 24vdc after the gate
     
  13. Potato Pudding

    Well-Known Member

    Jun 11, 2010
    684
    92
    You can use voltage dividers with zener diodes on the bottom = input side to make certain that the voltage you see is correct.

    I still don't know if you really want to kill the output when you have both inputs.

    Blueroom suggested that you do a flowchart, and I would add to that a truth table for your expected outputs.

    Also realize that the LM293 does not really care if you pull both sides of a bridge low or high.

    Try and do a circuit diagram for your design as well.
     
Loading...