Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Vietduino Uno ATmega328P : Examples, Pinouts, and Specs

Image of Vietduino Uno ATmega328P
Cirkit Designer LogoDesign with Vietduino Uno ATmega328P in Cirkit Designer

Introduction

The Vietduino Uno ATmega328P is a microcontroller board developed by MakerEdu.vn. It is based on the ATmega328P microcontroller and is designed to provide a versatile platform for embedded systems development. The board features a range of digital and analog I/O pins, USB connectivity for programming, and full compatibility with the Arduino IDE, making it an excellent choice for both beginners and experienced developers.

Explore Projects Built with Vietduino Uno ATmega328P

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ATmega328P-Based Sensor Hub with OLED Display and LIDAR
Image of TILTPCB: A project utilizing Vietduino Uno ATmega328P  in a practical application
This circuit features an Mtiny Uno ATmega328P microcontroller as its central processing unit, interfacing with a variety of sensors and peripherals. It includes a 0.96" OLED display and an MPU6050 accelerometer/gyroscope for user interface and motion sensing, respectively. The circuit also integrates a TF LUNA LIDAR for distance measurement, a DHT11 sensor for temperature and humidity readings, and uses a 9V battery with a 7805 voltage regulator for power management. Communication with a computer for programming and data exchange is facilitated by an Adafruit FTDI Friend module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and ESP32 CAM Controlled Fire Detection and Alert System with GSM Notification
Image of ASO BOT: A project utilizing Vietduino Uno ATmega328P  in a practical application
This circuit features an Arduino UNO as the central microcontroller, interfaced with a variety of sensors, actuators, and modules. It includes a 5-channel fire sensor, temperature and humidity sensor (DHT11), two buzzers, and two servomotors controlled by an L293D driver shield. The circuit also integrates an ESP32 CAM for wireless capabilities, a 2-channel relay module controlling a mini water pump, an LCD display for user interface, a SIM 800L GSM module for cellular connectivity, and is powered by a 9V battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO-Based Bluetooth-Controlled Robotic System with MPU6050 and Motor Driver
Image of road turning detect automatically vehicles slow: A project utilizing Vietduino Uno ATmega328P  in a practical application
This circuit features two Arduino UNO microcontrollers, an MPU6050 sensor, an L298N motor driver, two DC motors, a servo motor, and an HC-05 Bluetooth module. The Arduinos control the motors via the L298N driver and receive sensor data from the MPU6050, while the Bluetooth module allows for wireless communication. Power is supplied through a USB power source.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based Environmental Monitoring System with Wi-Fi Connectivity
Image of Aqua Sentinel: A project utilizing Vietduino Uno ATmega328P  in a practical application
This circuit features an Arduino UNO microcontroller interfaced with two 28BYJ-48 stepper motors via ULN2003A breakout boards for motor control. It also includes a DS18B20 temperature sensor and an MQ-135 air quality sensor for environmental monitoring. Additionally, an ESP8266 ESP-12E WiFi module is connected to the Arduino for wireless communication capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Vietduino Uno ATmega328P

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of TILTPCB: A project utilizing Vietduino Uno ATmega328P  in a practical application
ATmega328P-Based Sensor Hub with OLED Display and LIDAR
This circuit features an Mtiny Uno ATmega328P microcontroller as its central processing unit, interfacing with a variety of sensors and peripherals. It includes a 0.96" OLED display and an MPU6050 accelerometer/gyroscope for user interface and motion sensing, respectively. The circuit also integrates a TF LUNA LIDAR for distance measurement, a DHT11 sensor for temperature and humidity readings, and uses a 9V battery with a 7805 voltage regulator for power management. Communication with a computer for programming and data exchange is facilitated by an Adafruit FTDI Friend module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ASO BOT: A project utilizing Vietduino Uno ATmega328P  in a practical application
Arduino UNO and ESP32 CAM Controlled Fire Detection and Alert System with GSM Notification
This circuit features an Arduino UNO as the central microcontroller, interfaced with a variety of sensors, actuators, and modules. It includes a 5-channel fire sensor, temperature and humidity sensor (DHT11), two buzzers, and two servomotors controlled by an L293D driver shield. The circuit also integrates an ESP32 CAM for wireless capabilities, a 2-channel relay module controlling a mini water pump, an LCD display for user interface, a SIM 800L GSM module for cellular connectivity, and is powered by a 9V battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of road turning detect automatically vehicles slow: A project utilizing Vietduino Uno ATmega328P  in a practical application
Arduino UNO-Based Bluetooth-Controlled Robotic System with MPU6050 and Motor Driver
This circuit features two Arduino UNO microcontrollers, an MPU6050 sensor, an L298N motor driver, two DC motors, a servo motor, and an HC-05 Bluetooth module. The Arduinos control the motors via the L298N driver and receive sensor data from the MPU6050, while the Bluetooth module allows for wireless communication. Power is supplied through a USB power source.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Aqua Sentinel: A project utilizing Vietduino Uno ATmega328P  in a practical application
Arduino UNO Based Environmental Monitoring System with Wi-Fi Connectivity
This circuit features an Arduino UNO microcontroller interfaced with two 28BYJ-48 stepper motors via ULN2003A breakout boards for motor control. It also includes a DS18B20 temperature sensor and an MQ-135 air quality sensor for environmental monitoring. Additionally, an ESP8266 ESP-12E WiFi module is connected to the Arduino for wireless communication capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Prototyping embedded systems
  • IoT (Internet of Things) projects
  • Robotics and automation
  • Sensor data acquisition and processing
  • Educational purposes for learning microcontroller programming

