right now i can receive and show a voltage on a lcd.
but i have to do some calculations with the input before showing them on the lcd now.
attached is a curve
x-axis is the input and the y-axis represents the data i want to show on the lcd
i added a line of best fit and the formula for that line is to the power of 4
"y = 0.00000000001661249863*pow(x,4)- 0.00000012009735767385*pow(x,3)+ 0.00033807921726585*pow(x,2)- 0.482076867931636*x+339.419792445089; "
now i am using the formula to calculate my output for the lcd.
-is it to complex for an atmega (324pa or others) to do the calculation? the result is getting inaccurate when x is getting higher!
-should i do linear approximation between my the points to get y?
or is there any other way how to solve this with an atmega?