Chinese clone of arduino nano pins not working

Hi folks!

I have a chinese clone of arduino nano and cannot control digital outputs at all. But sometimes it works, and i cannot notice what actions lead to this. So what i am doing. I load this sketch to the board, it is simple like 2x2:

#define PIN 16

void setup() {
  pinMode(PIN, OUTPUT);
}

void loop() {
  digitalWrite(PIN, HIGH);
  delay(1000);
  digitalWrite(PIN, LOW);
  delay(1000);
}

After loading the sketch i take multimeter and measure voltage on pin D13. It shows that there is LOW level constantly. I see the same behaviour on all other digital pins (sure after changing PIN define in sketch and placing probe on another pin) - it simply are not switched.

Have anyone faced with similar problem? What is the cause of this?

The Nano should have an LED on pin 13.

Does the standard Blink sketch make the LED blink ?

yes, standard LED is switching like a charm

... and when Blink runs do you measure HIGH/LOW on pin 13?

it shows 0.8 Volts constantly..

Is PIN 16 a valid one?

On the classic Nano, that is pin A2.

1 Like

Really? even when the LED os off? How exactly are you using your multimeter?

damn, i thought that pins are numbered from top left down and from bot right to top and goes sequantially, but pins aren't actually pins numbers on the board, i see it, thanks, guys!

Then it looks like the problem is how you are measuring the 'pins'

You should download one of the pinout diagrams like seen here

Thanks, but in that picture the pin numbers are not shown. This is the best scheme i can find.

1 Like

Please post here, don't link to pay sites.

The official pinout diagrams for the Arduino Nano are here:

https://docs.arduino.cc/hardware/nano#resources

The picture on the official arduino website also doesn't provide the information about the pins numbers. So unfortunately it is useless for programmers.

Only this pic shows the numbers of the pins, which can be used in sketches:

The official pinout diagram does show the Arduino pin numbers. They are in the orange striped labels. They added a "D" prefix to indicate that they are digital pins, but you should use the pin number alone in your Arduino sketch code.

1 Like

Yes, now i see it, but...but it is not obvious at all! Especially for those, who work with arduino first time.

you just type D1 instead of 1, just like it says on diagram, why it is not obvious?

Because this logic will be broken if one try to apply it to the analogue i/o. For example, according to your explanation A1 is pin 1, the same as D1. But it is wrong.