Hey all, I'm trying to send data from a flex sensor into Max 7 via serial(9600).
The serial monitor is posting correct data in Arduino, but I'm getting random
single channel data in Max 7 that isn't even close to the (flexposition) data.
I don't know why the data would be different.
Code is below, thank you for your help.
const int flexpin = 0;
void setup()
{
Serial.begin(9600);
}
void loop()
{
int flexposition; // Input value from the analog pin.
flexposition = analogRead(0);
Serial.println(flexposition);
Serial.write(flexposition);
delay(20); // wait 20ms between servo updates
}