0% found this document useful (0 votes)
7 views8 pages

Cài Đặt Arduino IDE

The document provides a guide for using the Arduino IDE to create a basic embedded program that blinks an LED. It outlines step-by-step instructions for both Arduino and ESP8266 boards, including software setup and uploading code. The guide is aimed at beginners in embedded programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views8 pages

Cài Đặt Arduino IDE

The document provides a guide for using the Arduino IDE to create a basic embedded program that blinks an LED. It outlines step-by-step instructions for both Arduino and ESP8266 boards, including software setup and uploading code. The guide is aimed at beginners in embedded programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Đại học Công Nghệ - ĐHQGHN Embedded Programming 17/09/2022 1

KHOA ĐIỆN TỬ - VIỄN


THÔNG
Bộ môn Hệ thống Viễn thông

Internet of Things:
Practice
Lưu Bách Hưng
0399405834
[email protected]
Đại học Công Nghệ - ĐHQGHN

ARDUINO IDE & First Embedded Program

❖ ARDUINO IDE
▪ The open-source Arduino Software (IDE) makes it easy to write code and upload it to any
Arduino board.
▪ Download it at: https://www.arduino.cc/en/software, or use Online version
at: https://create.arduino.cc/editor.
Đại học Công Nghệ - ĐHQGHN

ARDUINO IDE & First Embedded Program

❖ First Embedded Program – LED Blinking


▪ Step 1: Open Arduino IDE → File → Examples → 01. Basics → Blink
▪ Step 2: Save as the new Arduino IDE window with the name “LED Blinking”
▪ Step 3: Connect the Arduino board with your computer via a USB cable

1
Đại học Công Nghệ - ĐHQGHN

ARDUINO IDE & First Embedded Program

❖ First Embedded Program – LED Blinking


▪ Step 4: Select “Tools → Board → Arduino AVR Boards → Arduino Mega or Mega 2560”
▪ Step 5: Select “Tools → Port → COM?”
▪ Step 6: Press “Upload” button to compile + upload the source code to Arduino board.
▪ Step 7: Observe LED blinking on Arduino board when getting the status “Done uploading”
Đại học Công Nghệ - ĐHQGHN

ARDUINO IDE & First Embedded Program

❖ First Embedded Program – LED Blinking (for ESP8266)


▪ Step 1: Open Arduino IDE → File → Examples → 01. Basics → Blink
▪ Step 2: Save as the new Arduino IDE window with the name “LED Blinking”
▪ Step 3: Connect the Arduino board with your computer via a USB cable

Step 3
Đại học Công Nghệ - ĐHQGHN

ARDUINO IDE & First Embedded Program


❖ First Embedded Program – LED Blinking (for ESP8266)
▪ Step 4: Select “File → Preferences → Additional Board Manager URLs”. Add the following link to
this
textbox: http://arduino.esp8266.com/stable/package_esp8266com_index.json. Then press “OK”
http://arduino.esp8266.com/stable/package_esp8266com_index.json

▪ Step 5: Select “Tools → Board → Board Manager”. Search “esp8266”, then install the searched
package “ESP8266 by ESP8266 Community”
▪ Step 6: Select “Tools → Board → ESP8266 Boards → NodeMCU 1.0 (ESP-12 Module)”
Đại học Công Nghệ - ĐHQGHN

ARDUINO IDE & First Embedded Program


❖ First Embedded Program – LED Blinking (for ESP8266)
▪ Step 7: Select “Tools → Port → COM?”
▪ Step 8: Press “Upload” button to compile + upload the source code to Arduino board.
▪ Step 9: Observe LED blinking on Arduino board when getting the status “Done uploading”
Đại học Công Nghệ - ĐHQGHN

THANK YOU!

You might also like