DALE logoDALE

EXPERIMENT 01 • GETTING STARTED

💡 Your First Output

TM1638 LED → Your First Output

Let's make something happen in the real world. You'll control one of the LEDs on the TM1638 module, build the same behavior in Logic Builder, then see the Arduino code behind it.

Beginner~5 minutesTM1638

What You'll Build

A real LED output controlled by the ESP32-S3 through DALE. The LED is already part of the TM1638 module, so your first experiment can focus on the idea of an output instead of building a separate circuit.

What You'll Need

  • DALE with ESP32-S3
  • TM1638 module
  • Jumper wires for the module connection
TM1638 display, LED and pushbutton module
TM1638 display, LED and pushbutton module

What You'll Learn

  • What an output is.
  • How software can control real hardware.
  • How DALE addresses an individual TM1638 LED.
  • How a Boolean TRUE/FALSE state can control an output.
  • How visual logic becomes real Arduino code.

Connect It

Connect the TM1638 module to DALE using the module configuration shown in DALE. If you have already configured the TM1638 in DALE, use those same connections.

Want to know what is inside an LED? DALE's Learning Center explains LEDs, polarity, anode and cathode, current limiting and polarity checks. In this experiment, we're concentrating on what an output does.

Try It in DALE

1. Open DALE

Connect to DALE normally and open dale.local in your browser.

2. Open the TM1638 Lab

Verify that the TM1638 module is connected and responding.

3. Turn on one LED

Choose one of the TM1638 LEDs and switch it ON.

4. Turn it off

Switch the same LED OFF.

It worked! You just used software to control a physical output. No program had to be written first.

What Just Happened?

An output is something the controller changes in the outside world. In this case, the ESP32-S3 communicates with the TM1638 and tells it whether a particular LED should be on or off. DALE lets you see that behavior first, before asking you to program it.

Build It in Logic Builder

Now recreate the behavior visually. Add a Virtual Button and a TM1638 LED (TM LED) block. Select the same TM1638 LED you just tested, then connect the Virtual Button's Boolean output to the TM1638 LED block input.

Run the logic. Virtual Button ON → TM1638 LED ON. Virtual Button OFF → TM1638 LED OFF.

BUILD IT VISUALLY. SEE THE REAL CODE.

Show Me The Code

Open Show Me The Code for your Logic Builder project. Find the readable variables for your Virtual Button and TM1638 LED, then look at how the generated sketch initializes the TM1638 and changes the selected LED state.

DALE's generated sketch can be copied into the Arduino IDE and burned as a standalone project when you're ready to work directly with Arduino.

Try This Next

Choose a different TM1638 LED in the block and run the project again. Then try adding a second TM1638 LED output. You are already learning an important idea: the logic decides what should happen, while the output is the hardware that makes it visible.