Has anyone made a voltmeter in MaxMSP?

Gandalf's icon

Using an arduino analog input, has anyone made a decent voltmeter that will display a range of voltages that you may expect to get?

There are lots of ways to measure/display signal strength, but what about a simple linear voltage display?

Wetterberg's icon

It's trivial though, isn't it? I mean, if the arduino takes 0-5v, and outputs 0-1023 - each unit is 4.9mV, as per the docs - then it's a simple scaling operation to get the value back again.

[scale 0 1023 0. 5.] and you're set, as far as I see it.

Gandalf's icon

doh!
glaringly simple. lol
Thank you