树莓派 - 小记
文章目录
- 关于树莓派
- Raspberry Pi OS
- GPIO
- Scratch 编程
- Minecraft
- 相关硬件
关于树莓派
树莓派:Raspberry Pi,由美国树莓派基金会开发,是一款专门用于计算机教育的极简计算机。
第一代发布于 2012年。
特点:精致小巧,价格低廉,具备计算机一切主要功能。因此风靡教育领域,是儿童编程的重要平台。
相比于普通PC,可以方便的与实际硬件单元进行连接和控制。
- 官网:https://www.raspberrypi.com
- 教程:https://www.raspberrypi.com/tutorials/
https://www.raspberrypi.com/documentation/computers/getting-started.html - Raspberry Pi OS https://www.raspberrypi.com/documentation/computers/os.html
相关教程/社区
- 《树莓派用户指南》:https://book.douban.com/subject/26768917/
- 树莓派实验室:https://shumeipai.nxez.com
版本
常分为 A, B 两种型号
常用型号
- ZERO W/WH,精致小巧
- 3A+,功能简洁
- 3B+ ,功能丰富
其他主控平台
- Edison
- Arduino
Raspberry Pi OS
树莓派支持多种系统,官方的为 Raspberry Pi OS,原名 Rasbian。
Rasbian 基于 linux 的发行版 Debian。
树莓派其他可用的操作系统可见:《树莓派操作系统大全》
https://wiki.nxez.com/rpi:list-of-oses
GPIO
GPIO 是通用型输入/输出接口的简称。
python 程序通过 RPi.GPIO
来对 GPIO 连接的输入/输出设备进行控制
RPi.GPIO
- PYPI : https://pypi.org/project/RPi.GPIO/
- sourceforge: https://sourceforge.net/projects/raspberry-gpio-python/
相关教程
- 树莓派实验室:RPi.GPIO 模块使用基础
https://shumeipai.nxez.com/2016/09/28/rpi-gpio-module-basics.html
Scratch 编程
- 官网:https://scratch.mit.edu
- Scratch 编程社区:https://www.scratch5.com
- 在线编程:https://www.scratch5.com/scratch
- Scratch 中国少儿编程网(社区)https://www.china-scratch.com
Minecraft
Minecraft 是瑞典软件开发公司 Mojang 创造的游戏,现在已经发展为一种文化现象。
树莓派上的 Minecraft 是一个精简版本,在教育领域广受欢迎。因为它有应用编程接口(API),允许用户自己编写程序去控制游戏环境。
- Minecraft 官网:https://www.minecraft.net/zh-hans
- 树莓派版Minecraft:https://minecraft.fandom.com/zh/wiki/树莓派版
相关教程
- 详细步骤安装树莓派Minecraft,使用Python与游戏交互
https://www.labno3.com/2021/08/20/minecraft-on-the-raspberry-pi/
相关硬件
- 面包板
- 导线
- 电路
- 按键
- LED
- 万能板
- 电烙铁
- 焊料支架和海绵
- 侧铣刀
- 镊子
- 工作台
- 万用表
- 折焊芯