From 30a3d8c4339f5dc7332535adcda5881b4f17b828 Mon Sep 17 00:00:00 2001 From: Nuntipat Narkthong Date: Sun, 12 Nov 2017 00:12:48 +0700 Subject: [PATCH 1/2] added LSM303C and LSM6DS3 --- library/sensors.dcm | 12 ++++++++++ library/sensors.lib | 56 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/library/sensors.dcm b/library/sensors.dcm index 62a491ba..338855d9 100644 --- a/library/sensors.dcm +++ b/library/sensors.dcm @@ -456,6 +456,12 @@ K mems absolute baromeeter F http://www.st.com/content/ccc/resource/technical/document/datasheet/58/d2/33/a4/42/89/42/0b/DM00066332.pdf/files/DM00066332.pdf/jcr:content/translations/en.DM00066332.pdf $ENDCMP # +$CMP LSM303C +D I2C/SPI, 3D Accelerometer and 3D Magnetometer +K Accelerometer Magnetometer MEMS +F www.st.com/resource/en/datasheet/lsm303c.pdf +$ENDCMP +# $CMP LSM303D D I2C/SPI, 3D Accelerometer and 3D Magnetometer K Accelerometer Magnetometer MEMS @@ -468,6 +474,12 @@ K Accelerometer Magnetometer MEMS F http://www.st.com/web/en/resource/technical/document/datasheet/DM00027543.pdf $ENDCMP # +$CMP LSM6DS3 +D I2C/SPI, iNEMO inertial module: always-on 3D accelerometer and 3D gyroscope +K Accelerometer Gyroscope MEMS +F www.st.com/resource/en/datasheet/lsm6ds3.pdf +$ENDCMP +# $CMP LSM9DS1 D I2C SPI 9 axis IMU accelerometer gyroscope magnetometer K I2C SPI IMU accelerometer gyroscope magnetometer diff --git a/library/sensors.lib b/library/sensors.lib index 494fb7ac..d0dd02ef 100644 --- a/library/sensors.lib +++ b/library/sensors.lib @@ -1237,6 +1237,33 @@ X VDD 10 300 500 150 D 50 50 1 1 W ENDDRAW ENDDEF # +# LSM303C +# +DEF LSM303C U 0 40 Y Y 1 F N +F0 "U" -450 600 50 H V R CNN +F1 "LSM303C" -200 550 50 H V R TNN +F2 "" -400 -700 50 H I L CNN +F3 "" 100 -650 50 H I C CNN +$FPLIST + LGA* +$ENDFPLIST +DRAW +S 550 450 -550 -450 0 1 10 f +X SCL/SPC 1 -700 200 150 R 50 50 1 1 O +X CS_XL 2 -700 0 150 R 50 50 1 1 I +X CS_MAG 3 -700 -100 150 R 50 50 1 1 I +X SDA/SDI/SDO 4 -700 100 150 R 50 50 1 1 B +X C1 5 700 -200 150 L 50 50 1 1 P +X GND 6 0 -600 150 U 50 50 1 1 W +X INT_MAG 7 700 100 150 L 50 50 1 1 O +X GND 8 100 -600 150 U 50 50 1 1 W +X VDD 9 100 600 150 D 50 50 1 1 W +X VDDIO 10 0 600 150 D 50 50 1 1 W +X DRDY_MAG 11 700 200 150 L 50 50 1 1 O +X INT_XL 12 700 0 150 L 50 50 1 1 O +ENDDRAW +ENDDEF +# # LSM303D # DEF LSM303D U 0 40 Y Y 1 F N @@ -1297,6 +1324,35 @@ X VDD 14 100 700 150 D 50 50 1 1 W ENDDRAW ENDDEF # +# LSM6DS3 +# +DEF LSM6DS3 U 0 40 Y Y 1 F N +F0 "U" -450 600 50 H V L CNN +F1 "LSM6DS3" -450 500 50 H V L BNN +F2 "" -400 -700 50 H I L CNN +F3 "" 100 -650 50 H I C CNN +$FPLIST + LGA* +$ENDFPLIST +DRAW +S 450 450 -450 -450 0 1 10 f +X SDO/SA0 1 -600 300 150 R 50 50 1 1 B +X SDX 2 -600 200 150 R 50 50 1 1 B +X SCX 3 -600 100 150 R 50 50 1 1 I +X INT1 4 600 300 150 L 50 50 1 1 O +X VDDIO 5 0 600 150 D 50 50 1 1 W +X GND 6 0 -600 150 U 50 50 1 1 W +X GND 7 100 -600 150 U 50 50 1 1 W +X VDD 8 100 600 150 D 50 50 1 1 W +X INT2 9 600 200 150 L 50 50 1 1 O +X NC 10 600 -200 150 L 50 50 1 1 N N +X NC 11 600 -100 150 L 50 50 1 1 N N +X CS 12 -600 -300 150 R 50 50 1 1 I +X SCL 13 -600 -200 150 R 50 50 1 1 I +X SDA 14 -600 -100 150 R 50 50 1 1 B +ENDDRAW +ENDDEF +# # LSM9DS1 # DEF LSM9DS1 U 0 40 Y Y 1 F N From 9b2e62f3c72b92a38d84cb5e975d459b46567f95 Mon Sep 17 00:00:00 2001 From: Nuntipat Narkthong Date: Sun, 12 Nov 2017 00:46:59 +0700 Subject: [PATCH 2/2] Fix footprint filter --- library/sensors.lib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/sensors.lib b/library/sensors.lib index d0dd02ef..27cf525c 100644 --- a/library/sensors.lib +++ b/library/sensors.lib @@ -1245,7 +1245,7 @@ F1 "LSM303C" -200 550 50 H V R TNN F2 "" -400 -700 50 H I L CNN F3 "" 100 -650 50 H I C CNN $FPLIST - LGA* + LGA*2x2mm*Pitch0.5mm* $ENDFPLIST DRAW S 550 450 -550 -450 0 1 10 f @@ -1332,7 +1332,7 @@ F1 "LSM6DS3" -450 500 50 H V L BNN F2 "" -400 -700 50 H I L CNN F3 "" 100 -650 50 H I C CNN $FPLIST - LGA* + LGA*2.5x3mm*Pitch0.5mm* $ENDFPLIST DRAW S 450 450 -450 -450 0 1 10 f