[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 [bigcommerce link=”/pcduino-v2-an-minipc-with-arduino-headers-ubuntu-android-google/” target=”_blank”]pcDuino V2[/bigcommerce]
2. 1 x Linker Temperature Module
3. 1 x [bigcommerce link=”/base-shield-of-linker-kit-for-pcduino-arduino/” target=”_blank”]Linker Base[/bigcommerce]
4. 1 x [bigcommerce link=”/20-cm-cable-for-linker-kit/” target=”_blank”]Linker cable[/bigcommerce][/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]
Leave a Reply
You must be logged in to post a comment.