Arduino Xin chào thế giới
Phần cứng cần chuẩn bị
| 1 | × | Arduino Uno R3 | ||
| 1 | × | USB 2.0 cable type A/B (for USB-A PC) | ||
| 1 | × | USB 2.0 cable type C/B (for USB-C PC) | ||
| 1 | × | (Khuyến nghị) Screw Terminal Block Shield for Arduino Uno | ||
| 1 | × | (Khuyến nghị) Breadboard Shield for Arduino Uno | ||
| 1 | × | (Khuyến nghị) Enclosure for Arduino Uno | ||
| 1 | × | (Khuyến nghị) Prototyping Base Plate & Breadboard Kit for Arduino UNO |
Or you can buy the following kits:
| 1 | × | DIYables STEM V3 Starter Kit (Arduino included) | ||
| 1 | × | DIYables Sensor Kit (30 sensors/displays) | ||
| 1 | × | DIYables Sensor Kit (18 sensors/displays) |
Các bước nhanh chóng
- Kết nối Arduino với PC bằng cáp USB.
- Mở Arduino IDE.
- Chọn bo mạch Arduino.

- Chọn cổng nối tiếp Arduino (số hiệu có thể khác nhau)

- Gõ đoạn mã sau đây
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Hello World!");
delay(1000);
}
- Nhấp nút Upload trên Arduino IDE để tải mã lên Arduino

- Mở Serial Monitor bằng cách nhấp vào biểu tượng Serial Monitor

- Xem kết quả trên Serial Monitor:
COM6
Hello World!
Hello World!
Hello World!
Autoscroll
Clear output
9600 baud
Newline
Chỉnh sửa mã Arduino
- Thay thế “Hello World!” bằng bất kỳ văn bản nào, ví dụ, “Arduino Get Started”.
- Nạp mã vào Arduino
- Xem kết quả trên Serial Monitor
COM6
Arduino Get Started
Autoscroll
Clear output
9600 baud
Newline
Video Tutorial
Việc sản xuất video tốn rất nhiều thời gian. Nếu video hướng dẫn hữu ích cho việc học của bạn, hãy đăng ký kênh YouTube để ủng hộ. Nếu nhu cầu đủ cao, chúng tôi sẽ cố gắng làm thêm nhiều video.