Shop OBEX P1 Docs P2 Docs Learn Events
common ground required? — Parallax Forums

common ground required?

coder1024coder1024 Posts: 9
edited 2006-06-28 13:52 in BASIC Stamp
Was hoping someone could give me a sanity check on this.· I have the BASIC Stamp HomeWork Board·and am attempting to receive data from a separate circuit.

My interface between the BASIC Stamp board and this other circuit consists of a data line and a clock line (and a third line I'm watching to signal data availability) and I'm using the SHIFTIN command to read the data.

The other circuit has its own power supply.

My question is as follows.· Are both circuits required to operate from the same power supply so they'll have a common ground?· I'm wondering if powering the BASIC Stamp from its 9V battery and this other circuit from its·batteries is causing a problem since they're not sharing the same ground.

i.e., since I'm using TTL signals to communicate between the microcontroller and the separate circuit, must the ground be common?

·

Comments

  • GadgetmanGadgetman Posts: 2,436
    edited 2006-06-28 11:21
    Yes, the ground MUST be common.

    They can be powered by separate batteries/PSUs, though.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Don't visit my new website...
  • coder1024coder1024 Posts: 9
    edited 2006-06-28 11:35
    Whats the easiest way to establish a common ground? The BASIC Stamp board is powered by its 9V battery and the other circuit is powered by 2 AA batteries.

    I was thinking one possibility would be to just power the second circuit from the BASIC Stamp board, however, this would require changing around the other circuit due to its power requirements.

    Is there an easy way to make the ground common for these? I can't just connect the ground terminals from both circuits together can I?
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-06-28 12:00
    coder1024 -

    You asked:

    "I can't just connect the ground terminals from both circuits together can I?"

    And the answer to that is:

    You sure can, and that's the whole point and purpose of a common ground. You're not supplying power, you're only offering a common ground _reference_.

    Remember that the definition of "voltage" is a difference in potential. Without knowing what ground is (voltage-wise), one can not know what the voltage is. Once the grounds are common, everyone is on the same page, and voltages that are in common become readily apparent, amongst and between the attached devices.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->

    Post Edited (Bruce Bates) : 6/28/2006 12:18:57 PM GMT
  • coder1024coder1024 Posts: 9
    edited 2006-06-28 13:15
    ah... nice. thanks smile.gif
  • allanlane5allanlane5 Posts: 3,815
    edited 2006-06-28 13:52
    Yup, add a fourth wire to your connection for ground, connect it to the BS2 board Vss, connect it to the separate circuit ground, and you should be good to go.

    Now, connecting the PLUS sides of the supplies would be a bad thing to do, but you knew that already.
Sign In or Register to comment.