Keysight U3810 Series Getting Started Guide
58
2
Run the compiled program tmp36 to get the ADC value reading.
./tmp36
NOTE
If the file does not exist, enter the command below to recompile the code.
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.
Содержание U3810A
Страница 1: ...Keysight U3810A Advanced IoT Teaching Solution Getting Started Guide ...
Страница 78: ...Keysight U3810 Series Getting Started Guide 78 IMU Characteristics from the LSM9DS1 datasheet ...
Страница 131: ...Keysight U3810 Series Getting Started Guide 131 ...
Страница 132: ...Keysight U3810 Series Getting Started Guide 132 Disassembly ...