Go Down

Topic: Arduino Nano Every Pins Misplaced (Read 111 times) previous topic - next topic

WasdThomson

Sep 21, 2019, 05:36 pm Last Edit: Sep 21, 2019, 07:11 pm by WasdThomson
Hi,

I'm using and Arduino Nano Every for my project and I am very confused about the Pins locations.
I wanted to lit an LED from one of the output (with a resistor of course), but it wouldn't lit.
I checked many time how the Pins are supposed to be placed, from the official website it should be like this:

But then I ran this code to check it:
Code: [Select]

int outputs[] = {1,4,5,6,7,8,9,10,11,20,21,22,23,24,25,26,27,28,29,30, 13}; //All pins that are supposely can be used as Outputs.

int i = 0;
int maxOutputs = 21;

void setup() {
  // initialize digital pin as outputs.
  Serial.begin(9600);
  Serial.println("Init");
  for (i = 0; i < maxOutputs; i++)
  {
    Serial.print("init pin ");
    Serial.println(outputs[i]);
    pinMode(outputs[i], OUTPUT);
  }
}

// the loop function runs over and over again forever
void loop() {
  for (i = 0; i < maxOutputs; i++)
  {
    Serial.print("test pin ");
    Serial.println(outputs[i]);
    digitalWrite(outputs[i], HIGH);   // turn the LED on (HIGH is the voltage level)
    delay(500);                       // wait for a second
    digitalWrite(outputs[i], LOW);    // turn the LED off by making the voltage LOW
    delay(250); // wait for a second
  }
}

This allowed me to write my own pins schematic:

As you can see the pins seams to be misplaced compared to the official schematic.
I have 2 Arduino Nano Every and they both behave the same way.
I'm wondering if it could be a manufacturing defect on the GPIO Register.

WasdThomson

#1
Sep 21, 2019, 07:19 pm Last Edit: Sep 21, 2019, 07:19 pm by WasdThomson
I Actually solved it.
Maybe I'm a idiot who can't understand the official documentation.
But using this schematic I found online everything makes sense now

pert

It might help us to improve the documentation or help someone else who has the same misunderstanding if you were to explain the source of your confusion.

The Nano schematic you just posted doesn't at all match the "my own pins schematic" you originally posted, so I don't understand what it was about it that made things clear to you.

Go Up