ATmega328P
ATmega328P
5V
7-12V
| Digital I/O Pins | 22 |
6
2
32KB
2KB
1KB
16 MHz
Yes
43 x 18 mm (1.7 x 0.7 in)
10g
Overall, the Arduino Nano R3 Development Board Compatible is a powerful, versatile, and easy-to-use microcontroller board suitable for a wide range of applications, from educational projects to professional prototyping.
Arduino Nano R3 Development Board Compatible DocumentationOverviewThe Arduino Nano R3 Development Board Compatible is a compact, breadboard-friendly microcontroller board based on the ATmega328P chip. It is a popular choice for IoT projects due to its small size, ease of use, and affordability. This documentation provides an overview of the board's features, specifications, and code examples to get you started with your projects.Features and SpecificationsMicrocontroller: ATmega328P
Operating Voltage: 5V
Input Voltage: 7-12V
Digital I/O Pins: 14 (6 of which can be used as PWM outputs)
Analog Input Pins: 8
DC Current per I/O Pin: 40 mA
Flash Memory: 32 KB
SRAM: 2 KB
EEPROM: 1 KB
Clock Speed: 16 MHzCode Examples### Example 1: Blinking LEDIn this example, we will demonstrate how to use the Arduino Nano R3 to blink an LED connected to digital pin 13.```c
const int ledPin = 13; // choose a pin for the LEDvoid setup() {
pinMode(ledPin, OUTPUT); // set the 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
}
```### Example 2: Reading Analog Input from a PotentiometerIn this example, we will demonstrate how to use the Arduino Nano R3 to read the analog input from a potentiometer connected to analog pin A0.```c
const int potPin = A0; // choose a pin for the potentiometervoid setup() {
Serial.begin(9600); // initialize the serial communication
}void loop() {
int potValue = analogRead(potPin); // read the analog value from the potentiometer
Serial.print("Potentiometer value: ");
Serial.println(potValue); // print the value to the serial monitor
delay(100); // wait for 100 milliseconds
}
```### Example 3: Communicating with an I2C LCD DisplayIn this example, we will demonstrate how to use the Arduino Nano R3 to communicate with an I2C LCD display.```c
#include <Wire.h> // include the Wire library for I2C communication
#include <LiquidCrystal_I2C.h> // include the LiquidCrystal_I2C library for the LCD display// set the LCD address and pins
#define LCD_ADDRESS 0x27
#define LCD_COLS 16
#define LCD_ROWS 2LiquidCrystal_I2C lcd(LCD_ADDRESS, LCD_COLS, LCD_ROWS); // initialize the LCD displayvoid setup() {
lcd.init(); // initialize the LCD display
lcd.backlight(); // turn on the backlight
}void loop() {
lcd.setCursor(0, 0); // set the cursor to the first row and first column
lcd.print("Hello, World!"); // print a message to the LCD display
delay(1000); // wait for 1 second
lcd.clear(); // clear the LCD display
delay(1000); // wait for 1 second
}
```These code examples demonstrate the basic functionality of the Arduino Nano R3 Development Board Compatible and its ability to interact with various components. You can modify these examples to suit your specific project requirements.