Hello. I have a project for a university course. I am a beginner to arduino and especially programming and this project looks very complicated to me. The problem is the code and I dont know where to start, so i would apreciate if you could give me any guidlines on what i should learn or in general any help . For the creation of the circuit i will be using a programm such as Kicad , easyeda, i am not allowed to use tinkercad which seems very easy to use. The question i have with the circuit is how i connect the led matrix with the 3 resistors and if i have to use a breadboard
I do not think that there is a relationship between the voltage divider and the LED matrix. You connect the voltage divider output to an analogue input and you connect the matrix to a number of digital IO pins.
Read the voltage, calculate the value and based on that calculate the digit and display it.
I think you are not clear on the overall scope of the project.
Yes you will need a breadboard to build the 3 resistor device as well as to connect to the LED matrix. But you are not connecting the LED matrix to the three resistor device.
The project objective is to measure the potentiometer resistance Rx by measuring the output voltage of the voltage divider. You will do this by connecting the output of the voltage divider to an analog input pin on the arduino, and converting the reading from the ADC to a voltage. Then you can calculate the Rx based on knowing the two fixed resistor values and the output voltage. Once you have determined the Rx you then use the arduino to output your Rx value to the LED matrix.
Once you understand how to do that basic measurement, you will have to implement code to perform the moving average calculations.
I suggest you start by studying how a potentiometer can be used as a variable resistor, how a voltage divider works, and it's associated calculations, and how to perform and interpret an analog read with the arduino. Next learn how to interface an arduino with a LED matrix.
You must understand and complete these basic steps before attempting the moving average part of the project.
Part 1 is to read the voltage divider network and print out the value of variable resistor.
Part 2 is to get the display working so that you can demonstrate that you can show a digit from 0 to 9 on it. This is not trivial but you should find examples.
Part 3 is implementing the rollong average function.
Then join it all together.
You have a constraint that you cannot use delay() for controlling the sample period. Search for "Arduino blink without delay" to see an example of using millis() to control a timed period.
There are a variety of old school chips which will take a variety of inputs, decimal, alfanumeric, binary and convert to an led matrix to display numbers (if that is what you are asking)