Rich's Wordpress

又一个WordPress站点

Author : richzha

Buzzer Follow-up

I thought about it for a few days and decided that although I could control the sound of the buzzer, it wasn’t good enough. I remembered that when the alarm is set off in the general movie, there is not only the alarm sounds but also the red light flashes at the same time, so […]

Buzzer

Applications in our daily life: In daily life, many electronic devices will alarm when they encounter malfunctions, and the sound is often easier to draw people’s attention than the indicator light, the buzzer can help us to achieve this function. There are two types of buzzers, they are active buzzers and passive buzzers. Active buzzers […]

Key / Button

Keys are the simplest and most common input device. As shown from the diagram below, KEY1 is connected to Raspberry Pi pin 12 and KEY2 is connected to Raspberry Pi pin 13. The other end of the key is connected to the ground. So when the key is not pressed, a high level (1) is […]

Lighting Up LEDs

There are three LEDs in PiHAT, namely R (red) Y (yellow) and G (green). A library called “gpiozero” will be used for coding, it is a Python library tailored for Raspberry PI GPIO programming, which makes programming Raspberry PI very easy. Common commands for the LED Wiring Diagram As we can see in the wiring […]

Setup a Raspberry Pi OS

Install Raspberry Pi Imager which allows you to flash the operating system into the SD card Put the MicroSD card into the MicroSD card port of the computer Choose Device: Select the model of Raspberry Pi purchased Choose OS: Choose the latest operating system Choose Storage: Select the MicroSD card that was inputted into the […]

First Review

I got a preliminary understanding of the structure of the board today after I went through the datasheet of the Raspberry Pi. It included many components with different functions, which made up a small computer system. CPU (Central Processing Unit) The Raspberry Pi uses BROADCOM for its CPU and the model number it used was […]

Unbox

My raspberry PI has finally arrived✌🏻! I opened the outer box and checked the board out. I also bought a Raspberry Pi Hat along with it. It is an extension hardware that can greatly improve the learning capability and playability of the Raspberry PI by connecting with 40 GPIOs.

New Years Gift

Through two years of studying computer science in high school, I had a basic overview on the knowledge about software, hardware, and network. For example, I learned about the basic structure of the CPU (Vonnewmen’s architecture) and programming languages (python). These information are all theoretical knowledge, even though they are very useful and important, it is […]

Induction

Find the Nth Number in a Sequence In any sequence, if you know the nth term rule, you can find any term in that sequence. Remember, n stands for the position of the term: for the 1st term, n = 1; for the 10th term, n = 10; for the 1765th term, n = 1765. We simply substitute n into the nth term rule for our quadratic sequence.  To […]

Finding the Lowest Common Multiple and Greatest Common Factor

Greatest Common Factor: To find the greatest common factor of two number, you can use a method called short division. Short division is done firstly finding the factors of each number, then the common factors, and finally the greatest common factor among the common factors. But the problem of short division is: when the common […]

Scroll to top