Arduino Mega IDC connector

1,773 views
Skip to first unread message

Robert Hart

unread,
May 15, 2012, 2:51:43 AM5/15/12
to hackerspac...@googlegroups.com
Hi Guys,

On the Arduino Mega 2560 the digital I/O socket is a 36 way dual row IDC
connector, 32 way plug ribbon cables connector are not that common.
What do people commonly use to attach multi wire cables to this. Surely
that don't just attach a pin at a time or PCB shields.

Robert

Robert Hart

unread,
May 15, 2012, 2:52:45 AM5/15/12
to hackerspac...@googlegroups.com
On 15/05/2012 4:21 PM, Robert Hart wrote:
> 32 way
36way
Message has been deleted

Ken

unread,
May 15, 2012, 8:49:50 AM5/15/12
to hackerspac...@googlegroups.com

Computer drive cables? I have a few laying around.

Ken.

On May 15, 2012 10:16 PM, "Jorn" <dr....@gmail.com> wrote:
>
> I'd suggest one of these Robert, just ignore the extra 4 pins.
>
> http://www.pcaccessories.com/shopexd.asp?id=519&bc=no
>
> Jorn Navarre
>  Manager
>  Gawler Electronics
>  "Great gadgets, quality repairs and techy tools"
>  Ph 08 72 00 55 99
>  Ph 0466 98 11 55
>  gawlerel...@gmail.com
> www.gawlerelectronics.com
> www.facebook.com/GawlerElectronics
>  Gawler 5118


>
> On May 15, 3:52 pm, Robert Hart <rob...@hardhack.org.au> wrote:
> > On 15/05/2012 4:21 PM, Robert Hart wrote:> 32 way
> >
> > 36way
>

> --
> You received this message because you are subscribed to the Google Groups "HackerSpace - Adelaide, South Australia" group.
> To post to this group, send email to hackerspac...@googlegroups.com.
> To unsubscribe from this group, send email to hackerspace-adel...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/hackerspace-adelaide?hl=en.
>

Steven Pickles

unread,
May 15, 2012, 9:01:18 AM5/15/12
to hackerspac...@googlegroups.com
These suggestions are female sockets, Robert is looking for a male plug to plug in to the extended data connector along the back edge of the arduino mega. On any of the projects I've used that need to connect to a few cables, I just ended up wiring directly to male header strips. as soon as that gets too fiddly you probably want to be making a shield. i'm guessing it's a rare case where you want to connect that whole bank of i/o's to one device as a group. normally the shield would be there to route the various i/o's in that bank to whatever connector is appropriate for each device.

pix

Ken

unread,
May 15, 2012, 4:12:50 PM5/15/12
to hackerspac...@googlegroups.com

Computer drive cables with male/male pin strips between?
Ken.

Robert Hart

unread,
May 15, 2012, 7:44:46 PM5/15/12
to hackerspac...@googlegroups.com
Spot on pix, I thought I might be missing something after making this, cheers Robert

Steven Pickles

unread,
May 15, 2012, 7:57:30 PM5/15/12
to hackerspac...@googlegroups.com
Great work, that makes the hacky solution look pretty damned nice :)
cbaddidc.png

Robert Hart

