Devfest.Asia November 2016
Accompanying slides are here including a quite long appendix that didn't make the talk – check it out if you'd like more detail on anything.
Note: in my talk, I go through these demos:
- 02_helloSerial
- 03_helloAccelerometer
- 05_pollZAxis
- 06_pollActiveZ
- 07_interpretZ
The other ones are bonus :)
Demonstration toggling one pin to read on a logic analyzer
Demonstration of communication over a protocol (serial) to be read on a logic analyzer
Reads the WHO_AM_I register of accelerometer MMA8452Q over I2C, should return 0x2A over the logic analyzer and print <Buffer 2a>
to the console
Reads the OUT_Z_MSB register of accelerometer MMA8452Q over I2C, should print a single hexadecimal value to the console
Reads the OUT_Z_MSB register of accelerometer MMA8452Q over I2C at an interval of once per second, should print the same single hexadecimal value to the console over and over (the accelerometer has not been set to "active" mode)
Sets the accelerometer to active mode and then reads the OUT_Z_MSB register of accelerometer MMA8452Q over I2C at an interval of once per second - the value should change as the project is moved
Reads the changing OUT_Z_MSB register of accelerometer MMA8452Q over I2C at an interval of once per second and interprets/prints to the console whether it is negative or positive
- Microcontroller: Tessel 2
- Part: accelerometer (Tessel Accelerometer module)
- Logic analyzer: Saleae 8
- Accelerometer datasheet MMA8452Q