how can i use analog pins(A6-A11) on the arduino micro.

Hi everyone,

I want to use an Arduino Micro in the one of the my projects. I can read analog pins A0-A5 clearly. There is no problem.

But i have to use 8 analog pins.

When i checked documentation, i saw this sentence. The document said that Analog Inputs: A0-A5, A6 - A11 (on digital pins 4, 6, 8, 9, 10, and 12). The Micro has a total of 12 analog inputs, pins from A0 to A5 are labelled directly on the pins and the other ones that you can access in code using the constants from A6 trough A11 are shared respectively on digital pins 4, 6, 8, 9, 10, and 12.

But i could not read A6 or A7. I can not see true values in the serial monitor. For example i can see 2.90 volt minimum and 4.8 volt maximum.

These are my codes.

void setup() {
    Serial.begin(9600);
}


void loop() {
  
  int sensorValue = analogRead(A6);
  
  float voltage = sensorValue * (5.0 / 1023.0);
  
  Serial.println(voltage);
}

digital pins 4 and 6 are synonymous with A6 and A7