Start With Arduino - complete beginner

Hi, I'm 100% new at Arduino. I never worked with electronics before, although I'm familiar with the basic physics of semiconductors, transistors, and so on. I have a good knowledge of electric calculation. I just never used the theory in practise. I am a retired mathematics and physics teacher (63 years old) and I want to learn something useful and 'train' my brain a little.
So my first question:
If you have a sketch in Arduino, made for the UNO with the pin layout done and working; can you use the SAME numbers for the pinout on the NANO?
Or in other words, is a pin 12 on the UNO the same if you connect it to pin 12 on a NANO?
Do you have to change the script or not?
Thanks for the answers. I am a beginner here so thanks.

My novice answer is: A6 and A7 on the Nano do not appear on the Uno. All other pins are the same.

  • Please don’t flaunt your youth at us old guys :cry:
  • Yes, however, it is a very simple matter to make code changes to reflect your design changes.

I moved your topic to an appropriate forum category @tbu .

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Damn kids think 63 is years old. Today is my 85th birthday. Still learning useful stuff!

6 Likes

Happy Birthday Paul. We celebrated my 69th last week.

1 Like

@tbu I read that one way to exercise your mind is to learn a new language, be it French, Latin or C++

1 Like

I have heard learning your way around a keyboard is another.

a7

IMHO, the first thing you need to learn is how microcontrollers / microprocessors work. I see so many beginners struggling with HOW to program with languages like C / C++ with no regard to WHAT they are programming (a microcontroller).

1 Like

Happy Birthday!

2 Likes

Pretty much if you stick with the "core" Arduino-type boards (Uno, Nano, Mega based on the Atmel ATmega328 AVR microcontrollers).

Sometimes you'll run into differences in terms of libraries that use different features of certain pins or whose I2C pins might not be the same as on the Uno. For example, the very popular MFRC522 library (RFID/NFC tags and readers) includes the following notes in the DumpInfo example sketch:

 * Typical pin layout used:
 * -----------------------------------------------------------------------------------------
 *             MFRC522      Arduino       Arduino   Arduino    Arduino          Arduino
 *             Reader/PCD   Uno/101       Mega      Nano v3    Leonardo/Micro   Pro Micro
 * Signal      Pin          Pin           Pin       Pin        Pin              Pin
 * -----------------------------------------------------------------------------------------
 * RST/Reset   RST          9             5         D9         RESET/ICSP-5     RST
 * SPI SS      SDA(SS)      10            53        D10        10               10
 * SPI MOSI    MOSI         11 / ICSP-4   51        D11        ICSP-4           16
 * SPI MISO    MISO         12 / ICSP-1   50        D12        ICSP-1           14
 * SPI SCK     SCK          13 / ICSP-3   52        D13        ICSP-3           15

Sometimes, especially lately, there are boards being sold a bit dubiously as "Arduino", since they come up in a search for Arduino and kind of lead us down the path into thinking they are pretty much the same as Old Faithful Arduino Uno R3, and they aren't even close. The ESP32 family by Espressif fall into this camp, IMO.

You might start making simple projects that could be used in physics classrooms.

It's amazing how many cheap ways there are to sense, with timing down to 4 usec intervals or less.

The code may be your hard part but with maths discipline, not so hard especially if you stick to C with occasional use of partial C++ you pick up along the way.
You will find tutorials and help to "do multiple things at the same time" for automating without an OS. In the 80's the name was Main Loop Programming. It has been the du jour lesson here since before I joined, it's is EE coding rather than IT coding and it makes life easier. Sing out and you WILL get help!

1 Like

In German they say:
"Man ist so alt wie man sich fühlt" :slight_smile:

It's not so much fun passing 60.
Still haven't figured out how I lived that long.