IEEE1888 GateWay sample that handles multiple sensors.

Dependencies:   EthernetInterface Fiap HTTPClientForFIAP NTPClient mbed-rtos mbed spxml

Fork of IEEE1888_TEMP_NODE by Satoru Yoshida

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers examples.h Source File

examples.h

00001 //illuminance sensors
00002 
00003 //S9648-100
00004 // X * 1269.2 + 0 = X * (3300 mV / 1000 ohm) / 0.26 mA * 100.0 lux
00005 //#define Pxx_CONSTANT 0
00006 //#define Pxx_COEFFICIENT 1270.0
00007 //#define Pxx_PREC "%.0f"
00008 
00009 //if you divide output voltage from S9648-100 by 680 ohm and 330 ohm
00010 // X * 1866.5 + 0 = X * (3300 mV / 680 ohm) / 0.26 mA * 100.0 lux
00011 //#define Pxx_CONSTANT 0
00012 //#define Pxx_COEFFICIENT 1870.0
00013 //#define Pxx_PREC "%.0f"
00014 
00015 //if you use S9648 instead of S9648-100
00016 // X * 2231.2 + 0 = X * (3300 mV / 510 ohm) / 0.29 mA * 100.0 lux
00017 //#define Pxx_CONSTANT 0
00018 //#define Pxx_COEFFICIENT 2230.0
00019 //#define Pxx_PREC "%.0f"
00020 
00021 //if you divide output voltage from S9648 by 330 ohm and 180 ohm
00022 // X * 3448.3 + 0 = X * (3300 mV / 330 ohm) / 0.29 mA * 100.0 lux
00023 //#define Pxx_CONSTANT 0
00024 //#define Pxx_COEFFICIENT 3450.0
00025 //#define Pxx_PREC "%.0f"
00026 
00027 //temperature sensors
00028 
00029 //LM35DZ
00030 // X * 330.0 + 0  = X * 3300 mv / 10 mv * 1 degree Celsius
00031 //#define Pxx_CONSTANT 0
00032 //#define Pxx_COEFFICIENT 330.0
00033 //#define Pxx_PREC "%.1f"
00034 
00035 // if amplification factor is 6 times, using LM35 :
00036 // X * 55.0 + 0  = (X * 3300 mv / 6.0) / 10 mv * 1 degree Celsius
00037 //#define Pxx_CONSTANT 0
00038 //#define Pxx_COEFFICIENT 55.0
00039 //#define Pxx_PREC "%.2f"
00040 
00041 //if you use LM335 instead of LM35
00042 // X * 330.0 - 273.15 = (X * 3300 mv / 10 mv * 1 kelvin) - 273.15 degree Celsius
00043 //#define Pxx_CONSTANT -273.2
00044 //#define Pxx_COEFFICIENT 330.0
00045 //#define Pxx_PREC "%.1f"
00046 
00047 //if you use LM61BIZ or LM61CIZ instead of LM35
00048 // X * 330.0 - 60 = ( X * 3300 mv - 600 mv ) / 10 mv * 1 degree Celsius
00049 //#define Pxx_CONSTANT -60
00050 //#define Pxx_COEFFICIENT 330.0
00051 //#define Pxx_PREC "%.1f"
00052 
00053 //if you use MCP9700
00054 // X * 330.0 - 50 = ( X * 3300 mv - 500 mv ) / 10 mv * 1 degree Celsius
00055 //#define Pxx_CONSTANT -50
00056 //#define Pxx_COEFFICIENT 330.0
00057 //#define Pxx_PREC "%.1f"
00058 
00059 //if you use MCP9701
00060 // X * 169.2 - 20.5 = ( X * 3300 mv - 400 mv ) / 19.5 mv * 1 degree Celsius
00061 //#define Pxx_CONSTANT -20.5
00062 //#define Pxx_COEFFICIENT 170.0
00063 //#define Pxx_PREC "%.1f"