I2C Propeller and P82B715
Mike_GTN
Posts: 106
·Hi All,
·I have a project that is in the planning stage, but will require the use of some remote mounted Dallas DS1621 Thermometers.
·These will be some approx 10 metres away from the Propeller based controller. So obviously I need to extend the bus range of my
·I2C connection.
·On a web search the major part that was·returned·is the Philips/Texas P82B715·device, has anyone here used this device with good
·results? Or should I be looking towards a different/device solution?
·The Propeller will have attached locally an addiional 24LC256 EEprom and DS1307 RTC.··I propose to power the DS1621's in the remote
·location with a single dedicated power supply.·
·Thank-you for any help offered.
·Regards
·Mike.
·I have a project that is in the planning stage, but will require the use of some remote mounted Dallas DS1621 Thermometers.
·These will be some approx 10 metres away from the Propeller based controller. So obviously I need to extend the bus range of my
·I2C connection.
·On a web search the major part that was·returned·is the Philips/Texas P82B715·device, has anyone here used this device with good
·results? Or should I be looking towards a different/device solution?
·The Propeller will have attached locally an addiional 24LC256 EEprom and DS1307 RTC.··I propose to power the DS1621's in the remote
·location with a single dedicated power supply.·
·Thank-you for any help offered.
·Regards
·Mike.
Comments
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Have you considered using a 1-Wire thermometer like the Dallas DS18B20-PAR? This can be powered from the Propeller. It would require two I/O pins, one for the 1-Wire bus and one to control a "strong pullup" MOSFET. There's code in the Object Exchange for 1-Wire use. I'm not sure if it provides for the MOSFET, but that could be easily added since only certain 1-Wire operations require the additional current supplied.
The 1-Wire bus is designed for use with many sensors scattered over a significant distance (thermostats in a building).
Actually to go further on what Mike was saying, the "strong pull up" requirement is while the sensor is doing a conversion or when it is writing to its internal flash. At those times there is no communication with the sensor, hence the port bit can be turned into an output and driven high for that period and effect the "strong pull up". For safety, I stick a 100 ohm resistor in series with the port bit. The standard 4k7 pull up resistor to Vcc is still required of course as the pull up for normal communication. In this manner only a single I/O pin is required..... the second port bit and the mosfet can be scrapped.
Cheers,
Peter (pjv)
If you are going to exceed about 70Deg C you really need to look at a separate +5v rail though.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Missed it by ->" "<- that much!