StickC M5Stack LED Blink

by RonFrtek in Circuits > Arduino

2134 Views, 0 Favorites, 0 Comments

StickC M5Stack LED Blink

StickC M5Stack LED Blink - Super Easy DIY

In this project we will learn how to connect and make an LED Blink using a M5StickC ESP32 module.

Watch the Video.

What You Will Need

FUPA768K36U3RSQ.LARGE.jpg
redled.jpg
VisuinoAdvrtisementRaspberryPiRobot1.jpg

Circuit

2020-10-27_9-04-32.jpg
LEDDETAILS-1024x802.jpg
  • Connect LED negative pin to StickC pin GND
  • Connect LED positive pin to StickC pin G26

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

FCH7XQEK5ADILIH.LARGE.jpg
FBZIDQ4K36U3RS3.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 & Set Components

2020-10-27_8-42-48.jpg
2020-10-27_8-43-25.jpg
2020-10-27_8-49-24.jpg
  • Add "Pulse Generator" component
  • Select "PulseGenerator1" and in the properties window change the frequency to make the LED Blinking faster or slower:
    • Frequency: 1 > LED will blink once per second
    • Frequency: 0.5 > LED will blink once per 2 seconds
    • Frequency: 10 > LED will blink once per 10 per second
  • Connect "PulseGenerator1" pin Out to "M5 Stack Stick C" pin GPIO 26

Generate, Compile, and Upload the Code

2020-10-27_8-53-11.jpg

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 M5StickC module the LED will start to Blink.

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

2020-10-28_19-06-42.jpg

  • Make sure you selected the right StickC board, check your model
  • Sometimes you need to turn OFF/ON the StickC module before the use, you can do that by holding a side button for a 5+ seconds.