Adding an ATMEGA328P and Real Time Clock to an Existing Project
by WWC in Circuits > Microcontrollers
5520 Views, 16 Favorites, 0 Comments
Adding an ATMEGA328P and Real Time Clock to an Existing Project
![03.bmp](/proxy/?url=https://content.instructables.com/FAB/7C2D/HH2VKZ76/FAB7C2DHH2VKZ76.bmp&filename=03.bmp)
This was an existing project i had made some time before.
An 8 X 10 LED matrix.
So it is not a complete build, just showing the add on
I have added to the 8 X 10 LED display a micro-processor, the ATMEGA328P running at 8MHz internal clock with Arduino bootloader.
Also a DS1307 Real Time Clock.
You can also see the programming header installed.
Supporting info:
here
here
An 8 X 10 LED matrix.
So it is not a complete build, just showing the add on
I have added to the 8 X 10 LED display a micro-processor, the ATMEGA328P running at 8MHz internal clock with Arduino bootloader.
Also a DS1307 Real Time Clock.
You can also see the programming header installed.
Supporting info:
here
here
Programming
![AVR Pinouts.png](/proxy/?url=https://content.instructables.com/F0I/XEW5/HH2VKZBR/F0IXEW5HH2VKZBR.png&filename=AVR Pinouts.png)
![Screenshot_1.png](/proxy/?url=https://content.instructables.com/FUO/OG9L/HH2VXVI7/FUOOG9LHH2VXVI7.png&filename=Screenshot_1.png)
Pin Connections
![Pin Header.jpg](/proxy/?url=https://content.instructables.com/FO6/INDS/HH2VKZHP/FO6INDSHH2VKZHP.jpg&filename=Pin Header.jpg)
From the 74HC595 shift register to the 328P micro-processor the pins to connect are:.
Pin 14 to 15
Pin 12 to 17
Pin 11 to 16.
From the CD4017 decade counter to the 328P micro-processor the pins to connect are:
Pin 15 to 18
Pin 14 to 19.
Pin connections for the RTC to the 328P ,icro-processor are
:
SDA to pin 27
SCL to pin 28
Ground and VCC +5v will need to be connected as well.
Pin 14 to 15
Pin 12 to 17
Pin 11 to 16.
From the CD4017 decade counter to the 328P micro-processor the pins to connect are:
Pin 15 to 18
Pin 14 to 19.
Pin connections for the RTC to the 328P ,icro-processor are
:
SDA to pin 27
SCL to pin 28
Ground and VCC +5v will need to be connected as well.
Code
![images.jpg](/proxy/?url=https://content.instructables.com/FZZ/0Z5P/HH2W3JIU/FZZ0Z5PHH2W3JIU.jpg&filename=images.jpg)
This is the code i used.
I couldn't copy and past so it is in a attached file.