54. Multi-Slave I2C Communication

Set up I2C communication between a microcontroller (Master) and three I2C slave devices.

I2C Slave Devices:

  • RTC module (e.g., DS1307) for real-time date and time.
  • BMP180 sensor for environmental data (temperature, pressure, altitude).
  • OLED display (SSD1306) to display data.

Tasks:

  • Read the date and time from the RTC module.
  • Read pressure, temperature, and altitude from the BMP180 sensor.
  • Display the date, time, pressure, temperature, and altitude on the OLED screen.
  • Update all the readings every second.

Example:

Submit Your Solution

Note: Once submitted, your solution goes public, helping others learn from your approach!