Most recent activity
-
- 5 comments
- 1,784 views
-
Hello Gordon,
Yes, the numbers that I have put up there are not correct, it was just an example so you would be able to understand what I meant. But I understood perfectly now, your explanation was awesome. And I have another question, I'm using an accelerometer to measure vibrations with this waveform, however this waveform is only for one axis. If I wanted to measure these values in the three axis (X, Y and Z) with this waveform function, how could I do?
-
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.8vDo 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?
-
-
- 7 comments
- 2,357 views
-
-
Yes, that's right. This waveform that I posted is only 10 items form, however, for the experimentation I am working on, I will reproduce this waveform with much more items. Thanks a lot for the tip Gordon, I'll try that!
Let me ask you another thing, can Espruino reproduce this graph? Because that could be another solution for me as well. Sorry if the question is too silly, but this is my first contact with Espruino.
-
Hello, I would like to know if there is a way to plot the result of this waveform:
var w = new Waveform(10, {bits:16});
w.on("finish", function(buf) {
for (var i in buf)
console.log(buf[i]);
});
w.startInput(A0,1000,{repeat:false});directly to Excel or other program in order to plot a graph, without having to copy/paste the results, as it would be inconvenient to copy 1000 points of the waveform, for example.
Att, Thiago
Thanks a lot Gordon!