Skip to content

cmoibssld/Embedded-final-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Final Boss - Rush 01

This project was made during 42 Piscine Embedded in November 2025 as a week-end 'rush' challenge.
It is called 'Final Boss' for it tests everycomponents of a devboard build upon an ATMega328p (except for the eeprom).

Components tested

Components Model
2 wire communication LEDs APA102
Parallel I/O Port, 16-Bit PCA9555PW
I2C LED Display Segments TOF-F4401AMG-N
Luminosity sensor
Temperature & Humidity Sensor AHT20
Potentiometer
Physical switchs AVR-ISP-6 and others
USB-C Connectors for uart connection

The internal clock of the ATMega328p is already tested by the firmware.

Short explaination of the main target

We must implement 11 modes that test every aspect of the components listed previously.

  1. Displays the ADC value of the potentiometer in decimal (0 to 1023)
  2. Displays the ADC value of the luminosity censor connected to LDR R14 in decimal (0 to 1023)
  3. Displays the ADC value of the AVR-ISP-6 connected to NTC R20 in decimal (0 to 1023)
  4. Displays the MCU’s internal temperature value in decimal (0 to 1023)
  5. Displays “-42-” and makes LEDs D5, D6, D7 (in 2 wire com) and D8 flash red, then green, then blue (1 second between each color)
  6. Displays the ambient temperature in Celsius
  7. Displays the ambient temperature in Fahrenheit
  8. Displays the humidity as a percentage
  9. Displays the time in 24-hour format (23:23)
  10. Displays the day and month
  11. Displays the year

Switching from one mode to another is made by pressing two buttons, one to go up in the mode (+1) and other to go down (-1). Reaching mode 11 overflows to mode 1. Date and time can be change using the UART interface.

How to use

To compile and flash it on the memory of the microprocessor

make

Warning
Without the devboard, the firmware will be difficult to test.

To clean build:

make clean

About

This pure C two students project is a firmware that is made to test every aspect of a ATMega328p devboard and requires understanding many embedded tools whose SPI and i2c protocols along with uart communication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors