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.
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
