Update README.adoc's for various examples to remove unnecessary block callouts. (#182)
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
= Attaching a LIS3DH Nano Accelerometer via i2c.
|
||||
|
||||
This example shows you how to interface the Raspberry Pi Pico to the LIS3DH accelerometer and temperature sensor.
|
||||
======
|
||||
The code reads and displays the acceleration values of the board in the 3 axes and the ambient temperature value. The datasheet for the sensor can be found at https://www.st.com/resource/en/datasheet/cd00274221.pdf. The device is being operated on 'normal mode' and at a frequency of 1.344 kHz (this can be changed by editing the ODR bits of CTRL_REG4). The range of the data is controlled by the FS bit in CTRL_REG4 and is equal to ±2g in this example. The sensitivity depends on the operating mode and data range; exact values can be found on page 10 of the datasheet. In this case, the sensitivity value is 4mg (where g is the value of gravitational acceleration on the surface of Earth). In order to use the auxiliary ADC to read temperature, the we must set the BDU bit to 1 in CTRL_REG4 and the ADC_EN bit to 1 in TEMP_CFG_REG. Temperature is communicated through ADC 3.
|
||||
======
|
||||
[NOTE]
|
||||
======
|
||||
The sensor doesn't have features to eliminate any offsets in the data and they would be needed to be taken into account in the code.
|
||||
======
|
||||
|
||||
The code reads and displays the acceleration values of the board in the 3 axes and the ambient temperature value. The datasheet for the sensor can be found at https://www.st.com/resource/en/datasheet/cd00274221.pdf. The device is being operated on 'normal mode' and at a frequency of 1.344 kHz (this can be changed by editing the ODR bits of CTRL_REG4). The range of the data is controlled by the FS bit in CTRL_REG4 and is equal to ±2g in this example. The sensitivity depends on the operating mode and data range; exact values can be found on page 10 of the datasheet. In this case, the sensitivity value is 4mg (where g is the value of gravitational acceleration on the surface of Earth). In order to use the auxiliary ADC to read temperature, the we must set the BDU bit to 1 in CTRL_REG4 and the ADC_EN bit to 1 in TEMP_CFG_REG. Temperature is communicated through ADC 3.
|
||||
|
||||
[NOTE]
|
||||
=====
|
||||
The sensor doesn't have features to eliminate offsets in the data and these will need to be taken into account in the code.
|
||||
=====
|
||||
|
||||
== Wiring information
|
||||
|
||||
|
||||
Reference in New Issue
Block a user