r/arduino • • Sep 05 '26

Look what I made! Arduino Math Lab (Online Graphing Calculator)

Just publishing a tool I made for visualizing my Arduino code on a graph with variables to make sure my outputs will make sense under various scenarios. Just a bit easier than using a full simulator
Hope someone finds it helpful.
Please give it a try and upvote!
Report bugs on Git not here.

https://mythicalninja.github.io/Arduino-Math-Lab/

5 Upvotes

3 comments sorted by

1

u/MinusDelta_T Sep 06 '26

this looks handy for checking sensor-to-output curves without setting up a full simulation. how does it handle integer division? float y = 5 / 2; still gives 2 on the Arduino, not 2.5. a quick note on whether the graph preserves that behaviour or uses floating-point maths throughout would be useful.

1

u/MythicalNinja7 29d ago

You can use floor(5 / 2) if you really need it but you are correct. I know it will smooth out mapping and such but there's no easy way to fix it for just a visualizer. I wouldn't trust it for precise values anyway. You're welcome to fork and give it a try and lmk how it goes XD.

1

u/MinusDelta_T 29d ago

fair enough, i meant a quick note about the difference, not turning it into a full simulator. still useful for seeing the overall curve, then checking the exact values on the board. thanks for clarifying.