Basics of PLC Programming: A Beginner’s Guide to Ladder Diagrams

Basics of PLC Programming: A Beginner's Guide to Ladder Diagrams

I really can’t stand those newcomers in the industry who ask the most ridiculous questions every day. Just yesterday, a guy came to me with a textbook asking why his ladder diagram program wasn’t working. When I opened it, it was a mess of logical relationships, and he couldn’t even distinguish between normally open and … Read more

Design Principles and Reuse Strategies of PID Controllers in PLCs

Design Principles and Reuse Strategies of PID Controllers in PLCs

Click the blue text for more exciting information Having worked in this field for 15 years, today let’s talk about the PID controllers in PLCs that many find confusing. Many beginners get a headache just hearing about PID, and to be honest, many veterans also struggle to understand it. This thing looks simple, but using … Read more

Fundamentals of PLC Programming: A Beginner’s Guide to Bit Operations

Fundamentals of PLC Programming: A Beginner's Guide to Bit Operations

After observing the discussions about bit operations in the group over the past few days, it’s hard to express my feelings! Some of the bit operation codes written by people made my eyes hurt. If the fundamentals of these bit operations are not solid, you could end up in serious trouble on-site! Not to mention … Read more

The Most Powerful Python HTTP Server: Setting Up a Local Server with http.server

The Most Powerful Python HTTP Server: Setting Up a Local Server with http.server

The Most Powerful Python HTTP Server: Setting Up a Local Server with http.server When developing and testing websites or applications, a simple local server is often needed to simulate a server environment, share files, or debug interfaces. Today, we will introduce a super convenient tool provided by Python—<span>http.server</span>—which can quickly set up a local HTTP … Read more

Troubleshooting SWD Connection Issues with Your Board

Troubleshooting SWD Connection Issues with Your Board

The board is ready, and the MCU is soldered, but the SWD cannot connect, and the program cannot be downloaded. What should I do? This issue seems to occur frequently, so I would like to share some recent cases I encountered. 1) Case 1: Engineer A made 5 boards, but none could connect. After confirming … Read more

C++ Debugging Techniques: Efficient Use of GDB and Breakpoints

C++ Debugging Techniques: Efficient Use of GDB and Breakpoints

# C++ Debugging Techniques: Efficient Use of GDB and Breakpoints Debugging is a crucial part of software development, and using tools to help us identify issues in our code can significantly enhance our development efficiency. For C++ developers, GDB (GNU Debugger) is a powerful debugging tool. This article will detail how to use GDB in … Read more

A Step-by-Step Guide to Debugging ARM Programs Using VSCode, gdb, and gdbserver

A Step-by-Step Guide to Debugging ARM Programs Using VSCode, gdb, and gdbserver

Click on the above “Embedded Miscellany” to select “Top Public Account” to view embedded notes at the first time! In embedded software development, the most commonly used debugging methods are: log printing debugging and online debugging. Related articles on log printing debugging: Can’t solve the bug? Use the logging method. When developing STM32, we have … Read more

C++ Embedded System Maintenance: Hardware and Software Repair

C++ Embedded System Maintenance: Hardware and Software Repair

C++ Embedded System Maintenance: Hardware and Software Repair In modern embedded systems, programs and hardware complement each other. This article will introduce how to maintain C++ embedded systems, including hardware repair and software debugging, suitable for basic users. 1. Understanding Embedded System Architecture Embedded systems typically consist of the following components: Processor: The core unit … Read more

Learning Makefile

Learning Makefile

GDB Debugging Tool Common commands for GDB debugging: gcc -g main.c -o main Common commands: help bt Show the call stack info locals Show local variables break main.c:10 Set a breakpoint at line 10 next Execute the next line list List source code continue Continue execution print Print variable value start Restart program execution delete … Read more

The Powerful Jupyter Debugger Has Finally Arrived!

The Powerful Jupyter Debugger Has Finally Arrived!

(Add to your bookmarks for Python developers to enhance Python skills) Source: Machine Heart Jupyter can now perform visual debugging as the Jupyter team releases its first debugging plugin and kernel. How to choose a Python code editor? PyCharm, VS Code, and Jupyter Notebook each have their unique features. Jupyter is suitable for data analysis … Read more