Raspberry Pi I2C Communication Tutorial

Raspberry Pi I2C Communication Tutorial

Click the above “Mechanical and Electronic Engineering Technology” to follow us 1. What is I2C Communication I2C (Inter-Integrated Circuit) is a serial communication protocol used for transferring data between integrated circuits (ICs). It was developed by Philips (now NXP Semiconductors) in the 1980s and has become a widely adopted communication standard in various electronic devices. … Read more

Microcontroller Driving LCD Programming Approach

Microcontroller Driving LCD Programming Approach

Source | Roof Ridge Sparrow | strongerHuang There are many methods for microcontrollers to drive LCDs, and many accompanying examples are available online. However, among the thousands of examples online, which one is your “no.1”? Today, I would like to share an approach to driving LCDs with microcontrollers in an object-oriented manner. Overview of LCD … Read more

Why Most Communication Buses Are Similar in Embedded Development?

Why Most Communication Buses Are Similar in Embedded Development?

In embedded development, you must have encountered various buses, including address and data buses within the chip, high-speed and low-speed buses, as well as various communication buses outside the chip. However, it seems that people still do not have a good grasp of buses, so today I have selected an article about buses for everyone … Read more

How to Choose an MCU

How to Choose an MCU

In today’s article, let’s discuss how to choose an MCU. Let me share my thought process. 1. List the peripherals If a system has multiple MCUs, we need to allocate them properly, for example, temperature sensor on MCU #1, Bluetooth on MCU #2, etc. 2. Determine the communication interfaces of the peripherals Some peripherals support … Read more

Common I/O Ports of MCUs and Their Differences

Common I/O Ports of MCUs and Their Differences

When it comes to microcontrollers (MCUs), the first thing that comes to mind is that they have many input/output (I/O) ports, which can be difficult to distinguish. As the core of embedded systems, they can communicate with external devices or sensors. However, the presence of I/O ports often makes learning challenging for many people. This … Read more

Eight Essential Steps to Learning Microcontrollers

Eight Essential Steps to Learning Microcontrollers

Learning to use microcontrollers involves understanding the hardware structure of the microcontroller and the application of its internal resources, as well as learning various initialization settings for functions in assembly or C language, and programming to implement various functionalities. Here are some of my experiences: Step 1: Using Digital I/O Using button inputs to signal, … Read more

Microcontroller Basics and Applications: Serial Expansion

Microcontroller Basics and Applications: Serial Expansion

Click the blue text to follow us 1. Overview of Microcontroller Serial Expansion The methods for implementing microcontroller serial expansion include commonly used serial bus standards such as: I2C bus, Serial Peripheral Interface (SPI), and Universal Serial Bus (USB). This chapter will focus on the I2C bus. 1. Implementation through dedicated serial standard bus (1) … Read more

Microcontroller Chip Operation Summary

The operation of the chip mainly involves manipulating the registers within the chip. Each register has its own unique address mapped in memory, which is what we are operating on. To understand the chip, first look at the timing diagram, then understand the corresponding registers, how they operate, define the necessary ports (which the program … Read more

Hands-On Guide to STM32 I2C Bus

Hands-On Guide to STM32 I2C Bus

●IIC Bus 1. Concept of IIC I²C stands for Inter-Integrated Circuit, using two bidirectional lines: one Serial Data Line (SDA) and one Serial Clock (SCL). SCL: The rising edge inputs data into each EEPROM device; the falling edge drives the EEPROM device to output data (edge-triggered). SDA: The bidirectional data line is an open-drain configuration, … Read more