I have a small LCD project that I like to work on when I have time, compared to most things on here it is very simple. I would like to display some data from the Arduino but cannot figure out how to code it.
Should I just turn this into a big if string or are there smarter ways of writing this?
How about if I wanted to display 0 to 5 volts and all the voltage in between but have them displayed as a percentage surely this could be done quite simply?
I have this Wideband oxygen sensor but rather than buy one of their displays I would like to couple it to my own display so I can have other relevant information on the same screen. Without plotting these numbers on a graph but I cannot be sure, but I am of the opinion that this is not linear.
The "Display" values are only given to one decimal. If you put +/- 0.1 error bars on the Y axis you can see that a quadratic fits just as well.
Display = 0.4972 * Voltage * Voltage + 0.8003 * Voltage + 9.59
Thanks for the input on this, but, how do you manage to work it out? Having the answer is good, but I can't figure out how you got there. Can you explain, or point me in the direction of a resource that will help me understand a little better the information you posted?
• Start Excel
• Navigate to the datasheet
• Select, copy, and paste the data into Excel
• Insert a simple scatter plot of the data
• Select a data point, right-click to display the context menu, click Add Trendline
• Fiddle with the trendline parameters until the fit appears to be good
• Ensure Display Equation on Chart is checked
• Click Close
The box containing the equation is a simple text box. The equation can be selected and copied.