BS2 and four SHT1X Sensirions or DS1620 temp sensor
Waveman
Posts: 20
Hello!
Any good suggestions on interfacing four SHT11 Sensirion temp/humidity sensors to the BS2? Or four DS1620 Sensors?
I was told that the Sensirion's can all run off the same clock. I want to place in four locations about 20' feet apart.
I am currently using the sample code from the SHT11 and need to know some steps how to modify to add three more.
Thanks,
WaveMan
Any good suggestions on interfacing four SHT11 Sensirion temp/humidity sensors to the BS2? Or four DS1620 Sensors?
I was told that the Sensirion's can all run off the same clock. I want to place in four locations about 20' feet apart.
I am currently using the sample code from the SHT11 and need to know some steps how to modify to add three more.
Thanks,
WaveMan
Comments
The DS1822 has a internal serial number that can be sent to identify which sensor is reporting but I think it takes the faster BS2Px chips to get I2C interface.
Post Edited (Paul) : 5/24/2007 3:23:08 AM GMT
I will look into the DS1822 sensor. I was actually·now thinking of interfacing four DS1620's and using the GPIO pins on my BS2 and my PBASIC program to identify the sensors. I am using the·STAMPDAQ.xls program and assume that I can identify the various sensors interfaced to the GPIO Pxx pins via DEBUG or SEROUT? Creat an Excel graph for the four temps. Just want to know any coding suggestions, if you have them, in doing this?
thanks,
Waveman
Got my three DS1620's working well with BS2, but want to now add the SHT11, but can't due to SHT11 not having enable pin. DS1620's have the RST line for enable, where the SHT11 does not. So, can't have DS1620/SHT11 work off the same clock.
Any source code for DS1822 with the BS2pe available?
Thanks,
WaveMan
There is some code for the DS18B20 here
I'm not up on how that differs from the DS1822. The '18B20 has 12 bit resolution.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I found out from Parallax that you can't run the SHT11 and DS1620 off the same clock. This is due to the SHT11 not having an enable (EN or RST as on the DS1620). They recommended going to the BS2p and use the 1-Wire feature available on the DS1820/22.
Also, your code for the·SHT11, SHT11.BS2,·is this also for the BS2p? I am new to these things...
Thanks!
In general I do not recommend I2C devices with SPI devices, but the SHT11 is not a typical I2C device. Are you running out of pins on the Stamp?
The SHT11.BS2 code should work fine on the BS2p.
For what you want to do, the DS1820/22 should be fine. Be careful with the part numbers. Dallas Semi has a habit of making minor changes in part numbers that in fact require significant changes in code. The DS18B20 (12 bit resoltion) is different from the DS18S20 (9 bits).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
You are correct! Activate·the clock·for the DS1620's, then the SHT11 and data looks good.
The heater on/off routines are they for evaporating any moisture·on the SHT11 humidity sensor?
Are·they required for every measurement?
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Thanks...