Before discussing Arduino nano pinout, I will explain a little about what is Arduino Nano. Arduino Nano is one of the Arduino products that use an ATmega328P microcontroller, but Atmega328P microcontroller in Arduino nano has a shape that is different compared to Atmega328P used in Arduino Uno. If the UNO uses a form of PDIP with the number of 28 pins, but the Nano using TQFP with the number 32 pins. Specifically for this TQFP model has an additional 2 pins for ADC. If on Arduino UNO has ADC as much as 6 ports, but for Arduino Nano has ADC as much as 8 ports.
Specs owned Arduino Nano is.
- Chip ATmega328P microcontroller.
- Operating voltage 5V.
- Input voltage (recommended) 7V – 12V.
- Digital I / O pin 14 pieces, 6 of which provide PWM.
- Analog Input pin 6 pieces.
- DC current per pin I / O 40 mA.
- Flash Memory 32 KB, 0.5 KB has been used for bootloader.
- SRAM 2 KB.
- 1 KB EEPROM.
- Clock speed 16 Mhz.
- Dimensions 45 mm x 18 mm.
- Weight 5 g
As mentioned earlier, Arduino Nano has 14 pieces of digital pins that can be used as input or output. The pins work on a 5V voltage, and each pin can provide or receive a current of 20mA, and has a pull-up resistance of about 20-50k ohms (by default in disconnect). The maximum value is 40mA, which is avoided as much as possible to avoid damage to the microcontroller chip.
Some pins that have special functions include the following:
- Serial, consisting of 2 pins: pin 0 (RX) and pin 1 (TX) used to receive (RX) and send (TX) serial data.
- External Interrupts, ie pin 2 and pin 3. Both pins can be used to enable interrupts. Use the attachInterrupt () function
- PWM: Pin 3, 5, 6, 9, 10, and 11 provide an 8-bit PWM output using the analogWrite () function
- SPI: Pin 10 (SS), 11 (MOSI), 12 (MISO), and 13 (SCK) support SPI communications using the SPI Library
- LED: Pin 13. On pin 13 connected built-in led controlled by digital pin no 13.
Arduino Nano has 8 analog inputs, marked A0 through A7. Each of these analog pins has a resolution of 1024 bits (so it can have 1024 values). By default, the pins are measured from ground to 5V, but can also use REF pins by using the analogReference () function.
Analog pins A6 and A7 can not be used as digital pins, just as analog. Some other pins on this board are as follows:
- I2C: Pin A4 (SDA) and A5 (SCL). This pin supports I2C (TWI) communication using Wire Library.
- AREF. As reference voltage for analog input.
- Reset. Connect to LOW to reset the microcontroller. Usually used to be connected with switches used as reset button.