problem with code for arduino voltage reading
Show older comments
Doing a project with pulse sensor on arduino followed a code online it hit an error im unable to understand im still learning matlab at a basic level can anyone help this is the coding error
Undefined function 'readVoltage' for input arguments of type 'matlab.graphics.axis.Axes'.
Error in mypulsesensor (line 85)
data(i) = readVoltage(a,'A0'); % read voltage on pin A0, store as next data point
2 Comments
Geoff Hayes
on 2 Jan 2020
Muhammad - what is variable a in your
data(i) = readVoltage(a,'A0')
? The error message is suggesting that this may be an axes and not the arduino (which you are trying to read from). You may need to post more of your code so that we can see how you have defined variables for the axes and arduino.
Muhammad Alief Nasarudin
on 2 Jan 2020
Accepted Answer
More Answers (0)
Categories
Find more on Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!