How to Display Text on M5StickC ESP32 Using Visuino

by RonFrtek in Circuits > Arduino

1373 Views, 3 Favorites, 0 Comments

How to Display Text on M5StickC ESP32 Using Visuino

STICKc-TEXT.png

In this tutorial we will learn how to program ESP32 M5Stack StickC with Arduino IDE and Visuino to Display any text on LCD.

What You Will Need

FZ1L2ADK2ZPA3WG.LARGE.jpg
F1VNT9QK2ZPA3WH.LARGE.jpg

M5StickC ESP32: you can get it here

Visuino program: Download Visuino

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

F294BW3JFX0MSX9.LARGE.jpg
FA61ODUK2ZPA4VL.LARGE.jpg

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 on Picture 2

In Visuino Add and Set Components

2019-11-21_15-59-50.jpg
2019-11-21_16-00-27.jpg
2019-11-21_16-01-24.jpg
2019-11-21_16-02-24.jpg
  1. Click on "M5 Stack Stick C" Board to select it
  2. In "Properties" window select "Modules" and click "+" to Expand, Select "Display ST7735" and click "+" to expand it,
  3. Set Orientation to "goRight" <this means how the text will be oriented

  4. Select "Elements" and click on the blue button with 3 dots...
  5. Elements Dialog will show
  6. In the Elements Dialog drag "Text Field" from the right side to the left

Click on the "Text Field1" on the left side to select it, then in the "Properties window" click on "Initial Value" to set default text like "Sample Text"

-also in properties windows set the X and Y, where you want to display this text on LCD, the default is 0, meaning it will start to show the text in the left top corner.

-You can also set the text size and the color if you want

Close the elements window

  • Optionally:

Click on "M5 Stack Stick C" Board to select it

In "Properties" window select "Modules" and click "+" to Expand, Select "Display ST7735" and click "+" to expand it and you will see "Background color" this is the default color of the display, change it to your favorite color, you can also set the display brightness, the default is 1 (max) you can set it to 0.5 or some other value to make it more dim.

Optionally - Display Text Using "Text Value" Component

2019-11-21_16-25-27.jpg
2019-11-21_16-25-11.jpg

Once you have added "Text Field" element in the Elements dialog.

You can set the text using "Text Value" component.

  1. To do that, drag the "Text value" component and connect it to "M5 Stack Stick C" > "Text Field1" pin [In]
  2. In the properties window set the text that you would like to display

Generate, Compile, and Upload the Arduino Code

2020-10-30_13-20-50.jpg
  1. 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.

Play

If you power the M5Sticks module, the display should start to show the text you set it.

Congratulations! You have completed your M5Sticks project with Visuino. Also attached is the Visuino project, that I created for this Instructable. You can download and open it in Visuino: https://www.visuino.com

  1. First file "StickC-Display-Text.visuino" is just setting text in elements window
  2. Second file "StickC-Display-Text-using-textvalue.visuino" is setting the text using "Text Value" component