1-wire
I'm interested if somebody in this forum have experinced circuits with multiple 1-wire devices. I have since years used multiple SS18S20 (8 of them) with a Stamp 2p. The pull up resistor has not been at 4,7 K closer to 700 ohm. Now adding 6 more sensors I using a adj resistor (10 rev) and manage to get all sensor to work but not in stable conditions, pull up resistance about 300 ohm. I can fine tune the pull up to work, but suddenly it drops out and reading either 0 or 32 (I'm on celsius).
Long cables?, about 30 meter in total, 2 junction boxes in serie with 5 plus 9 sensors (cable length from 1/2 meter to 2 meters).
It could be many sources causing issues, the adj resistor is mounted on the test pad on a Stamp in class (I thinks its called so) but the rest is RJ12 plugs and circuit boards. everyting works when I reduce the number of sensors, so no short cut etc.
I appreciate some advice if somebody had any experince that could help me out here.
Lars
Long cables?, about 30 meter in total, 2 junction boxes in serie with 5 plus 9 sensors (cable length from 1/2 meter to 2 meters).
It could be many sources causing issues, the adj resistor is mounted on the test pad on a Stamp in class (I thinks its called so) but the rest is RJ12 plugs and circuit boards. everyting works when I reduce the number of sensors, so no short cut etc.
I appreciate some advice if somebody had any experince that could help me out here.
Lars
Comments
Remember that these devices can be used in large buildings for thermostats where there may be a device in each room and cables extending throughout the building.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
If the cable capacitance is 150 pF per meter, then 30 meters would have around 0.005 µF. And with a 1k pullup, the RC constant would be around 5 microseconds. That compares with around 60 or 100 microseconds for the pulse events in the one-wire protocol. On the 'scope the signal should have good amplitude (~5 volts) and sharp falling edges, and around 5 microseconds on the rising (RC) edges.
Are you by any chance trying to use the parasite power mode?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
No unfortenately I do not oscilloscope, neither tried the parasite mode.
I need to ask·a question, I'm using the VDD for both power to the DS1820 and Vpu, I have assumed that is the concept.
About the cable, LiYY is an inexpensive standard cable, also used in Industrial applications. You meantion about capacitance of the cable and I trust you might be right but when Maxim talkes about 100m of cable length they don't say anything about this factor and they also specify a pull up of 4.7K. When I got everything to work (but not stable) I have only like 170 ohms. With 6 sensors I was at 700ohms. Is this where to look for the problem? Or is it normal that the pull up needs to adjusted downwards?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Just home from some travel abroad, so I havn't had time to check for any answers.
I will try to do what you suggest, I measured the voltage previous and had 4,92V on VDD at the stamp, the voltage at the data was only half but I didn't continue as I wasn't what I was measuring. All sensors are grounded, I have played around to see if there was one or more sensors causing the issues but could not find any pattern. The low resistance pull actually occured already when having 4·sensors, at time I was at 700 ohm and installed a variable resitor to simplify tuning. The systems contains of two PCBs, both carefully checked for short cuts, connectorsI'm using RJ12 and using only 3 pins. When you say idle and stamp pin low, could you please describe what the conditions should be. I would assume that is a program pause for both cases?
Thanks again for your support.
Lars