Ukraine
Offline
Full Member
Karma: 1
Posts: 192
Arduino rocks
|
 |
« on: December 12, 2010, 02:59:32 pm » |
I need to connect temp sensor DS18B20 (parasitically powered) to my device. I'd like to have some socket to plug\unplug it. My first thought was simple headphones jack (stereo for 3 wires or mono for 2 wires). May be I'm missing something?
Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
New York
Offline
Edison Member
Karma: 1
Posts: 1023
E != m*c^2
|
 |
« Reply #1 on: December 12, 2010, 04:15:51 pm » |
Small JST connectors might work, but be careful - some are very tight and you won't have a fun time detaching and reattaching them too often.
|
|
|
|
|
Logged
|
|
|
|
|
Ukraine
Offline
Full Member
Karma: 1
Posts: 192
Arduino rocks
|
 |
« Reply #2 on: December 12, 2010, 04:34:47 pm » |
Thanks for the option, but jacks seems to be easier to get 
|
|
|
|
|
Logged
|
|
|
|
|
London, GB
Offline
Sr. Member
Karma: 7
Posts: 332
Nothing works.
|
 |
« Reply #3 on: December 12, 2010, 04:37:45 pm » |
I've shoved a DS18S20 into the 4-pin female connector of an old CD-rom audio cable.
|
|
|
|
« Last Edit: December 13, 2010, 02:59:25 am by u0421793 »
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3618
@ssh0le
|
 |
« Reply #4 on: December 12, 2010, 09:07:06 pm » |
headphone jacks short out as they are plugged in or yanked out, just something to keep in mind
|
|
|
|
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Phoenix, Arizona USA
Offline
Faraday Member
Karma: 27
Posts: 5078
Where's the beer?
|
 |
« Reply #5 on: December 12, 2010, 11:09:05 pm » |
RJ11?
|
|
|
|
|
Logged
|
|
|
|
|
Ukraine
Offline
Full Member
Karma: 1
Posts: 192
Arduino rocks
|
 |
« Reply #6 on: December 13, 2010, 04:19:12 am » |
Yes, it seems that RJ is the winner, if jacks are shorten while plugging in\out.
|
|
|
|
|
Logged
|
|
|
|
|
Phoenix, Arizona USA
Offline
Faraday Member
Karma: 27
Posts: 5078
Where's the beer?
|
 |
« Reply #7 on: December 13, 2010, 11:10:19 am » |
RJ will probably be the cheapest; another option (more expensive, though) would be round DIN plugs/sockets (standard and mini-sized). Basically, you want to avoid concentric conductor plugs and sockets for anything carrying power. For signal-only connections, such plugs are fine (as long as the plugging/unplugging signal noise won't bother anything or can be filtered).
|
|
|
|
|
Logged
|
|
|
|
|
Ukraine
Offline
Full Member
Karma: 1
Posts: 192
Arduino rocks
|
 |
« Reply #8 on: December 13, 2010, 12:55:51 pm » |
Basically, you want to avoid concentric conductor plugs and sockets for anything carrying power.
What is the reason for this? I've heard something about audio connectors that some of them connect ground first when plugging, others -- signals etc.
|
|
|
|
« Last Edit: December 13, 2010, 12:57:32 pm by artvolk »
|
Logged
|
|
|
|
|
ottawa, canada
Offline
God Member
Karma: 3
Posts: 971
Arduino rocks
|
 |
« Reply #9 on: December 13, 2010, 01:25:24 pm » |
I've used a bunch of simple connectors made i believe by amp. The male part on the PC looks like this  and the part on the connector wie is on the right in the pic below. They come in 2-6 pin configurations and have served me pretty well. 
|
|
|
|
|
Logged
|
|
|
|
|
|