Keysight Technologies U3810A Getting Started Manual page 58

Advanced iot teaching solution
Table of Contents

Advertisement

2
Run the compiled program tmp36 to get the ADC value reading.
./tmp36
If the file does not exist, enter the command below to recompile the code.
NOTE
gcc M1L1_TMP36.c -l mraa -o tmp36
You should be able to see the returned value from the sensor in the PuTTY terminal program.
Take note that the returned value is shown as a digital signal from a scale of 0 to 4095, which
represents 0 to 3.3 V. For example, when the TMP36 returns a signal with 0.733 V, it will appear
as 911 in the PuTTY terminal.
debian@beaglebone:~/LabCode/M1-L1$ ./tmp36
ADC Value at Channel 7: 911
debian@beaglebone:~/LabCode/M1-L1$
3
The U3810A also has the capability to display a message on the onboard LCD. To display the
temperature sensor on the LCD display, compile the ATempDisplay.c inside BeagleBone CPU.
Enter the command below.
gcc M1L1_ATempDisplay.c -l mraa -o ATempDisplay
4
Enter the command below to run the compiled program. The temperature detected by the sensor
will appear on the LCD display.
./ATempDisplay
5
Touch the sensor with your fingertip to increase the temperature reading. The temperature
reading will increase due to your body temperature.
6
Press Ctrl + C to stop the measurement.
Keysight U3810 Series Getting Started Guide
58

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents