- Arduino by Example
- Adith Jagadish Boloor
- 232字
- 2021-07-16 20:06:32
Hello World
The easiest way to start working with Arduinos begins here. You'll learn how to output print statements. The Arduino uses a Serial Monitor for displaying information such as print statements, sensor data, and the like. This is a very powerful tool for debugging long codes. Now for your first code!
Writing a simple print statement
Open up the Arduino IDE and copy the following code into a new sketch:
void setup() { Serial.begin(9600); Serial.println("Hello World!"); } void loop() { }
Open Tools | Board and choose Arduino UNO, as shown in the following screenshot:

Open Tools | Port and choose the appropriate port (remember the previous COM xx number? select that), as shown in the following screenshot. For Mac and Linux users, once you have connected the Arduino board, going to Tools | Serial Port will give you a list of ports. The Arduino is typically something like /dev/tty.usbmodem12345
where 12345 will be different.

Selecting the Port
Finally, hit the Upload button. If everything is fine, the LEDs on the Arduino should start flickering as the code is uploaded to the Arduino. The code will then have uploaded to the Arduino.
To see what you have accomplished, click on the Serial Monitor button on the right side and switch the baud rate on the Serial Monitor window to 9600.
You should see your message Hello World!
waiting for you there.
- 大學計算機基礎(第二版)
- JSP網絡編程(學習筆記)
- Python編程自學手冊
- 機械工程師Python編程:入門、實戰與進階
- Apache Spark 2.x for Java Developers
- RISC-V體系結構編程與實踐(第2版)
- Python機器學習:預測分析核心算法
- Fast Data Processing with Spark(Second Edition)
- IBM Cognos TM1 Developer's Certification guide
- Java EE 7 with GlassFish 4 Application Server
- UI設計基礎培訓教程(全彩版)
- Java Hibernate Cookbook
- AutoCAD基礎教程
- Solr權威指南(下卷)
- 體驗之道:從需求到實踐的用戶體驗實戰