# ICM20948 Python

**URL:** <https://community.sparkfun.com/t/icm20948-python/43392>\
**Category:** IMU & Motion\
**Created:** [January 25, 2022, 9:20pm UTC](https://community.sparkfun.com/t/icm20948-python/43392 "2022-01-25T21:20:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tech-mech](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@tech-mech](https://community.sparkfun.com/u/tech-mech)\
**Post date:** [January 25, 2022, 9:20pm UTC](https://community.sparkfun.com/t/icm20948-python/43392/1 "2022-01-25T21:20:00Z")

</div>

Does the Python module for the ICM20948 have a method to get scaled values like in Arduino?

I am working on displaying sensor readings on the data page of my Robot program and need to know how to get scaled values.

Dale

---

<div class="post-metadata">

**Author:** ![jremington](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/jremington/32/6595_2.png) [@jremington](https://community.sparkfun.com/u/jremington)\
**Post date:** [January 26, 2022, 1:12am UTC](https://community.sparkfun.com/t/icm20948-python/43392/2 "2022-01-26T01:12:18Z")

</div>

If you can read the raw values, it is trivial to scale them. The scale factors are given in the ICM\_20948 data sheet.

---

<div class="post-metadata">

**Author:** ![tech-mech](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@tech-mech](https://community.sparkfun.com/u/tech-mech)\
**Post date:** [January 26, 2022, 5:25am UTC](https://community.sparkfun.com/t/icm20948-python/43392/3 "2022-01-26T05:25:41Z")

</div>

jremington the thing is I am not nor will i ever be qualified as a programmer. I am a very qualified mechanic with mechanical design training.

There are no examples on setting the scales but I figure it out anyway and as there is an API in the Arduino Library I now have code to scale the values. But this really should be a method in the driver module, not something you copy and past from program to program.

Dale the mechanic

---

<div class="post-metadata">

**Author:** ![jremington](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/jremington/32/6595_2.png) [@jremington](https://community.sparkfun.com/u/jremington)\
**Post date:** [January 26, 2022, 3:43pm UTC](https://community.sparkfun.com/t/icm20948-python/43392/4 "2022-01-26T15:43:03Z")

</div>

Great that you managed to solve the problem!

Unfortunately, the scaled values are not particularly meaningful unless you have calibrated the sensor, at the very least to remove the offsets.
