I have a need at the moment for a variable that is looked up from a 3D table, I can't say I know about how to use arrays - so I'm not sure if using arrays is the way to go about it, or if indeed a 3 dimensional array is possible.
How would I go about creating and using a lookup table? Size wise, I'm hoping to be able to use a table with a size of roughly 10 x 20.
Furthermore, these values will need to be interpolated between table cells - but we'll deal with that later...
Size wise, I'm hoping to be able to use a table with a size of roughly 10 x 20.
That's 2D
Of course! I was thinking of the values in the table as being the "third" dimension... No wonder all the 3D info I've looked at seems to be over complicated so far.
10x20 => 200 entries in your table. Is every entry a byte, int, long or float? Be aware that the amount of RAM is limited in Arduino's (depends on which you use) and if the array is readonly you might consider put it in program space (google PROGMEM).
Also if the array contains a lot of the same values you might consider using sparse array's. See - Sparse matrix - Wikipedia -