Stufin
Home Quick Cart Profile

Arduino Nano Original

Buy Now

Pin Configuration

  • Arduino Nano Original Pinout Documentation
  • The Arduino Nano Original is a microcontroller board based on the ATmega328P chip. It has a compact design and features 30 digital input/output pins, 8 analog input pins, and 16 digital input/output pins that can be used as PWM outputs. Here's a detailed explanation of each pin, point by point:
  • Digital Pins (0-13)
  • Pin 0 (RX): Receive pin for serial communication (UART). Used to connect to the RX pin of a serial device or module.
  • Pin 1 (TX): Transmit pin for serial communication (UART). Used to connect to the TX pin of a serial device or module.
  • Pin 2: Digital input/output pin. Can be used as a general-purpose I/O pin or as an interrupt pin.
  • Pin 3: Digital input/output pin. Can be used as a general-purpose I/O pin or as an interrupt pin. Also serves as the PWMA (Timer 0) output.
  • Pin 4: Digital input/output pin. Can be used as a general-purpose I/O pin.
  • Pin 5: Digital input/output pin. Can be used as a general-purpose I/O pin. Also serves as the I2C clock (SCL) line.
  • Pin 6: Digital input/output pin. Can be used as a general-purpose I/O pin. Also serves as the I2C data (SDA) line.
  • Pin 7: Digital input/output pin. Can be used as a general-purpose I/O pin.
  • Pin 8: Digital input/output pin. Can be used as a general-purpose I/O pin. Also serves as the SPI clock (SCK) line.
  • Pin 9: Digital input/output pin. Can be used as a general-purpose I/O pin. Also serves as the SPI master out slave in (MOSI) line.
  • Pin 10: Digital input/output pin. Can be used as a general-purpose I/O pin. Also serves as the SPI master in slave out (MISO) line.
  • Pin 11: Digital input/output pin. Can be used as a general-purpose I/O pin.
  • Pin 12: Digital input/output pin. Can be used as a general-purpose I/O pin. Also serves as the analog reference (AREF) pin.
  • Pin 13: Digital input/output pin. Can be used as a general-purpose I/O pin. Also serves as the built-in LED pin.
  • Analog Input Pins (A0-A7)
  • Pin A0: Analog input pin. Can be used to read analog signals from sensors or modules.
  • Pin A1: Analog input pin. Can be used to read analog signals from sensors or modules.
  • Pin A2: Analog input pin. Can be used to read analog signals from sensors or modules.
  • Pin A3: Analog input pin. Can be used to read analog signals from sensors or modules.
  • Pin A4: Analog input pin. Can be used to read analog signals from sensors or modules. Also serves as the I2C clock (SCL) line.
  • Pin A5: Analog input pin. Can be used to read analog signals from sensors or modules. Also serves as the I2C data (SDA) line.
  • Pin A6: Analog input pin. Can be used to read analog signals from sensors or modules.
  • Pin A7: Analog input pin. Can be used to read analog signals from sensors or modules.
  • Power Pins
  • Vin: Input voltage pin. Can be used to power the board from an external power source (e.g., battery or wall adapter).
  • GND: Ground pin. Used to connect the board to a common ground point.
  • 3V3: 3.3V output pin. Regulated 3.3V power source for external components.
  • 5V: 5V output pin. Regulated 5V power source for external components.
  • Reset Pin
  • RST: Reset pin. Used to reset the microcontroller. Pulling this pin low will reset the board.
  • Note:
  • The Arduino Nano Original operates at 5V, but the input voltage range is 7V to 12V.
  • The board has a built-in voltage regulator to regulate the input voltage to 5V.
  • The 3.3V output pin should not be used to power external devices that require more than 50mA of current.
  • When connecting pins, ensure you follow the correct polarity and voltage ratings to avoid damage to the board or external components. Always refer to the Arduino Nano Original datasheet and relevant documentation for specific use cases and cautions.

Code Examples

Arduino Nano Original Documentation
Overview
The Arduino Nano Original is a small, complete, and breadboard-friendly microcontroller board based on the ATmega328P ( datasheet ) and is similar to the Arduino Uno but in a more compact size. It has 14 digital input/output pins, 6 analog input pins, 16 megabytes of flash memory, and can operate at a clock speed of up to 16MHz.
Features
Microcontroller: ATmega328P
 Operating Voltage: 5V
 Input Voltage: 7-12V
 Digital I/O Pins: 14
 Analog Input Pins: 6
 Flash Memory: 16 MB
 Clock Speed: up to 16MHz
 Size: 18 x 45 mm
Code Examples
### Example 1: Blinking LED
This example demonstrates how to use the Arduino Nano Original to blink an LED connected to digital pin 13.
```c
const int ledPin = 13;  // choose the pin for the LED
void setup() {
  pinMode(ledPin, OUTPUT);  // set the LED pin as an output
}
void loop() {
  digitalWrite(ledPin, HIGH);  // turn the LED on
  delay(1000);  // wait for 1 second
  digitalWrite(ledPin, LOW);  // turn the LED off
  delay(1000);  // wait for 1 second
}
```
Hardware Requirements
Arduino Nano Original board
 LED
 Breadboard
 Jumper wires
Example 2: Reading Analog Input
This example demonstrates how to use the Arduino Nano Original to read analog input from a potentiometer connected to analog pin A0 and print the value to the serial monitor.
```c
const int sensorPin = A0;  // choose the analog input pin
void setup() {
  Serial.begin(9600);  // initialize serial communication
}
void loop() {
  int sensorValue = analogRead(sensorPin);  // read the analog input
  Serial.print("Sensor value: ");
  Serial.println(sensorValue);
  delay(100);  // wait for 100ms
}
```
Hardware Requirements
Arduino Nano Original board
 Potentiometer
 Breadboard
 Jumper wires
### Example 3: Communication with Serial Monitor
This example demonstrates how to use the Arduino Nano Original to send and receive data through the serial monitor.
```c
void setup() {
  Serial.begin(9600);  // initialize serial communication
}
void loop() {
  if (Serial.available() > 0) {  // check if data is available in the serial buffer
    String message = Serial.readStringUntil('
');  // read the incoming data
    Serial.println("Received message: " + message);
  }
}
```
Hardware Requirements
Arduino Nano Original board
 Computer with serial monitor software (e.g., Arduino IDE, Serial Monitor)
Note: Make sure to choose the correct board and port in the Arduino IDE before uploading the code to the Arduino Nano Original.