Hi!
I have an arduino UNO with ethernet shield and 433mhz transceiver and lot of output relays. Now, i'm thinking on using on plastic electric box to put all inside and beautifully connected. But i want the box to have no wires directly connected to the outside, i want to have male and female connectors on the exterior to be able to easy remove the box.
The DC power and ethernet I will use a smal extention to the box and then replicate the connector to the outside, but for the sensors do you advise on using any connector in particular? i would love to buy them for cheap on ebay.
Note, I don't read this forum as much as I used to, so I might not see any replies.
There are many different types of connectors. It depends on what you want to do, how sturdy the connections are, etc.
One is the sensor shields, that bring out most/all pins in rows of 3, with each row having the data, ground, and power option (on some shields, there is an option to provide external power for the power pins). You can pick up servo cables (or make your own) with 3 pins to connect to each device. Here is one such example: http://yourduino.com/sunshop2/index.php?l=product_detail&p=407
If you want to make your own cables, you can get various sized crimp pin connectors (Pololu - Crimp Connector Housings) and either pre-crimped wires or do your own crimping (the page all of the links) to make custom cables. I like having color coded cables for the different connections.
[u]Molex[/u] (or Molex "type") connectors are popular and they come in various sizes and various pin-count configurations, there are panel-mount options and PC board mount options, etc.
Parts Express had a nice picture, but if you live in the U.S. Digi-Key or another large electronics supplier will have a better selection.
The contact pins are normally sold separately, so make sure the pins are compatible with the particular connector housing (check the data sheets). The standard practice is to use male pins in female housings and vice-versa, but they work either way and/or you can mix-and-match. And, buy some extra pins, and maybe extra housings. You might also want a pin-extractor tool (in case you need to re-work something). Sometimes you can remove the pins by using an X-Acto knife to release the catch, but the extractor tool makes it a lot easier.
I haven't had good luck crimping those connectors "at home" with a cheap hobby-crimper, so I usually end-up soldering them. The "real" Molex hand-crimper works well, but it costs a couple hundred dollars.
P.S.
For future reference, you might want to get a printed catalog or two. It's a lot easier to quickly flip-through a catalog to see what's available that to browse the Internet. Jameco has a handy ~200 page catalog, Digi-Key has a massive ~2000 page catalog, Mouser has a catalog (which i don't have).