I want to let 3 light resistors of arduino control max.
How can let arduino send data to max ?
The following is what I done so far. What do I need to add to it for sending data to max so that max can read the changing values from 3 light resistors ?
void setup()
{
Serial.begin(9600);
}
void loop()
{
int sensorValue = analogRead(A1);
int sensorValue2 = analogRead(A2);
int sensorValue3 = analogRead(A3);
Serial.println(sensorValue, DEC);
}
I have no idea what the first two lines of your post mean!
Your code is reading the analog value of three analog inputs but it is only sending the first of these.
You haven't said how the analog pins are wired up.
...R
zelpy:
I want to let 3 light resistors of arduino control max.
How can let arduino send data to max ?
The following is what I done so far. What do I need to add to it for sending data to max so that max can read the changing values from 3 light resistors ?
void setup()
{
Serial.begin(9600);
}
void loop()
{
int sensorValue = analogRead(A1);
int sensorValue2 = analogRead(A2);
int sensorValue3 = analogRead(A3);
Serial.println(sensorValue, DEC);
}