Technical Specifications

Below are the key technical details of the Vietduino Uno ATmega328P:

Specification Details
Microcontroller ATmega328P
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limit) 6-20V
Digital I/O Pins 14 (6 of which provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 20 mA
Flash Memory 32 KB (0.5 KB used by bootloader)
SRAM 2 KB
EEPROM 1 KB
Clock Speed 16 MHz
USB Connectivity USB Type-B for programming and serial communication
Dimensions 68.6 mm x 53.4 mm
Weight Approximately 25 g

Pin Configuration and Descriptions

The Vietduino Uno ATmega328P has a total of 28 pins, including power, digital, and analog pins. Below is the pin configuration:

Power Pins

Pin Description
VIN Input voltage to the board when using an external power source (7-12V recommended).
5V Regulated 5V output from the board.
3.3V Regulated 3.3V output from the board.
GND Ground pins.
RESET Resets the microcontroller.

Digital I/O Pins

Pin Description
D0 - D13 General-purpose digital I/O pins. Pins D3, D5, D6, D9, D10, and D11 support PWM output.

Analog Input Pins

Pin Description
A0 - A5 Analog input pins capable of reading voltages between 0 and 5V.

Communication Pins

Pin Description
TX (D1) Transmit pin for serial communication.
RX (D0) Receive pin for serial communication.
SDA (A4) Data line for I2C communication.
SCL (A5) Clock line for I2C communication.

Usage Instructions

How to Use the Vietduino Uno ATmega328P in a Circuit

  1. Powering the Board:

    • Connect the board to your computer using a USB Type-B cable for programming and power.
    • Alternatively, use the VIN pin or DC barrel jack to power the board with an external power supply (7-12V recommended).
  2. Programming the Board:

    • Install the Arduino IDE from arduino.cc.
    • Select "Arduino Uno" as the board type in the Arduino IDE.
    • Connect the board to your computer via USB and select the appropriate COM port.
    • Write your code in the Arduino IDE and upload it to the board.
  3. Connecting Components:

    • Use the digital I/O pins for controlling LEDs, relays, or other digital devices.
    • Use the analog input pins to read sensor data (e.g., temperature, light intensity).
    • Use the PWM-enabled pins (D3, D5, D6, D9, D10, D11) for applications like motor speed control or LED dimming.

Important Considerations and Best Practices

  • Avoid exceeding the maximum current rating (20 mA) for each I/O pin to prevent damage.
  • Use appropriate resistors when connecting LEDs or other components to the pins.
  • Ensure the input voltage does not exceed the recommended range (7-12V) to avoid damaging the board.
  • Use decoupling capacitors when connecting sensors or modules to reduce noise.

Example Code for Arduino IDE

Below is an example code to blink an LED connected to pin D13:

// Blink an LED connected to pin D13
// This example demonstrates basic digital output functionality.

void setup() {
  pinMode(13, OUTPUT); // Set pin D13 as an output pin
}

void loop() {
  digitalWrite(13, HIGH); // Turn the LED on
  delay(1000);            // Wait for 1 second
  digitalWrite(13, LOW);  // Turn the LED off
  delay(1000);            // Wait for 1 second
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. The board is not detected by the computer:

    • Ensure the USB cable is properly connected and functional.
    • Install the necessary USB drivers for the Vietduino Uno ATmega328P.
  2. Code upload fails:

    • Verify that the correct board type ("Arduino Uno") and COM port are selected in the Arduino IDE.
    • Press the RESET button on the board before uploading the code.
  3. Components connected to the board are not working:

    • Double-check the wiring and connections.
    • Ensure the components are compatible with the board's voltage and current ratings.
  4. The board overheats:

    • Check if the input voltage exceeds the recommended range (7-12V).
    • Avoid drawing excessive current from the I/O pins.

FAQs

Q: Can I use the Vietduino Uno ATmega328P with shields designed for Arduino Uno?
A: Yes, the board is fully compatible with Arduino Uno shields.

Q: What is the maximum current the board can supply?
A: The 5V pin can supply up to 500 mA when powered via USB, or up to 1A when powered via an external power supply.

Q: Can I program the board using other IDEs?
A: Yes, you can use other IDEs like PlatformIO or Atmel Studio, but additional setup may be required.

Q: Is the board suitable for battery-powered applications?
A: Yes, the board can be powered using a battery via the VIN pin or DC barrel jack, but ensure the voltage is within the recommended range.