Home
Blog
Go Back
EDUCATION
|
6
Min
Updated On
April 11, 2025

SMD Blockly: Visual Programming for Smart Motion Control

Introduction

Motion control programming has traditionally been a complex process requiring expertise in programming languages such as C, Python, or embedded programming. Engineers, researchers, and hobbyists needed to understand low-level motor control algorithms, hardware communication protocols, and logic structures to efficiently operate motion devices. However, the advent of visual programming tools has made motion control significantly easier and more intuitive.

One such revolutionary tool is SMD Blockly, a block-based visual programming platform developed by Acrome that enables users to control smart motion devices without writing complex code. Instead of manually writing thousands of lines of script, users can now drag and drop graphical blocks to create logical motor control sequences with ease.

Whether you are a beginner exploring robotics, an educator teaching students, an engineer developing automation solutions, or a researcher testing new motion control algorithms, SMD Blockly is a versatile tool that simplifies the process while offering a high degree of flexibility.

What is SMD Blockly?

SMD Blockly is an intuitive visual programming interface built on Google’s Blockly framework. Instead of traditional text-based programming, it allows users to program motion devices through graphical blocks that snap together, forming logical sequences that define the behavior of motors and actuators.

This approach eliminates many of the common challenges associated with traditional coding, such as syntax errors, debugging complexities, and the steep learning curve of programming languages. It also allows for rapid prototyping, making it a highly valuable tool for education, industrial automation, and robotics research.

Basic PWM motor control setup using SMD Red with SMD Blockly

Who Can Use SMD Blockly?

SMD Blockly is designed for a wide range of users, including:

 Students & Educators: Teaching motion control concepts in a user-friendly environment.

Engineers & Researchers: Quickly testing new motor algorithms and automation workflows.

Hobbyists & Makers: Building smart projects without the need for advanced programming skills.

Industry Professionals: Simplifying automation processes and integrating motion control solutions.

Official Documentation: SMD Blockly Docs

Why Use SMD Blockly?

 1. No Coding Required

  • Designed for non-programmers and beginners.
  • Build motion control logic with drag-and-drop blocks instead of writing code.

 2. Faster Prototyping and Development

  • Rapidly test and modify motion sequences.
  • Immediate feedback without debugging complex scripts.

 3. Error-Free Programming

  • No syntax errors, no typos! Blockly ensures all blocks are pre-validated.
  • Prevents logic mistakes that commonly occur in text-based programming.

 4. Customizable and Expandable

  • Advanced users can create new Blockly blocks.
  • Integrate additional features and sensors into motion sequences.

 5. Open-Source and Free to Use

  • Available on GitHub for modification and community contributions.
  • Users can contribute new features, report bugs, and expand functionalities.

GitHub Repository: Acrome SMD Blockly

How to Use SMD Blockly

Step 1: Access SMD Blockly

SMD Blockly is a Windows application, meaning it requires installation on your computer. To start using it:

  1. Download the latest version from the official SMD Blockly GitHub repository.
  2. Install the application following the on-screen instructions.
  3. Launch SMD Blockly and start exploring the visual programming interface.

Once inside SMD Blockly, you will be greeted with an intuitive workspace where you can drag, drop, and connect blocks to create motion control programs.

Step 2: Understanding the Blockly Interface

Before creating your first program, it's essential to get familiar with the interface. The main components include:

  • Toolbox (Left Panel) – A categorized collection of blocks, including Motion, Logic, Loops, Math, and Sensors.
  • Workspace (Center Panel) – The area where you assemble your program by connecting blocks.
  • Execution Controls (Top Panel) – Contains Run, Stop, and Reset buttons to manage your program.
  • Output Console (Bottom Panel) – Displays execution messages, errors, and feedback.

Step 3: Creating Your First Program

Example 1: Setting an RGB LED Color in SMD Blockly

This example demonstrates how to configure an RGB LED module using SMD Blockly. The program sets a specific color by adjusting the red, green, and blue intensity values.

Required Blocks

  • Define Master – Sets the communication baud rate.
  • SMD Red – Defines the SMD Red module.
  • Set RGB Color – Configures the RGB LED’s color values.

Step-by-Step Implementation

  1. Set the communication settings:
    • Drag the "Define Master" block into the workspace.
    • Set the baud rate to 115200 for proper serial communication.
  2. Initialize the SMD Red module:
    • Drag the "SMD Red" block into the workspace.
    • Set the Red ID (or adjust according to your module setup).
  3. Set the RGB LED color:
    • Drag the "Set RGB Color" block into the workspace.
    • Configure the color values as follows:
      • Red ID: Corresponding to the LED module
      • Module ID: The RGB LED module's identifier
      • Red: Red intensity
      • Green: Green intensity
      • Blue: Blue intensity
  4. Run the program:
    • Click the Run button to execute the program and observe the LED color change.
RGB LED color configuration via SMD Blockly with SMD Red

Conclusion: Why You Should Try SMD Blockly

SMD Blockly provides an easy, powerful, and flexible way to control motors visually without needing to write code. Whether you are a beginner learning motion control or an advanced user looking for customization, the platform offers intuitive motor programming, real-time execution, and scalability.

Key Takeaways

  • Drag-and-drop programming with no coding required
  • Real-time motor control and execution
  • Error-free, fast, and efficient
  • Custom block support for advanced users
  • Open-source and freely accessible

Start Now

Unlock the power of visual programming and start controlling your motion devices today.

Author

Ashkan Zanjani
Software Engineer

Discover Acrome

Acrome was founded in 2013. Our name stands for ACcessible RObotics MEchatronics. Acrome is a worldwide provider of robotic experience with software & hardware for academia, research and industry.