I would like to operate four DS18B20 with a Picaxe 08M chip, but there are only three i/o ports 1, 2 and 4.
Is it possible to run two DS18B20 from one pin with the readtemp command or is the protocol limited by the implementation in the interpreter?
If it is possible how would I be able to differentiate between the devices?
If I was to use a different chip, then obviously there would be additional i/o pins and so operating more than one sensor on a pin would be less of a requirement.
Proposed application: an intelligent crown board on a bee hive with four sensors to record temperature and sense the position of the cluster during the winter. (08M2)
Reason for doing this, because the bees will let me and I'm sufficiently curious to think it worthwhile. I also think that the 08M2 will make a good basic data logging chip, with data collection once a day and the data merely being a single byte serial number and four bytes of temperature data taken ten times an hour (240 periods x 5bytes = 1200 bytes of data per day) at a granularity of 1 degree. Sample rate, temperature granularity and collection interval can all be reviewed later once the proof of concept is seen to be working OK.
Is it possible to run two DS18B20 from one pin with the readtemp command or is the protocol limited by the implementation in the interpreter?
If it is possible how would I be able to differentiate between the devices?
If I was to use a different chip, then obviously there would be additional i/o pins and so operating more than one sensor on a pin would be less of a requirement.
Proposed application: an intelligent crown board on a bee hive with four sensors to record temperature and sense the position of the cluster during the winter. (08M2)
Reason for doing this, because the bees will let me and I'm sufficiently curious to think it worthwhile. I also think that the 08M2 will make a good basic data logging chip, with data collection once a day and the data merely being a single byte serial number and four bytes of temperature data taken ten times an hour (240 periods x 5bytes = 1200 bytes of data per day) at a granularity of 1 degree. Sample rate, temperature granularity and collection interval can all be reviewed later once the proof of concept is seen to be working OK.