Embedded Firmware Object Counter with OLED

I developed an Embedded Firmware Object Counter on an AVR microcontroller with START/STOP and RESET functionality. The system uses an HC-SR04 sensor to detect objects and displays the real-time count on an OLED display via the I²C protocol.

Linkedin post link:
https://www.linkedin.com/posts/anees-kokadan_embeddedsystems-avr-i2c-activity-7411966624666382337-ixqO?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAABpp0PkBI2m3mwO5pKHlo96RE-5O-1S-AyY



The core functionality is handled in a simple loop:

while (1)
{
if (Button_Pressed(START_STOP_BTN))
{
counter_run ^= 1;
}

if (Button_Pressed(RESET_BTN))
{
counter_run = 0;
obj_count = 0;
}

if (counter_run)
{
count();
}

printCount();
}


This project demonstrates:

Bare-metal embedded programming

Sensor interfacing and real-time data acquisition

User interface design on embedded displays

Hardware-software integration

It’s a practical example of building a complete standalone embedded system from scratch.

hashtag#EmbeddedSystems hashtag#AVR hashtag#I2C hashtag#OLED hashtag#FirmwareDevelopment hashtag#BareMetal hashtag#Microcontrollers hashtag#IoT hashtag#Electronics hashtag#HardwareSoftwareIntegration

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top