IMU, (I2C,) Numbersystems

SELFSTUDY

PART 1 - Numbersystems - integers

The pourpose is to get familiar with number and data representations for

  • accurate numbers aka(also know as) integers

  • approximative numbers aka floats

Slides for integer representations

Litterature

  • Data representation

    • topics base system idea aka binary, octal, decimal, hexadecimal integer representation

    • and floats

Videos

Code

A small Arduino program which demonstrates integer representation and the wrap around situation.

The program uses a char (or byte) as integer. A char is a signed 8 bit integer so full dynamic range is 2^8 = 256 different values.
If we use 16bit we have 2^16 values and 32 bit 2^32 values - so the program will just runs longer

PART 2 - Floating point

Litterature

Videos

PART 3 - IMU

Videos

EXERCISE

Get the teepot example up and running (Assuming you have a GY-8x IMU)
See here

EXTRA STUFF

A very relevant selfstudy about sensors etc is here
Read it and maybe do some of the exercises