在FRC中运用树莓派

树苺派是最受欢迎的协同处理器之一,因为:

  • Low cost - around $35

  • 非常高的可用性:我们可以从很多不同的供应商中看到树苺派,包括亚马逊

  • Very good performance - the current Raspberry Pi 3b+ has the following specifications:

  • Technical Specifications: - Broadcom BCM2837BO 64 bit ARMv8 QUAD Core A53 64bit Processor powered Single Board Computer run at 1.4GHz - 1GB RAM - BCM43143 WiFi on board - Bluetooth Low Energy (BLE) on board - 40 pin extended GPIO - 4 x USB2 ports - 4 pole Stereo output and Composite video port - Full size HDMI - CSI camera port for connecting the Raspberry - Pi camera - DSI display port for connecting the Raspberry - Pi touch screen display - MicroSD port for loading your operating system and storing data - Upgraded switched Micro USB power source (now supports up to 2.5 Amps.

../../../../_images/raspberry-pi.png

预先建⽴立树莓派图形库

为了确保树苺派对于队伍而言是非常简单的,在这里我们提供了树苺派的图形库。其可以被拷贝到一张MicroSD卡上,插入树苺派,然后启动。在默认情况下,它支持:

  • A web interface for configuring it for the most common functions

  • 支持在网络接口上设置任意个数摄像头的视屏流(默认情况下是一个)

  • OpenCV,Network Tables(网络表),Camera Server(摄像头服务器),以及c++, Java和Python自定义程序的语言库

如果只是想将一个或者多个摄像头的视屏流上传到网络(或者仪表盘)的话,是不需要任何编程的,只需要在网络界面进行配置就可以了。

下一节讨论如何将映像安装到闪存卡上并启动Pi。