Maker.io main logo

How to Send Data From M5Stack StickC to Delphi

42

2026-08-18 | By Ron Cutts

License: GNU Lesser General Public License Bluetooth / BLE Microcontrollers Wifi Arduino ESP32

In this video, we will learn how to send values from a StickC board to a Delphi VCL Application using Visuino.

Watch the video.

Learn more about Visuino: What is Visuino

What You Will Need

- M5StickC ESP32: you can get it here

- Visuino program: Download Visuino

Note: Check this tutorial here on how to install StickC ESP32 board

- Delphi - Embarcadero Link

Learn how to install Delphi here

- Mitov CommunicationLab for Delphi, download here

What You Will Need

What You Will Need photo 2

What You Will Need photo 3

What You Will Need photo 4

Start Visuino, and Select the M5 Stack Stick C Board Type

Start Visuino as shown in the first picture. Click on the "Tools" button on the Arduino component (Picture 1) in Visuino. When the dialog appears, select "M5 Stack Stick C" as shown in Picture 2

Start Visuino, and Select the M5 Stack Stick C Board Type

Start Visuino, and Select the M5 Stack Stick C Board Type photo 2

In Visuino Connect Components

  • Connect the pin (with the value that you want to send to the Delphi application) to the serial[0] pin

In our case, we connected the battery voltage pin to the serial[0] pin

In Visuino Connect Components

Generate, Compile, and Upload the Arduino Code

In Visuino, at the bottom, click on the "Build" Tab, make sure the correct port is selected, then click on the "Compile/Build and Upload" button.

Generate, Compile, and Upload the Arduino Code

Start Delphi and Add Components

  • In Delphi, create a new Windows VCL Application

  • In the palette window, find 'TCLComPort' component and drag it to the Form

  • In the Object Inspector, set the port of the StickC board (you can find the port number in Arduino>Tools>Port

  • In the palette window, find 'CLTerminal' component and drag it to the Form

  • In the Object Inspector, double-click on the 'InputPin' and in the connections window, select 'CLComPort1'

  • Click on the green Run button in Delphi

Start Delphi and Add Components

Start Delphi and Add Components photo 2

Start Delphi and Add Components photo 3

Start Delphi and Add Components photo 4

Start Delphi and Add Components photo 5

Start Delphi and Add Components photo 6

Start Delphi and Add Components photo 7

Start Delphi and Add Components photo 8

Play

If you power the M5Sticks module (connected via USB to the computer), it will start to send data to the Delphi application.

Congratulations! You have completed your M5Sticks project with Visuino and Delphi. Also attached is the Visuino project that I created for this , you can download it here and the Delphi project that you can download here.

Play

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.