WIFI Temperature - Advanced Setup

Once you have completed the setup of WIFI Temperature Sensor you may be interested in some of the advanced features of the device.

On the "Sensor Config" menu there are a number of options which we will describe further here.



Send To Server

You used this option in the setup tutorial to tell the sensor to send the reading from the on board DS18B20 temperature sensor to the server.  Click the check box to send, and un-click it to stop sending. 

LED

The LED check box can be used to switch the green LED on/off. To switch it on click the check box and then click "Save". Do the reverse to switch it off. The LED will automatically switch on at the start of each temperature transmission and off once the transmission is complete.

Temperature Send Interval

This is the interval between temperature reading transmissions. For example if set to 300 then the sensor will send a reading every 5 minutes. Take note that if you are using the free PrivateEyePi service then setting it to below 300 may result in you exceeding the maximum daily message allowance. 

Min Temp Delta Before Transmit

Set this to the number of degrees the temperature should vary (either higher or lower than the previous reading sent to server) before sending a new reading to the server. This is a very useful battery saving feature because the amount of electricity required to read the temperature is significantly less than WIFI transmission. Another useful use for this is to help not exceed your daily message allowance on PrivateEyePi. For example if  you set the "Temperature Send Interval" to 10 and set the Min Temp Delta Before Transmit to 0.5 (Celsius in this example) then the temperature reading is fetched every 10 seconds but only sent to the server if the temperature has either increased or decreased by half a degree Celsius. 


Temperature Calibration

The DS18B20 is accurate from -55°C to +125°C or Fahrenheit equivalent -67°F to +257°F, ±0.5°C accuracy from -10°C to +85°C. 

However you may want to adjust the readings to offset external influences. Use this option to add or subtract a value from every temperature reading. For example if you set it to 2, then it will add 2 to every temperature reading, or -2 will subtract from every reading. 

The on board WIFI chip will generate heat if powered on for long periods of time so you may find that this will skew readings. You can avoid this but using the sleep option described below or work around it by using the temperature calibration option to lower the reading. Another option is to remove the DS18B20 sensor and replace it with an external sensor.

Sleep Between Transmits

This option will shut down the WIFI sensor in between transmissions and automatically awaken the device for transmission every X seconds (defined by Temperature Send Interval) . This radically reduces the power intake of the device. 

Take Note : The sensor will no longer be accessible through WIFI while it is in sleep mode. The device can be taken out of sleep mode by connecting GPIO 12 with 3V (as shown in the picture below). 

This option must be used in conjunction with the "Sleep" dip switch on the board, as shown in the picture below. 

If you are powering the device using a battery power source then this option is recommended. 

If you want to make use of this option then follow the following steps:

  1. Check the "Sleep between transmits" check box in the Config menu option and click, save. The  device will sleep and the web page will no longer work because the WIFI is powered off. 
  2. Set the 2nd dip switch market "Sleep" to ON (as shown in the picture below)
  3. Reboot the device either by powering off and then back on, or by using the dip switch labelled             "Reset" on and then back off to reboot the device.

The device will now transmit temperature readings as per the Temperature Send Interval. The LED will not switch on/off in sleep mode (further reduction of power usage). 

Wake up from sleep mode

If you want to take the device out of sleep mode then set GPIO 12 (see note below in red) high by connecting a jump wire between 3V and 12, and rebooting the device. Then connect to the device using WIFI and unset the Sleep Between Transmits check box and Save. You can now remove the jump wire and set the "Sleep" dip switch back to the OFF position. The device will stay awake and no longer sleep between transmits.

Take Note: The wake-up pin was changed to GPIO 14 in version 1.2 and higher of the sensor software.



 


Display in Fahrenheit

The default temperature reading is in Celsius. Click this option to change the temperature readings to Fahrenheit.  

Static IP Address

Enter the IP Address you wish to allocate to the sensor. This is useful if you are polling the device from another computer and do not want the IP Address to ever change. 

Gateway & Subnet

These settings are mandatory if you want to set a static IP address. If you do not know the subnet mask and gateway of your router you can easily get it as follows:

Windows - Open a command prompt windows and type ipconfig, then page up and look for Subnet Mask and Gateway

Linux - Open a terminal session and type netstat -nr. This will give you the Gateway. Now type ifconfig, and look for the Mask.

Reboot (power off and on) the sensor in order for these settings to take affect.


Comments