Re: Xbee Wireless Temperature Sensor

thats right! you should calculate it that way. make sure vref is tied to 3V (to set the 'top' voltage level) you're very close :)

Posts: 12131
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Xbee Wireless Temperature Sensor

Hey Everybody...."Norm!" Sorry showing my age..

Anyway I'm having trouble with my wireless temp. monitor using the Xbee and TMP36. I'm using a modified code from theTweet-A-Watt (thanks again) and Adafruit's xbee adapter. I have the TMP36 hooked up with the analog out to AD0 on the adapter, GND to GND, and V+ pin to VCC and VREF (3.3v) on the adapter. I am getting readings just fine every two seconds, however they fluctuate as much as 10 degrees F or more on each cycle.

Could this be an interference problem or even power supply. My 3.3V on VREF holds very solid while transmitting. Stumped and could use some expert advise. Thanks.

Code: Select all | TOGGLE FULL SIZE
`mVolts = xb.analog_samples[0][0]  # Report the millivolts from the TMP36voltage = mVolts * 3.3 / 1024tempC = (voltage - .5) * 100              tempF = math.floor(tempC * 9 / 5 + 32)          `

pelphry17

Posts: 7
Joined: Mon Aug 03, 2009 12:41 pm

Re: Xbee Wireless Temperature Sensor

whats the 10bit value returned? does that vary?

Posts: 12131
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Xbee Wireless Temperature Sensor

Yes, the "mVolts" is changing from around 85 to over 130. The actual temp outside is 19F.

pelphry17

Posts: 7
Joined: Mon Aug 03, 2009 12:41 pm

Re: Xbee Wireless Temperature Sensor

ok, use a multimeter to measure the voltage from the TMP36 as it goes into the ADC

Posts: 12131
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Xbee Wireless Temperature Sensor

Ok. I will get that measurement tonight. I was thinking...I am using this step up circuit (single cell) and it says it has a ripple of 150mV.
http://www.bodhilabs.com/info.html
Plus the spec sheet for the TMP36 mentions using a .1uF bypass capacitor on the input. I do not have that. Could either of these be part of problem?

pelphry17

Posts: 7
Joined: Mon Aug 03, 2009 12:41 pm

Re: Xbee Wireless Temperature Sensor

150mv is -a lot- of ripple. you really need a LDO or just batteries. really! :)

Posts: 12131
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Xbee Wireless Temperature Sensor

Does anyone still have the pictures showing the wiring stashed somewhere? Flickr doesn't seem to have them anymore...
FlyingSaucrDude

Posts: 5
Joined: Thu Dec 17, 2009 12:00 am

Re: Xbee Wireless Temperature Sensor

Hello, I second that, any images still hosted out there? I would be willing to host them also. Thanks.
zachschi

Posts: 1
Joined: Mon Dec 20, 2010 1:27 am

Re: Xbee Wireless Temperature Sensor

Sorry for necromancing, but TMP36 lists output voltage in range 100-2000mV - wouldn't that be a problem for the Xbee's input pins? I recall they have an upper limit of 1.2V
zard

Posts: 1
Joined: Fri Sep 07, 2012 11:52 am

Re: Xbee Wireless Temperature Sensor

I haven't looked myself, but according to the third and fourth posts in this thread, the voltage limit on analog in is 3.3V

Posts: 34601
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Xbee Wireless Temperature Sensor

Here is my prototype. TMP36 attached to an Xbee S1 on an XBee Explorer USB board connected to an iPhone USB charger via an adapter.
Working wonderfully in proto-stage.

Planning on using this as the remote sensor for my ThermoNixie. My plan is to mate the remote Xbee with one of those solar driveway lights (for power) and send sensor data once every 15 minutes or something like that.

lawndart

Posts: 7
Joined: Thu Mar 29, 2012 5:08 pm