I'm studying the waveform below and I'm interested in the corresponding voltages of each point that the waveform returns:
var w = new Waveform(2000, {bits:16});
w.on("finish", function(buf) {
for (var i in buf)
console.log(buf[i]);
});
w.startInput(A0,10000,{repeat:false});
For example, the first points are
49168 - corresponds to 2.7v
49264 - corresponds to 2.6v
49264 - corresponds to 2.6v
49408 - corresponds to 2.8v
49408 - corresponds to 2.8v
Do you know how can I convert? It would help if I knew the minimum and the maximum of the values of these points, for example: minimum: 20000, maximum: 50000
The analog to digital converter converts the analog data in points with corresponding voltages between 0 - 3.3v, correct?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello,
I'm studying the waveform below and I'm interested in the corresponding voltages of each point that the waveform returns:
var w = new Waveform(2000, {bits:16});
w.on("finish", function(buf) {
for (var i in buf)
console.log(buf[i]);
});
w.startInput(A0,10000,{repeat:false});
For example, the first points are
49168 - corresponds to 2.7v
49264 - corresponds to 2.6v
49264 - corresponds to 2.6v
49408 - corresponds to 2.8v
49408 - corresponds to 2.8v
Do you know how can I convert? It would help if I knew the minimum and the maximum of the values of these points, for example: minimum: 20000, maximum: 50000
The analog to digital converter converts the analog data in points with corresponding voltages between 0 - 3.3v, correct?