
#ARDUINO LIBRARY FOR PROTEUS 8 DRIVER#
#include // Include Adafruit SSD1306 OLED driver #include // Include Adafruit graphics library Arduino Sketch #include // Include Wire library (required for I2C devices) It doesn’t use any library for the DS1307 RTC. Both libraries can be downloaded through Arduino IDE Library Manager of manually from the links below (after downloading, unzip the folders and place them in Arduino libraries folder, for example ( C:\Program Files\Arduino\libraries). In this project we used Adafruit SSD1306 OLED library and Adafruit GFX library. For example the SSD1306 effort in I2C mode and the microcontroller has a restricted RAM of 368 bytes which unkind utilized an effort of 1024 byte is not feasible. Normally the SSD1306 OLED needs a RAM cushion with all screen data. The SSD1306 OLED shows interface with the important components I2C mode and 8-bit parallel mode. There are more OLED show communicates using SPI communication. The model we are utilizing here has only four pins and interface with the Arduino apply I2C interface protocol. The OLED show doesn’t need backlight, which ends up terribly very nice distinction in dark environments. The organic diode ( OLED) show that we’ll use during this tutorial is the SSD1306 model a monocular, 0.96-inch show with 128×64 pixels. The clock/calendar provides seconds, minutes, hours, day, date, month, and year information. Address and data are transfer serially via a 2-wire, bi-directional bus. The DS1307 is a low power Full Binary (BCD) Real Time Clock (RTC) IC with 56 bytes of SVRAM that communicates through I2C Protocol. The two push buttons are used to set our real time clock (RTC). So with two push buttons we need a total of 5 pins. The I2C bus has two lines: SDA (serial data) and SCL (serial clock), an addition rest pin is required for the SSD1306 OLED. The DS1307 RTC as well as the SSD1306 OLED shares the same I2C bus which minimizes the pin used.
#ARDUINO LIBRARY FOR PROTEUS 8 HOW TO#
In this Arduino project, we will learn how to build a real time clock using Arduino, DS1307 RTC and SSD1306 OLED.
