1 of 4

Pre-Lab Week 4�(due two hours before Lab 2C)

UCLA Physics Department

1

2 of 4

Python notebook - Functions

  • Follow the Jupyter notebook and find the energy and momentum of the moving object and their associated errors. You can use this video for an introduction to functions to help you with the notebook.

3 of 4

Install libraries

  • Download the entire contents of the i2cdevlib repository: https://github.com/jrowberg/i2cdevlib/archive/master.zip
  • (In the Arduino IDE) Sketch > Include Library > Add .ZIP Library > select the folder i2cdevlib-master/Arduino/I2Cdev > Open
  • (In the Arduino IDE) Sketch > Include Library > Add .ZIP Library > select the folder i2cdevlib-master/Arduino/MPU6050 > Open
  • You can check your installed libraries by going to Sketch -> Include Library and scanning the list of libraries.

UCLA Physics Department

3

4 of 4

Submission Document

  • Make a copy of this document and upload it to Gradescope

  • Note that this requires you to complete the notebook from the previous slide