![]() The Arduino Wire library (which comes included with the Arduino IDE) provides the functionality for the I2C protocol. It used for communicating with the SODAQ Mbili DS3231 chip as well as any components connected to the Grove I2C socket. The I2C is a hardware protocol that is supported by the SODAQ Mbili and other Arduino compatible boards. For further details of the voltage reading refer to the JST section of the schema: SODAQ Mbili Schema. In addition to the temperature reading we also read and display the battery voltage level using a reading from one of the analog pins. We will explore the clock and timing functions in another example. Here we will only look at taking the temperature reading. The DS3231 chip provides a range of functionality including a real time clock, an interrupt timer, and a temperature sensor. ![]() Here we will take a temperature reading from the DS3231 chip and display that reading on the OLED Display. This example also demonstrates how to interface with I2C components using the specific libraries which are provided for those components. In this example we will demonstrate how to take several onboard readings from the SODAQ Mbili and display those readings using an OLED Display.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |