Welcome to the world of serial communication! In this tutorial, we’ll build a simple “Serial Hello World” project using the Velxio in-browser simulator. You’ll learn how to send messages from an Arduino Uno to your computer’s Serial Monitor. This is the foundation for countless projects—from sensor readouts to debugging complex code.
What You’ll Build
We’ll create a circuit with just an Arduino Uno (no external components needed) and write a sketch that prints a greeting and the system uptime every two seconds. You’ll see the output in the Serial Monitor built into Velxio.
Circuit Walkthrough

The circuit is minimal: only an Arduino Uno board. No wires, no LEDs, no resistors. The Arduino communicates with your computer via its built-in USB-to-serial converter. In Velxio, this is simulated automatically—you don’t need to connect anything.
To add the Arduino Uno to your canvas:
- Click the + button in the canvas toolbar (shown below) to open the component picker.

- In the component picker, browse by category or search for “Arduino Uno”.

- Click to place it on the canvas.
That’s it! Your circuit is ready.
Code Walkthrough

Here’s the complete sketch:
// Serial Communication Example
// Send messages to Serial Monitor
void setup() {
Serial.begin(9600);
Serial.println("Hello, Arduino!");
Serial.println("System initialized");
}
void loop() {
Serial.print("Uptime: ");
Serial.print(millis() / 1000);
Serial.println(" seconds");
delay(2000);
}
Let’s break it down:
Serial.begin(9600);– Initializes serial communication at a baud rate of 9600 bits per second. This must match the baud rate set in the Serial Monitor.Serial.println("Hello, Arduino!");– Prints the string followed by a newline character (carriage return + line feed).Serial.print("Uptime: ");– Prints text without a newline, so the next output appears on the same line.millis() / 1000– Returns the number of milliseconds since the program started; dividing by 1000 gives seconds.delay(2000);– Pauses the program for 2000 milliseconds (2 seconds) before repeating the loop.
Running the Simulation
- Click the Run button in the editor toolbar.

- Open the Serial Monitor from the canvas toolbar (usually a magnifying glass icon or a terminal icon).
- You should see:
Hello, Arduino! System initialized Uptime: 0 seconds Uptime: 2 seconds Uptime: 4 seconds ...
Key Concepts
- Serial Communication: A method to send data one bit at a time over a single wire. Arduino uses UART (Universal Asynchronous Receiver/Transmitter) for serial communication.
- Baud Rate: The speed of serial communication, measured in bits per second. Both sender and receiver must agree on the same baud rate.
Serial.print()vsSerial.println():print()sends text without a newline;println()appends a newline after the text.millis(): A function that returns the time in milliseconds since the Arduino started running. It’s useful for timing without blocking the program.
Common Pitfalls & Debugging Tips
- Wrong baud rate: If you see garbage characters, ensure the Serial Monitor baud rate matches
Serial.begin(). In Velxio, the monitor usually auto-detects, but double-check. - Missing
Serial.begin(): Without it, nothing will be printed. Always include it insetup(). - Blocking with
delay():delay()pauses everything. For more responsive code, consider usingmillis()for non-blocking timing. - Serial Monitor not opening: Make sure the simulation is running. Click the Run button first.
Suggested Extensions
- Read user input: Use
Serial.read()orSerial.parseInt()to receive commands from the Serial Monitor and control an LED. - Send sensor data: Connect a potentiometer or temperature sensor and print its value.
- Multiple messages: Print formatted data using
Serial.print()with multiple variables. - Add a library: Use the Library Manager to include a library like
SoftwareSerialfor additional serial ports.
Try It Yourself
Ready to experiment? Open the live example in Velxio and modify the code: change the greeting, adjust the delay, or add a counter. The best way to learn is by doing.
👉 Open Serial Hello World in Velxio
Happy coding!