![]() |
Forum Index : Microcontroller and PC projects : DS18B20 2 or 3 wire?
Author | Message | ||||
Gizmo![]() Admin Group ![]() Joined: 05/06/2004 Location: AustraliaPosts: 5129 |
Hiya Building a solar hot water controller based on the uMite, and will be using a few DS-18B20 senders. Geoffs SC articles show how the sender can be used in either 3 wire or 2 wire with parasitic power configurations. Just wondering, if there was any pro/cons for either? Glenn The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
atmega8![]() Guru ![]() Joined: 19/11/2013 Location: GermanyPosts: 727 |
The datasheet will give you the Answers. nrtfm For short distance and one device parasitic power IS ok. |
||||
Gizmo![]() Admin Group ![]() Joined: 05/06/2004 Location: AustraliaPosts: 5129 |
Yeah that was what I thought. My runs will be up to 3 meters, and there could be a bit of electrical noise on the supply, so I'll use 3 wire. The best time to plant a tree was twenty years ago, the second best time is right now. JAQ |
||||
vasi![]() Guru ![]() Joined: 23/03/2007 Location: RomaniaPosts: 1697 |
Hi Glenn, Always a 3 wire cable and a good library, capable of detecting any error on the bus. The only capable one (detecting bus short circuit, sensor absence, bus error - all very important in critical applications like egg incubators) I saw, was written for AVR microcontrollers. I will try to replicate it for PICs when time will permit. Sometime, a very noisy environment will make the temp. readings impossible so you need to take care when routing the bus. Hobbit name: Togo Toadfoot of Frogmorton Elvish name: Mablung Miriel Beyound Arduino Lang |
||||
Zonker![]() Guru ![]() Joined: 18/08/2012 Location: United StatesPosts: 772 |
Maybe make the run in a fully shielded type cable would help... Also, maybe going to the 5v part might get more distance... I think there might be a repeater IC also... |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |