Thales IoT Developer Community
How to measure temperature with Java on 3G module
Showcase, April 6, 2016 - 3:02pm, 2957 views
The short example how to integrate a temperature sensor (thermistor, NTC type) with the Java 3G module.
In this case the sensor is attached to a Gemalto Concept Board via the Arduino-style header.
The current temperature is calculated based on values received by the module's built-in analog-to-digital converter (ADC).
Temperature sensor specifications:
- Voltage: 3.3 ~ 5 V
- *** power rating at 25℃: 300 mW
- Zero power resistance: 10 KΩ
- Operating temperature range: -40 ~ +125 °C
- We used a Grove temperature sensor (****l: http://www.seeedstudio.com/wiki/Grove_-_Temperature_Sensor), but it can be replaced with temperature sensors from other manufacturers.
- It is recommended to tune the value conversion table, which is placed in the TemperatureReader.java. The best way is to take the conversion curve from the HD description of the sensor, and place approximately 10 values (voltage à temperature) in TemperatureReader.java.
- The sensor is connected to the A3 port (ADC3). It can be connected to any other ADC port (A0, A1, A2, A3 - on arduino ports). In such case, the ADC also ***** to be changed in TemperatureReader.java.