How to make an Arduino Pro Mini bare bones with Real-time Clock

Summary of How to make an Arduino Pro Mini bare bones with Real-time Clock


This article guides readers on constructing a bare-bones Arduino Pro Mini from scratch using an Atmega 328p chip. It details removing unnecessary components like the voltage regulator and LED to minimize power consumption for battery-operated projects like smartwatches. The guide also explains integrating a PCF8563 real-time clock (RTC) and configuring external interrupts via a button to wake the system from sleep mode using the LowPower library.

Parts used in the Bare Bones Arduino Pro Mini Project:

  • Atmega 328p microcontroller
  • PCF8563 real-time clock
  • CR2032 or LIR2032 battery
  • LowPower library
  • Two 22 pF capacitors
  • Capacitor C13
  • Two pull-up resistors (2K Ohms)
  • Button switch
  • Breadboard

Recapitulation

One thing I didn’t find clearly over the internet is how to make an Arduino Pro Mini bare bones, that is, from the scratch, and how to make one on the breadboard. This is really useful if you want to make a custom pcb/smd circuit, because you will be able to test your hardware ans software before sending the schematics and the layout of the board to the manufacturer. Also, it will make your circuit Arduino compatible. If you read my previous article, here, I showed how to make a simple circuit with the PCF8563 real-time clock, reading and writing it. Now it is time to put your Atmega 328p on the breadboard and complete a simple read of the clock, maintaining the power consumption low, and for that I will use the LowPower library.
How to make an Arduino Pro Mini bare bones with Real-time Clock

First steps

All over the internet there are numerous tutorials about how to make an Arduino Uno bare bones, but it is hard to find a Pro Mini. For our lucky, they are really similar, and a good start can  be made by looking for the original Arduino Pro Mini schematic, here. The main circuit is as the next image shows.
From the circuit above, the only part that is not clear are those capacitors on the oscillator pins, one on OSC1 and one on OSC2. For those, I used 22 pF each. The next thing we need to do is to eliminate the voltage regulator from the schematic, because we are going to use this circuit in our smartwatch, and will use a CR2032 or LIR2032, which don’t need them. The voltage regulator and the LED make our power consumption go up a bit, so we can leave them behind.
The red box of the image shows what we don’t want in our breadboard. As for example, we don’t need a LED just to show the Atmega is on, because that would be a terrible waste of precious mA. The green box, however, is very welcome. Watch out not to place the capacitor C13 upside down!
Take a note: watch out that, although this is the schematic for the Arduino Pro Mini, the number of the pin which you will connect each part may vary according to the packet size of the chip you have chosen. To know better about each pin of each packet size you have to check the datasheet.

Placing the RTC

Now, if you read my previous article, you just have to connect A5 to SCL pin on the PCF8563, and the A4 to the SDA pin. Use pull-up resistors on both wires. These resistors can be between 2K and 10K Ohms. In my case I stayed with 2K. The only different pin I used was a button (without any resistors) on the Atmega pin number 4 (or digital input 2), because as we are going to use the power down mode, I want it to wake up via external interrupt.
How to make an Arduino Pro Mini bare bones with Real-time Clock
Read More: How to make an Arduino Pro Mini bare bones with Real-time Clock

Quick Solutions to Questions related to Bare Bones Arduino Pro Mini Project:

  • Why should I remove the voltage regulator and LED?
    Removing these components reduces power consumption, which is critical for battery-operated devices like smartwatches.
  • What capacitor values are needed for the oscillator pins?
    You should use two 22 pF capacitors, one on OSC1 and one on OSC2.
  • How do I connect the PCF8563 RTC to the Atmega 328p?
    Connect A5 to the SCL pin and A4 to the SDA pin, ensuring pull-up resistors are used on both wires.
  • What resistance value is recommended for the RTC pull-up resistors?
    Resistors between 2K and 10K Ohms can be used, with 2K Ohms being a suitable choice.
  • Which pin is used for the button to wake the device from power down mode?
    A button without resistors is connected to Atmega pin number 4, which acts as a digital input for external interrupt.
  • Can I use this circuit design for custom PCBs?
    Yes, building this on a breadboard allows you to test hardware and software before sending schematics to a manufacturer.
  • What type of battery is compatible with this low-power circuit?
    The circuit uses CR2032 or LIR2032 batteries which do not require a voltage regulator.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top