Micro:bit: Scaring Away the Ghost

Micro:bit: Scaring Away the Ghost

The effect is achieved by sound (blowing – which is essentially a sound condition, as blowing will also produce loudness) causing the initially displayed ghost image to gradually dissipate, just like you scared away the ghost.This program involves several modules: basics, LED, loops, logic, variables, and mathematics. It can be considered a relatively complex small … Read more

Micro:bit Quiz Buzzer Project

Micro:bit Quiz Buzzer Project

01 Overview 1.1 Introduction In this lesson, we will create a quiz buzzer: two people will start buzzing at the same time, and the LED light of the person who presses the button first will light up. 1.2 Course Objectives Knowledge: Understand the working principle of button switches; how to control the lighting and extinguishing … Read more

Course Sharing | Beijing No. 2 Middle School: (1) Traffic Lights

Course Sharing | Beijing No. 2 Middle School: (1) Traffic Lights

Lesson 1: Traffic Lights 2018/10/15 Students, traffic lights are not unfamiliar to us; their existence makes our traffic life safer and more orderly. Do you know who invented the first traffic light? Let’s find out together. In 1868, British mechanical engineer J. P. Knight installed the world’s first gas-powered traffic light in front of the … Read more

Learning Embedded Systems with DeepSeek: Key Control for LED On/Off

Learning Embedded Systems with DeepSeek: Key Control for LED On/Off

Microcontroller Design Sharing and Customization Diary of an Electronics Engineer Specific Function Implementation: Using DeepSeek to write C language code for the 51 microcontroller to control the LED light on and off with a button.DeepSeek Q&A Screenshot: Design Introduction Introduction to the 51 Microcontroller The 51 microcontroller is a low-power, high-performance CMOS 8-bit microcontroller with … Read more

Practical Implementation of PWM Dimming

Practical Implementation of PWM Dimming

Why is PWM dimming considered the “dragon-slaying sword” for electronics enthusiasts? Imagine your LED lights can achieve stepless dimming from a dim candlelight to bright daylight, just like a smartphone screen, by sliding a button. It can even simulate the romantic effect of a breathing light. All of this relies on a magical electronic technique—PWM … Read more

Getting Started with Arduino UNO: Control an LED in 10 Minutes (Includes Code and Wiring Diagram)

Getting Started with Arduino UNO: Control an LED in 10 Minutes (Includes Code and Wiring Diagram)

Getting Started with Arduino UNO: Control an LED in 10 Minutes (Includes Code and Wiring Diagram) Introduction: Have you ever thought about using a small Arduino board to make an LED blink, breathe, or even dance to your code? Today, we will unlock the first magic of hardware development with Arduino UNO—controlling an LED! No … Read more

CC2530 Serial Communication Control LED

CC2530 Serial Communication Control LED

Click the blue text above to follow for continuous updates!!! Introduction Today, we will also not involve the Zigbee protocol, focusing solely on serial operations in the CC2530 microcontroller. This article uses Serial Port 0 for data transmission. The main function is to send serial data from a PC’s serial debugging tool to the microcontroller, … Read more

STM32 IoT Smart Home (5) Device Subsystem to Light LED

STM32 IoT Smart Home (5) Device Subsystem to Light LED

1. Design Concept For controlling the LED light, we can imagine the functions of the LED light. The first is the switch, brightness, and color, which are the main three functions. How can we abstract these three functions? Regardless of what the underlying LED device is, we can abstract it using this structure. As shown … Read more

C++ and Hardware Interfaces: Embedded Programming and Communication

C++ and Hardware Interfaces: Embedded Programming and Communication

C++ and Hardware Interfaces: Embedded Programming and Communication Today, I, Xiao Rui, will take you on a hardcore journey of learning C++, exploring how C++ can directly “communicate” with hardware.Embedded programming and hardware communication is a very interesting yet slightly complex application scenario of C++. Whether it’s lighting up an LED or driving an industrial … Read more

Comprehensive Guide to 80 MCU Programming Examples (1-30)

Comprehensive Guide to 80 MCU Programming Examples (1-30)

Please click above for free follow… *Example 1: Use P3 port to light up 8 LEDs in sequence #include<reg51.h>//Include the header file for MCU registers / Function: Delay for a period of time void delay(void) { unsigned char i,j; for(i=0;i<250;i++) for(j=0;j<250;j++) ; } / Function: Main function void main(void) { while(1) { P3=0xfe; // First … Read more