Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 11 of 11

Thread: Will this work? -- Connecting two boards using IDC Cable.

  1. #1

    Will this work? -- Connecting two boards using IDC Cable.

    Hey all,

    I’m starting to lay out PCBs for a Teensy synth and I wanted to see if I have a fundamental flaw in my design before I get too far. Any advice would be greatly appreciated. Here are the details:

    The project
    A Teensy-based midi controller/synth with a lot of buttons and knobs.

    Technical Details
    -Teensy 4.1
    -About 64 pots and switches
    -8 analog multiplexers (74HCT4051s)
    -1 quadrature rotary encoder

    This would all be divided into two PCBs and connected by an IDC cable as shown in the diagram below.

    Click image for larger version. 

Name:	Screen Shot 2021-03-06 at 8.13.02 PM.jpg 
Views:	44 
Size:	47.7 KB 
ID:	23947

    The IDC cable would be carrying the following signals:
    -GND (perhaps 2 or 3 pins to ensure a good connection)
    -3.3V to bias the pots
    -5V to power the MUXs
    -S0,S1,S2 signals to the MUXs
    -Analog signals from all the MUXs
    -2 signals from the encoder

    The Question
    If I try to run all of these signals across a short (~3”) IDC cable, am I going to run into a lot of interference and noise? It would be convenient for the design of the synth to have them on separate boards, but I’m wondering if I need to reconsider and squeeze it all on the same board.

    Thanks so much for any advice. I'm always amazed at how helpful everyone is on this forum.
    Last edited by toutant; 03-07-2021 at 12:38 AM.

  2. #2
    Senior Member
    Join Date
    Jul 2020
    Posts
    1,791
    For high speed logic you normally make every 2nd or 3rd wire ground, so that every signal is next to a ground return.

    But how fast are the signals involved? You can probably just distribute the ground and supply wires evenly
    across the ribbon if not so fast.

  3. #3
    Thanks, Mark.

    OK, so perhaps I just need to intersperse ground signals and logic signals and all will be good.

    I don't think the signals will be particularly fast. I'll probably poll the MUXs about 4x/sec.

    Would it make sense to include several Vcc signals in the cable as well? I guess I'm just wondering if I have several ground pins, if I should balance that with several +3.3V pins. (I know very little about EMI.)

  4. #4
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    4,077
    what about driving some gpios as GND output between those pins?

  5. #5
    Senior Member
    Join Date
    Jul 2020
    Posts
    1,791
    An output low isn't a hard ground, might even be better due to the small output resistance reducing reflections,
    I can see that would make pinouts simpler.

    It allows for future expansion of function too...

  6. #6
    Huh. I wouldn't have thought of using GPIOs as extra grounds. My current ground is just running from the voltage regulator.

    What exactly would using the GPIO's ground accomplish? In general is it better to bias pots that are being read by analogRead with ground from the GPIO pins instead of ground from the voltage regulator?

    FWIW here's my current draft of the ribbon cable based on Mark's feedback. I'm duplicating the 3.3V rails as well, although I'm not sure it's necessary. (See this stackexchange if you want to read people arguing about it.)
    Click image for larger version. 

Name:	Screen Shot 2021-03-07 at 10.12.00 AM.jpg 
Views:	30 
Size:	57.3 KB 
ID:	23953

    If anyone has any thoughts on how to improve the layout, I'd love to hear it. Otherwise, I'm gonna build it out and see what happens!

    Thanks all.
    Last edited by toutant; 03-07-2021 at 02:31 PM.

  7. #7
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    1,134
    Why not use a 40 pin IDC cable/socket/plug wired as shown below.
    Click image for larger version. 

Name:	idc cable plug.jpg 
Views:	33 
Size:	23.8 KB 
ID:	23954
    This will result in every other wire being gnd. Also makes it easy making the cable using DIL IDC plugs and sockets.

  8. #8
    Good call. I guess there's no real reason to skimp on pins, and it seems like 40pin is a more common size than 24.

  9. #9
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    4,383
    Quote Originally Posted by toutant View Post
    Good call. I guess there's no real reason to skimp on pins, and it seems like 40pin is a more common size than 24.
    Raspberry Pi uses the 2x20 pin cable, so at least in maker shops, it should be easy to find.

  10. #10
    Update:

    I just got the boards in today and the 2x20 pin with all grounds on one side is working great.

    Click image for larger version. 

Name:	Screen Shot 2021-03-24 at 11.22.39 AM.jpg 
Views:	39 
Size:	114.3 KB 
ID:	24171

    Very clean signals from the MUXs.

    Thanks everyone for your help.

  11. #11
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    1,134
    Glad it worked out for you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •