使用5美元的Raspberry Pi计算机创建惊人的项目

tech2023-05-16  104

The Raspberry Pi is a tiny computer. In this article, I’ll explain more about what it is, and some of the amazing things we can do with it.

Raspberry Pi是一台小型计算机。 在本文中,我将详细解释它的含义,以及我们可以使用它做的一些令人惊奇的事情。

关于Raspberry Pi (About the Raspberry Pi)

As you can see in the picture below, the Raspberry Pi is about the size of your hand:

如下图所示,Raspberry Pi的大小与您的手差不多:

First released in February, 2012, the Pi was created to let anyone learn how to use a computer. It’s a great product with an attractive price – typically varying from $20 to $40, depending on the version, though the Raspberry Pi Zero can be bought for just $5.

Pi于2012年2月首次发布,旨在让任何人学习如何使用计算机。 这是一款价格诱人的好产品-通常根据版本而定,从20美元到40美元不等,尽管Raspberry Pi Zero只需5美元即可购买。

Several versions of the Raspberry Pi have been released, each with its own specifications. On some we find four USB ports, while on others there’s no Ethernet port, etc. You normally choose a version based on the requirements of your project. You can see obvious differences between one of the first Raspberry Pi versions (pictured above) and a Raspberry Pi 2 (pictured below):

已经发布了多个版本的Raspberry Pi,每个版本都有自己的规范。 在某些情况下,我们找到了四个USB端口,而在另一些情况下,则没有以太网端口,等等。通常,您会根据项目的要求选择一个版本。 您可以看到第一个Raspberry Pi版本(如上图)和Raspberry Pi 2(如下图)之间的明显区别:

You can learn more about the components of the different Raspberry Pi computers on Wikipedia.

您可以在Wikipedia上了解更多有关不同Raspberry Pi计算机的组件的信息。

电源和操作系统 (Power Supply and Operating System)

The Raspberry Pi itself is just the motherboard you see pictured above. It’s powered through a microUSB port, and it doesn’t have any hard drive. Instead, it has an SD slot (or a microSD slot), and the OS is run from an SD card.

Raspberry Pi本身就是上图所示的主板。 它通过microUSB端口供电,并且没有任何硬盘驱动器。 相反,它具有SD插槽(或microSD插槽),并且操作系统是通过SD卡运行的。

In terms of the operating system (OS), several are available for the Pi. Most of them are based on well-known Linux distributions such as Raspbian. But you can also install Windows on your Raspberry Pi 2 if you prefer. (The dev.windows site shows lots of fun projects you can try on a Raspberry Pi with Windows.) There’s a dedicated page on Raspberry Pi’s official website that helps in deciding what OS is best for you.

就操作系统(OS)而言,Pi可以使用几种。 它们大多数基于知名的Linux发行版,例如Raspbian。 但是,如果愿意,您也可以在Raspberry Pi 2上安装Windows 。 (dev.windows网站显示了很多有趣的项目,您可以在Windows上的Raspberry Pi上进行尝试。) Raspberry Pi的官方网站上有专门的页面 ,可帮助您确定哪种操作系统最适合您。

树莓派可以做什么 (What Can Be Done with a Raspberry Pi)

On 18 February, 2015, the Raspberry Pi Foundation announced that five million Raspberry Pis had been sold. By the following June, it was six million. A big success, and there’s a good reason for that: the Raspberry Pi can be used in a lot of different projects. Let’s look at some examples.

2015年2月18日,Raspberry Pi基金会宣布已售出500万本Raspberry Pi。 到次年的6月,已达到600万。 取得了巨大的成功,这有充分的理由:Raspberry Pi可以用于许多不同的项目。 让我们看一些例子。

媒体中心 (Media Center)

Some of the OSs available for the Pi make it possible to get a working and complete media center within minutes. For example, Kodi – an open-source media center – can be installed on various OSs such as Raspbian.

Pi可用的某些操作系统可以在数分钟内获得正常运行的完整媒体中心。 例如,可以将Kodi (一个开源媒体中心)安装在Raspbian等各种操作系统上。

With Kodi, you’re able to use devices you know well – like your TV remote – to play whole films and series collection.

借助Kodi,您可以使用自己熟悉的设备(例如电视遥控器)播放整个电影和系列作品。

伺服器 (Servers)

Because the Raspberry Pi can serve as a computer like any other, you can install software on it so that it can be used as a server. For example, you can install a LAMP solution to transform your Raspberry Pi into a web server, or you can install Git to get a Git server.

由于Raspberry Pi可以像其他任何计算机一样用作计算机,因此您可以在其上安装软件,以便将其用作服务器。 例如,您可以安装LAMP解决方案以将Raspberry Pi转换为Web服务器,也可以安装Git以获得Git服务器。

Though the Pi isn’t suited for serving up popular websites with large audiences, it’s perfect as a test web server, or even for serving small personal websites.

尽管Pi不适用于为拥有大量受众的流行网站提供服务,但它非常适合作为测试Web服务器,甚至适合于小型个人网站。

摄影机 (Cameras)

There are some peripheral devices you can plug onto the Raspberry Pi. For example, there’s a camera module allowing you to use your tiny computer as a camera. Another camera module, NoIR, enables infrared filming in the dark.

您可以将某些外围设备插入Raspberry Pi。 例如,有一个摄像头模块,可让您将小型计算机用作摄像头。 另一个摄像头模块NoIR可以在黑暗中进行红外拍摄。

There’s also a robot that sees its environment, and a camera that records what happens in a certain room. Connected to the Internet, a Raspberry Pi with a camera module can be used as an IP camera.

还有一个机器人可以看到周围的环境,还有一个摄像头可以记录特定房间的情况。 连接到Internet的带有相机模块的Raspberry Pi 可用作IP相机 。

机械手或连接对象 (Robots or Connected Objects)

The Raspberry Pi has some GPIO pins that allow it to communicate with external things. With the right program, you can, for example, play with LEDs or motors. In other words, once you’ve connected the right dipoles to the right GPIO pins, you can write a program to control them via the Raspberry Pi. If you then connect the Raspberry Pi to the Internet, you can control these dipoles from anywhere.

Raspberry Pi具有一些GPIO引脚,使其可以与外部事物进行通信。 使用正确的程序,例如,您可以玩LED或马达。 换句话说,将正确的偶极子连接到正确的GPIO引脚后,您就可以编写一个程序来通过Raspberry Pi控制它们。 如果您随后将Raspberry Pi连接到Internet,则可以从任何地方控制这些偶极子。

That’s why the Raspberry Pi can be used to control a small robot, or to build connected objects. If you visit Kickstarter, you can sometimes see that a Raspberry Pi has been used to build a working prototype of a random object (often a connected one).

这就是为什么Raspberry Pi可用于控制小型机器人或构建连接对象的原因。 如果您访问Kickstarter,有时会看到Raspberry Pi已用于构建随机对象(通常是连接对象)的工作原型。

In 2014, a team of researchers used a Raspberry Pi to build a lamp containing a microphone connected to the Internet. Once placed anywhere, the lamp listens to the conversations of random people and posts some of them to Twitter. (Exactly the kind of experiences that will make you paranoid!)

2014年,一组研究人员使用Raspberry Pi制作了一个灯,其中装有连接到互联网的麦克风 。 一旦放置在任何地方,灯就会听取随机人的交谈,并将其中的一些帖子发布到Twitter。 (正是这种体验会让您感到偏执!)

Also in 2014, Michael Teeuw built a motion-controlled smart mirror. A screen placed behind a mirror displays some things like the meteorologic conditions of the day, or a simple message like you’re a good guy to begin the day with a compliment. This display is controlled with a Raspberry Pi.

同样在2014年,Michael Teeuw建造了一个运动控制的智能镜 。 放置在镜子后面的屏幕上会显示一些信息,例如当天的气象条件,或者简单的消息,例如您是个好人 ,以赞美来开始新的一天。 该显示由Raspberry Pi控制。

结论 (Conclusion)

Though not a powerful computer, there’s a huge number of different projects that can be set up with a Pi – often more easily than with a more powerful computer.

尽管不是功能强大的计算机,但使用Pi可以设置大量不同的项目,通常比功能更强大的计算机更容易。

I currently have two Raspberry Pis. I use one as an IP camera, and the other as a web server, a Git server and a media center. It’s connected to a full HD TV and has no trouble providing a good and fluid experience.

我目前有两个Raspberry Pi。 我将其中一个用作IP摄像机,将另一个用作Web服务器,Git服务器和媒体中心。 它已连接至全高清电视,并且可以轻松提供良好而流畅的体验。

The biggest advantage of using a Raspberry Pi is probably its price. All the projects we saw above can be realized with other computers or even with a dedicated printed circuit (for a prototype of a connected object, for example). However, these other options are more expensive, which isn’t always viable.

使用Raspberry Pi的最大优势可能是其价格。 我们上面看到的所有项目都可以用其他计算机甚至专用的印刷电路来实现(例如,用于连接对象的原型)。 但是,这些其他选项更昂贵,并不总是可行的。

If you’re searching for a cheap computer to use with a personal project, or to use in a prototype for a more ambitious project, take a look at the Raspberry Pi. You may be surprised by its performance!

如果您正在寻找便宜的计算机以用于个人项目,或用于更雄心勃勃的项目的原型,请查看Raspberry Pi。 您可能会对它的性能感到惊讶!

If you’ve used a Pi to do something creative, please tell us about it in the comments!

如果您使用Pi进行创意工作,请在评论中告诉我们!

翻译自: https://www.sitepoint.com/creating-amazing-projects-with-a-5-raspberry-pi-computer/

最新回复(0)