I had an RTC DS3231 lying around so i decided to see if it was still keeping time.
I used a 3v Arduino Pro Mini to see if it was capable of running an RTC and an Oled screen on the I2C lines at the same time.
On the Pro Mini, the I2C lines are on the top of the board, sometimes i guess they're overlooked because of their position.
The I2C lines are connected to both the DS3231 and the SSD1306 Oled screen SDA/SCL pins as they work on different addresses.
In the code i have tried to get the day in the middle of the display depending on the length of the day word string.
I have not included setting the correct time on the RTC as this is covered in the library example.
To program the Arduino, it is necessary to use an FTDI set at the correct voltage (3v in this case) as the Pro Mini doesn't have a usb interface.
It is possible just to place the FTDI into the correct holes in the Pro Mini.. i have always used this method and it works fine.
Comments
Please log in or sign up to comment.