How to Control the Future: Allwinner F1C100s (Lichee Pi) Leads You into the Embedded World

How to Control the Future: Allwinner F1C100s (Lichee Pi) Leads You into the Embedded World

This article will cover the following topics: Introduction to F1C100s, U-Boot, Linux kernel customization, and application development using C or C++. We will also provide two examples: a simple example controlling an LED blinking and another creating a GUI program with a button. F1C100s Performance Parameters The F1C100s is a low-cost, low-power 32-bit processor commonly … Read more

Interrupt Issues Based on NXP Core imx6ulx

Interrupt Issues Based on NXP Core imx6ulx

Requirement Description For scenarios that require extremely high real-time response (such as power failure detection), interrupts must be used. However, for the imx6ulx, which is a Linux platform, there are no convenient interrupt operations like those in RTOS. To achieve the same smooth operation, both the kernel driver and the application layer program need to … Read more

From Schematic PCB to Porting RTOS: A Detailed Discussion on STM32 GPIO

From Schematic PCB to Porting RTOS: A Detailed Discussion on STM32 GPIO

Introduction Why Should We Understand Both Hardware and Software? In 2010, while I was at Huawei, I temporarily took a break from my regular duties to participate in recruitment efforts. To recruit more people for my department and compete for HC numbers (the number of positions available), I worked hard to ensure that every candidate … Read more

Embedded – Simulated SPI Controller Program

Embedded - Simulated SPI Controller Program

The following is an example program that simulates an SPI (Serial Peripheral Interface) bus controller using the C language, implementing the functionality of SPI through simulated GPIO pin operations, including initialization, sending bytes, and receiving bytes. This example is suitable for general microcontroller platforms, and the GPIO operation code needs to be modified according to … Read more

Applications of C Language in Embedded Systems

Applications of C Language in Embedded Systems

Applications of C Language in Embedded Systems 1. Introduction In modern technology, embedded systems are ubiquitous, ranging from household appliances to industrial automation devices. These systems often have limited computational resources, making the choice of programming language crucial. The C language, due to its efficiency, portability, and direct control over hardware, is particularly well-suited for … Read more

Embedded – Simulating the IIC Bus

Embedded - Simulating the IIC Bus

The following is a source code example of simulating an I2C (IIC) controller using the C language, suitable for general microcontroller platforms (here, it simulates the operation of GPIO pin operations to implement the SCL and SDA lines). The code implements the basic functions of I2C, including initialization, start signal, stop signal, sending acknowledgment bits, … Read more

Discussion on Embedded Hardware: Push-Pull, Open-Drain, High-Z State, and Pull-Up Resistors

Discussion on Embedded Hardware: Push-Pull, Open-Drain, High-Z State, and Pull-Up Resistors

In the vast knowledge system of embedded hardware, there are many discrete knowledge points that can easily be overlooked. Therefore, this article aims to organize these easily forgotten or misunderstood concepts for reference and learning. The focus will be on the learning of push-pull, open-drain, high-Z state, and pull-up resistors. Basics of GPIO The following … Read more

Easily Control Lights with Raspberry Pi DIY

Easily Control Lights with Raspberry Pi DIY

Recently, I have been researching microcontrollers and the security of IoT-based devices. Therefore, I started considering building a small home automation system. Although it is not yet complete, I would like to share how I use Raspberry Pi 2 and some other electronic components to control the lights in a room. Of course, I will … Read more

Mastering Python Raspberry Pi Development: A Comprehensive Guide

Mastering Python Raspberry Pi Development: A Comprehensive Guide

Author:Mingri TechnologyPublisher:Tsinghua University PressPublication Date: October 2021 Editor’s Recommendation “Mastering Python Raspberry Pi Development” focuses on beginners while also providing advanced knowledge necessary for becoming a programming expert. (1) Mainstream technology, comprehensive analysis. This book is rich in content, covering all aspects of Python Raspberry Pi development, including Raspberry Pi basics, using Python on Raspberry … Read more