Skip to main content

1.1. Hello World

This example is considered the "Hello World" of microcontrollers. Sending and receiving infromation is one of the most common ways to communicate with a microcontroller during development. It provides a simple way to verify that your board is set up correctly and that we can communicate with the board.

Serial Communication

Serial communication is a method of exchanging data one bit at a time between two devices. In this case, it allows NULA Mini board or any other microcontroller to communicate with a computer over a USB cable. Unlike Arduino IDE which uses its built-in Serial Monitor, MicroPython uses REPL (Read Evaluate Print Loop), which is an interactive prompt available over a serial connection with default baudrate set to 115200. In more simpler terms, it means the board gives you a prompt inside your IDE where you can talk to it.

At the end of this example you will learn:

  • How to print a message from your board on the terminal
ℹ️

Parts required:

  • Soldered NULA Mini Board
  • USB-C cable

Code Example

# No comment needed
print("Hello World")