unread,
May 15, 2012, 10:08:40 PM5/15/12
to hackerspac...@googlegroups.com
Sadly I cocked-up the wiring at the other end and now its too short, so I have to do it again :(

Steven Pickles

unread,
May 15, 2012, 10:10:19 PM5/15/12
to hackerspac...@googlegroups.com
I was thinking if you put that header into some perfboard you would have a much more physically robust connector.

Jamie Mackenzie

unread,
May 15, 2012, 10:19:50 PM5/15/12
to hackerspac...@googlegroups.com
Could you use the straight headers you have as a sex-changer and then make use of the female sockets that other have mentioned?

Bit of a hack but that's our middle name :)

Jamie Mackenzie

unread,
May 15, 2012, 10:32:12 PM5/15/12
to hackerspac...@googlegroups.com
Or these seem to suggest that they can be connected to female headers:


I assume you would need to buy some crimp pins or something.

Ken

unread,
May 15, 2012, 10:33:43 PM5/15/12
to hackerspac...@googlegroups.com
Easier to use a female IDC connector and ribbon cable.

Ken.

Robert Hart

unread,
May 15, 2012, 11:32:56 PM5/15/12
to hackerspac...@googlegroups.com
That looks good Jamie and they do have male crimp pins. 
http://littlebirdelectronics.com/products/male-crimp-pins-for-01-housings-100-pack

All Male IDC connectors for ribbon cables have a shroud around the pins, so it would need to be 36way ( which I can't find) to fit over the whole connector on the Mega.  Anything smaller requires the shroud to be snipped off damaging the ribbon cable clamp :(

Robert

Steven Pickles

unread,
May 15, 2012, 11:41:56 PM5/15/12
to hackerspac...@googlegroups.com

I'm in aztronics right now and 40way is quite common. You could bend out the two end pairs of pins to avoid misalignment.

Jamie Mackenzie

unread,
May 15, 2012, 11:45:06 PM5/15/12
to hackerspac...@googlegroups.com
Yeh, I did find that later Robert.  Didn't want to go overboard with the emails though.

Have fun crimping :) 

Damien P

unread,
May 21, 2012, 6:24:48 AM5/21/12
to HackerSpace - Adelaide, South Australia
On May 15, 3:51 pm, Robert Hart <rob...@hardhack.org.au> wrote:
> On the Arduino Mega 2560 the digital I/O socket is a 36 way dual row IDC
> connector,

The SPI pins lie scattered about this header, so keep that in mind if
you need that.

Robert Hart

unread,
May 21, 2012, 8:58:28 PM5/21/12
to hackerspac...@googlegroups.com
Dam!, the website http://arduino.cc/en/Main/ArduinoBoardMega is a little
unclear about pin-outs, isn't it?

I was just going to connect the 18 outputs (+5V TTL Normally High,
Pulses are Low) from pins 36 through to 53. 9 of these outputs are an
X coordinates and the other 9 are a Y coordinates.

I've been more concerned about the electronics of the project
http://www.hardhack.org.au/cosmicpixel rather than the I/O software side
of things.

So I thought I'd just work on that as an ongoing exercise latter once it
was up and running, as I'm a real n00b when it comes to coding an
Arduino. Keep saying I'm going to learn and never get past the first
tutorial.

So I have no idea really how I was going to use the information or how
to process it. Realistically the output of this project will be a
matrix of 81 single colour LEDS (which I know works and can do
relatively easily) and I was hoping something similar on a computer (eg
81 colour blocks on a screen) at some latter stage. Ideally but I think
not realist for me something like this http://youtu.be/YSAC2zvW3uI.

Robert

Damien P

unread,
May 22, 2012, 6:58:12 AM5/22/12
to HackerSpace - Adelaide, South Australia
On May 22, 9:58 am, Robert Hart <rob...@hardhack.org.au> wrote:
>
> Dam!, the websitehttp://arduino.cc/en/Main/ArduinoBoardMegais a little
> unclear about pin-outs, isn't it?

I usually use the schematics; you can't have too much trouble that
way!

> I was just going to connect the 18 outputs (+5V TTL Normally High,
> Pulses are Low) from pins 36 through to 53.   9 of these outputs are an
> X coordinates and the other 9 are a Y coordinates.

I'd probably use pins 22-29 for the X, which is port A, and put the
9th wire on pin 49 (port L pin 0). That way, you could write the data
like this:

int x;
PORTL = x >> 8;
PORTA = x;

You could use pins 30-37 (port C) and pin 41 (port G pin 0) for the Y
axis.

Robert Hart

unread,
May 22, 2012, 7:21:10 AM5/22/12
to hackerspac...@googlegroups.com
Dam so I can't have looking nice and neat :-(


Thanks for the advice nevertheless greatly appreciated. :-)

Damien P

unread,
May 22, 2012, 8:10:57 AM5/22/12
to HackerSpace - Adelaide, South Australia
On May 22, 8:21 pm, Robert Hart <rob...@hardhack.org.au> wrote:
> Dam so I can't have looking nice and neat :-(

You probably could - your code might not look so neat though!

Robert Hart

unread,
May 24, 2012, 1:26:23 AM5/24/12
to hackerspac...@googlegroups.com
Actually that's not too bad at all, I can work with that.

Thank you

Robert

On 22/05/2012 8:28 PM, Damien P wrote:

Robert Hart

unread,
May 25, 2012, 2:19:19 AM5/25/12
to hackerspac...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages