Advanced Sensors
LSM 303 Compass/Accelerometer
https://learn.adafruit.com/lsm303-accelerometer-slash-compass-breakout
The LSM303 breakout board combines a magnetometer/compass module with a triple-axis accelerometer to make a compact navigation subsystem. The I2C interface is compatible with both 3.3v and 5v processors and the two pins can be shared by other I2C devices. Combined with a 3-axis gyro such as the L3GD20, you have all the sensors you need for a complete IMU (Inertial Measurement Unit) for use in aerial, terrestrial or marine navigation.
Follow above Adafruit link for necessary libraries and sample code.
https://learn.adafruit.com/lsm303-accelerometer-slash-compass-breakout
The LSM303 breakout board combines a magnetometer/compass module with a triple-axis accelerometer to make a compact navigation subsystem. The I2C interface is compatible with both 3.3v and 5v processors and the two pins can be shared by other I2C devices. Combined with a 3-axis gyro such as the L3GD20, you have all the sensors you need for a complete IMU (Inertial Measurement Unit) for use in aerial, terrestrial or marine navigation.
Follow above Adafruit link for necessary libraries and sample code.
Programming Challenge: Use the LSM 303 to make a wired remote control- Use AccelX and AccelY values to adjust left and right motor speeds to make vehicle go forward, back, left and right.
You will likely need to use the map function and arithmetic functions to tweak values.
You will likely need to use the map function and arithmetic functions to tweak values.
BN055 Absolute Orientation Sensor
https://learn.adafruit.com/adafruit-bno055-absolute-orientation-sensor/overview
If you've ever ordered and wire up a 9-DOF sensor, chances are you've also realized the challenge of turning the sensor data from an accelerometer, gyroscope and magnetometer into actual "3D space orientation"!
https://learn.adafruit.com/adafruit-bno055-absolute-orientation-sensor/overview
If you've ever ordered and wire up a 9-DOF sensor, chances are you've also realized the challenge of turning the sensor data from an accelerometer, gyroscope and magnetometer into actual "3D space orientation"!