Skip to content

Raspberry Pi Development ​

Raspberry Pi development diagram

Raspberry Pi Introduction ​

The Raspberry Pi is a microcomputer motherboard developed by the UK's "Raspberry Pi Foundation" charity. The following is a detailed introduction to the Raspberry Pi:

  1. Historical background: The original purpose of developing the Raspberry Pi was to improve computer science education in schools, making computer programming fun and accessible.
  2. Hardware features: The Raspberry Pi uses ARM-architecture processors, such as the BCM2835 and BCM2837, offering different levels of computing power. The Raspberry Pi comes in various memory specifications, such as 256MB, 512MB, and 1GB, and supports storage expansion via a microSD card. The Raspberry Pi provides USB, HDMI, audio output, Ethernet interfaces, and more, meeting a variety of peripheral connection needs.
  3. Software systems: The recommended system for the Raspberry Pi is the Debian-based Raspberry Pi OS; it also supports other Linux distributions and Windows 10 IoT Core, among others. The Raspberry Pi can run a variety of operating systems, including Ubuntu, LibreELEC, and RetroPie, making it suitable for different scenarios.
  4. Application areas: The Raspberry Pi is an ideal tool for learning programming and computer science, supporting multiple programming languages such as Python and Scratch. The Raspberry Pi can serve as the core device for IoT applications such as smart homes and environmental monitoring. The Raspberry Pi can be turned into a home media center, playing high-definition video and music. The Raspberry Pi can emulate classic game consoles, revisiting NES, SNES, and other games. The Raspberry Pi is suitable for use as a small web server, file server, or database server.
  5. Market impact: Since its launch, the Raspberry Pi has been sought after by numerous computer enthusiasts and makers, and was once hard to get hold of. The Raspberry Pi is widely used by users around the world in various industrial scenarios, including the IoT, industrial automation, smart agriculture, artificial intelligence, new energy, and more.

In short, with its compact size, powerful features, and low price, the Raspberry Pi has become a popular microcomputer worldwide. It not only plays an important role in education and training, but also shows broad application potential in many fields such as the IoT, media centers, and game consoles.

Raspberry Pi SDK Overview ​

1. Runtime Environment ​

  • Python 3.7.2 (other Python 3 versions generally work too)
  • Development board: Raspberry Pi 4B (no hardware-related code is included; with a Python 3 environment installed, it runs on both Windows and Linux)
  • Libraries: required libraries need to be installed
  1. MQTT library

    js
    pip install paho-mqtt
  2. AES encryption library

    js
    # The first two uninstall commands are to prevent some installation environment issues
    pip uninstall crypto
    pip uninstall pycryptodome 
    pip install pycryptodome
  3. If an error reports a missing xx library, run

    js
    pip install xx

2. Running the Program ​

js
python3 main_sdk.py

# Note: the program depends on the aes.py file; make sure it is in the same directory as main_sdk.py

3. Development References: ​

FastBee | fastbee.cn