complex sensor: i²c communication
Knowledge acquired
- Use the Wire.h library in order to communicate (write and read) with complex
devices via I²C.
- Use the pow(base,exponent) instruction in order to calculate the value of a number raised to a
power.
- Use the do ... while control structure.
- Understand an array and how to use it wisely to store
data.
- Use the while control structure.
- Use a bit shift in order to
isolate some bits inside a byte.
- Create a used defined function
which returns a value.
- Understand what is I²C and use
it to read complex sensor via I²C bus.
- Understand the concept of
registers inside a complex sensor and control them.
Circuit setup
Arduino code
project6_complexsensor.ino | |
File Size: | 5 kb |
File Type: | ino |