[vc_row][vc_column][vc_column_text]Linker Temperature is a temperature sensor. It has TM36 temperature sensor. In this post, we will show how to use Linker temperature module on pcDuino.[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Parts List” tab_id=”1394433496-1-21″][vc_column_text]1. 1 x pcDuino V2
2. 1 x Linker Temperature Module
3. 1 x Linker Base
4. 1 x Linker cable[/vc_column_text][/vc_tab][vc_tab title=”Wire Diagram” tab_id=”1394433496-2-73″][vc_column_text][/vc_column_text][vc_column_text]
import time from adc import analog_read temperature_pin = 2 def delay(ms): time.sleep(1.0*ms/1000) def setup(): print "Linker Tempature Pin : A2" delay(3000) def loop(): while(1): value = analog_read(temperature_pin) volts = (value * 3.3) / 4096 temperature_C = (volts - 0.5) *100 temperature_F = (temperature_C * 9 / 5) + 32 print("volts = %5.3f V" % volts ) print("%4.1f degrees C" % temperature_C) print("%4.1f degrees F" % temperature_F) print("-------------------------") delay(500) setup() loop()
[/vc_column_text][/vc_tab][vc_tab title=”Test Code” tab_id=”1394433808403-2-7″][vc_column_text]
import time from adc import analog_read temperature_pin = 2 def delay(ms): time.sleep(1.0*ms/1000) def setup(): print "Linker Tempature Pin : A2" delay(3000) def loop(): while(1): value = analog_read(temperature_pin) volts = (value * 3.3) / 4096 temperature_C = (volts - 0.5) *100 temperature_F = (temperature_C * 9 / 5) + 32 print("volts = %5.3f V" % volts ) print("%4.1f degrees C" % temperature_C) print("%4.1f degrees F" % temperature_F) print("-------------------------") delay(500) setup() loop()
[/vc_column_text][/vc_tab][vc_tab title=”Results” tab_id=”1394433814594-3-3″][vc_column_text]