
The Nano Flip includes the ATmega328P microcontroller, a popular chip also found in the classic Uno development board. One of its most useful built-in features is EEPROM memory, which keeps stored data safe even when power is lost. This capability allows projects to preserve settings, counts, and other critical information across resets and outages.
In this tutorial, we will focus on a simple but clear example. A button press increments a counter by +1, and the count is shown on an I2C LCD. Holding the button for three seconds resets the counter to zero. Both the count and reset behavior are stored in EEPROM so that the project resumes seamlessly after a reset or power cycle.
To build this project you will need a Nano Flip, an I2C Backpack driving a standard 1602 or 2004 LCD, an NTEA-LG prototyping board, and a simple button. The button can be any type as long as it has two terminals, one side wired to ground and the other to the Nano Flip input pin with the internal pull-up enabled. The I2C Backpack connects easily to the Nano Flip’s I2C pins, simplifying the wiring for the LCD. By mounting everything on the NTEA-LG, you get a sturdy base for prototyping and can quickly put all components together in a compact setup.
Guest Post
This project was originally a guest post on the RobotShop platform. Find the full post here.