Chinese clone of arduino nano pins not working

I agree completely. I always thought this practice of adding "D" prefixes when labeling pins was a bad idea. I also would not have taken the approach of the "A" prefix. The pins should be identified by numbers alone, and then the various attributes of the pin (e.g., ADC, DAC, PWM, interrupts, SPI, I2C, UART) clearly communicated separately from the primary pin identification.

1 Like

no you type A1 just like it says on pinout

I'm afraid it will not even compile.

Anyway, it is not obvious, why in case of digital pin one should remove "D" letter, but in case of analogue pin shouldn't?

Hi,

Can you tell us the version of the IDE you are using.
Can you tell us the operating system your computer uses?
Please post in a new post the code that will not compile?
What compile error(s) do you get?

Thanks.. Tom.. :grinning: :+1: :coffee: :australia:

It does not matter. Pins are integers, not strings. Thus if one type "A1" instead of 1 code will not compile.

Do not use the quotes, A1 is from a #define and is used to reference the hardware pin number for the analog input so that the code can work on multiple platforms.

Hi,

  1. Please tell us what IDE and OS you are using?
    You seem to have gone to a lot of words in the quote, when fewer would have answered my question.

  2. Can you please post the code with A1 in it that won't compile?

  3. Can you please post the compiler error message you get?

Thanks.. Tom... :grinning: :+1: :coffee: :australia:
PS. I think they are fair questions to ask if you are really serious about asking for our help.

I have received the solution of my problem, and i do not ask you for help now.

Concerning pin numbers i have wrote my opinion. I think that it was not carefully thought out and i have explained why.

Hii,I am also facing same issue.Did you get solution?

Yes, i've found the solution. I suppose, that you should recheck your wiring. In my case I did measures on wrong pin. Post your wiring and code of your sketch there.

But you probably don't have the same hardware or software. So please start a new topic instead of hijacking someone else's. Don't continue to post here, it will just create confusion.

The issue was a mis-understanding of how the pins are numbered on the Nano - which seems to have been resolved satisfactorily in the discussion.

After disconnect and reconnect nano it is now working.But still it works on pin 2,6,7 while not work on pin 3,4,5.I have working code while set pin 6 as below


Also while using GND pin near VIN work fine but GND pin near D2 not working and blink my LED.

I can see that you did not solder the header pins to your Nano board:

It is essential for you to solder these. If you only poke them through the holes then you will not get reliable electrical connections and you'll have endless problems.

Soldering is a very valuable skill for anyone interested in electronics and you don't need to spend a ton of money. Just get a reasonably good iron (maybe $20 USD if you shop around) and some good quality flux core lead solder.

If for some reason you are unwilling to do the soldering, you can buy Nano boards with pre-soldered headers. For example:

But if you continue to work with Arduino for the long term you are going to run into situations where soldering is essential.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.