Skip to main content

Section 12.5 Day 14 In-Class: Finish the Driver, See the Data, Measure Tilt

You worked out the two control-register settings on paper, and you drafted lsm303_AccelRegisterWrite(). Today we’ll put both to work: complete the device driver, watch live x-y-z data stream to CoolTerm, plot it, and work out how tilt follows from what the sensor measures. By the end of class your own driver will be reading the accelerometer, which is the pre-lab for Lab 7.