I am trying to view just simple changes in resistance in real time for a presentation I am giving tomorrow, and I can't seem to make this work. I am using Atom PlatformIO with an arduino 101, and am using the following code:
#include "Arduino.h"
#include "Plotter.h"
double rVal = 10e3; // Known resistor value.
int iPin = A2; // Pin our input is connected to.
double vIn = 5; // Input voltage corrected for loss.
Plotter p; // Global Plotter variable
double out; // Global output variable
double resistance;
void setup()
{
// put your setup code here, to run once:
p = Plotter(); // Initialize Plotter
p.AddTimeGraph( "Resistance", 500, "Resistance", resistance);
void loop()
{
// put your main code here, to run repeatedly:
out = analogRead(iPin); // Our output voltage
resistance = (out * vIn) / (vIn - out); // The resistance between leads
p.Plot();
}
However when I open the Listener app it switches off between displaying
I am trying to view just simple changes in resistance in real time for a presentation I am giving tomorrow, and I can't seem to make this work. I am using Atom PlatformIO with an arduino 101, and am using the following code:
However when I open the Listener app it switches off between displaying
and .
I am running Mac OS Sierra Any advice?