树莓派 2B 使用手册

合集下载

树莓派舵机扩展板 Servo Driver HAT 用户手册

树莓派舵机扩展板 Servo Driver HAT 用户手册

Servo Driver HAT用户手册前言本产品是基于树莓派而设计的PWM/舵机扩展板,通过PCA9685芯片扩展16路舵机控制或者PWM输出,每个通道12位分辨率。

通过I2C接口控制,无需占用额外的引脚。

板载5V稳压芯片,可接电池供电,最大输出3A电流。

适用于控制机械手臂,以及各种舵机机器人。

产品特性输入电压VIN:6V~12V舵机电压:5V逻辑电压:3.3V驱动芯片:PCA9685控制接口:I2C产品尺寸:65mm x 30mm固定孔通径:3.0mm硬件说明板子可以从树莓派上取电不需要额外供电。

也可以通过右边绿色端子VIN接电池供电,输入电压范围6V~12V。

经过板载的5V稳压芯片输出5V电源给舵机和树莓派供电,最大输出电流3A。

A0~A4可以设置PCA9685芯片的I2C设备地址,可以同时接多个Servo Driver HAT最上面的排针是舵机接口,黑色排针是GND(大部分舵机对应的是褐色线), 红色排针是5V电源,黄色排针是PWM信号线,有0~15个通道,可以同时接16个舵机。

注意舵机线不要接反,否则舵机不会转动。

注意:如果接大功率的舵机可能会出现供电不足的现象,需要接更多的电源使用指南开启I2C接口执行如下命令进行树莓派配置:sudo raspi-config选择Interfacing Options -> I2C ->yes 启动i2C内核驱动注意:运行程序后有提示I2C错误,可以运行如下命令打开配置文件sudo nano /etc/modules如果没有这两行语句则添加上去,并保存退出。

i2c-devi2c-bcm2708运行程序我们提供python2和python3的示例程序,功能包括简单的PCA9685库测试程序,wifi遥控程序以及蓝牙遥控程序。

其中wifi和蓝牙遥控发送端是通过手机APP发送指令,需要安装对应的APP(只支持安卓) 手机下载相应的APP并安装。

树莓派使用说明

树莓派使用说明

1:树莓派介绍:Raspberry Pi(中文名为“树莓派”,简写为RPi,或者RasPi/RPi)是为学生计算机编程教育而设计,只有信用卡大小的卡片式电脑,其系统基于Linux。

树莓派由注册于英国的慈善组织“Raspberry Pi 基金会”开发,Eben·Upton/埃·厄普顿为项目带头人。

2012年3月,英国剑桥大学埃本·阿普顿(Eben Epton)正式发售世界上最小的台式机,又称卡片式电脑,外形只有信用卡大小,却具有电脑的所有基本功能,这就是Raspberry Pi电脑板,中文译名"树莓派"!这一基金会以提升学校计算机科学及相关学科的教育,让计算机变得有趣为宗旨。

基金会期望这一款电脑无论是在发展中国家还是在发达国家,会有更多的其它应用不断被开发出来,并应用到更多领域。

一句话:树莓派是一个卡片大小的开发板,上面可以运行Linux系统,我们可以用它开发我想要的设备。

2:树莓派的种类A型:1个USB、无有线网络接口、功率2.5W,500mA、256MB RAM(基本已经见不到了)B型:2个USB、支持有线网络、功率3.5W,700mA、512MB RAM、26个GPIO(市售还有很多)。

B+型:4个USB口、支持有线网络,功耗1W,512M RAM 40个GPIO(2014新出的,推荐使用)3:树莓派参数:B型:处理器BroadcomBCM2835(CPU,GPU,DSP和SDRAM,USB)CPU ARM1176JZF-S核心(ARM11系列)700MHzGPU Broadcom VideoCrore IV,OpenGL ES 2.0,1080p 30 h.264/MPEG-4 AVC高清解码器内存512MByteUSB 2.02(支持USB hub扩展)影像输出Composite RCA(PAL & NTSC),HDMI(rev 1.3 & 1.4),raw LCD Panels via DSI 14 HDMI resolution from 640x350 to 1920x1200 plus various PAL andNTSC standards音源输出 3.5mm插孔,HDMI板载存储SD/MMC/SDIO卡插槽网络接口10/100以太网接口外设8xGPIO、UART、I2C、带两个选择的SPI总线,+3.3V,+5V,ground(负极)额定功率700mA(3.5W)电源输入5V / 通过MicroUSB或GPIO头总体尺寸85.60 x 53.98 mm(3.370 x 2.125 in)操作系统Debian GNU/linux,Fedora,Arch Linux ARM,RISC OS, XBMCB+改进•更多的GPIO:B+将通用输入输出引脚增加到了40个,而Model B则只有26个;• 更多的USB:B+提供了4个USB端口,对热插拔有着更好的兼容性(Model B只有2个);• 支持microSD:旧款的SD卡插槽,已经被换成了更漂亮的推入式microSD卡槽;• 更低的功耗:将线性式稳压器换成了开关式,功耗降低了0.5W到1W;• 更好的音频:音频电路部分采用了专用的低噪供电;• 简洁的外形:USB接口被推到了主板的一边,复合视频移到了3.5mm音频口的位置,此外还增加了4个独立的安装孔。

Raspberry Pi 产品说明书

Raspberry Pi 产品说明书

Colophon© 2020 Raspberry Pi (Trading) Ltd.This documentation is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND).build-date: 2021-10-19build-version: githash: 91fd59e-cleanLegal Disclaimer NoticeTECHNICAL AND RELIABILITY DATA FOR RASPBERRY PI PRODUCTS (INCLUDING DATASHEETS) AS MODIFIED FROM TIME TO TIME (“RESOURCES”) ARE PROVIDED BY RASPBERRY PI (TRADING) LTD (“RPTL) "AS IS" AND ANY EXPRESS OR IMPL IED WARRANTIES, INCL UDING, BUT NOT L IMITED TO, THE IMPL IED WARRANTIES OF MERCHANTABIL ITY AND FITNESS FOR A PARTICUL AR PURPOSE ARE DISCL AIMED. TO THE MAXIMUM EXTENT PERMITTED BY APPL ICABL E L AW IN NO EVENT SHAL L RPTL BE L IABL E FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPL ARY, OR CONSEQUENTIAL DAMAGES (INCL UDING, BUT NOT L IMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF L IABIL ITY, WHETHER IN CONTRACT, STRICT L IABIL ITY, OR TORT (INCL UDING NEGL IGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE RESOURCES, EVEN IF ADVISED OF THE POSSIBIL ITY OF SUCH DAMAGE.RPTL reserves the right to make any enhancements, improvements, corrections or any other modifications to the RESOURCES or any products described in them at any time and without further notice.The RESOURCES are intended for skilled users with suitable levels of design knowledge. Users are solely responsible for their selection and use of the RESOURCES and any application of the products described in them. User agrees to indemnify and hold RPTL harmless against all liabilities, costs, damages or other losses arising out of their use of the RESOURCES.RPTL grants users permission to use the RESOURCES solely in conjunction with the Raspberry Pi products. All other use of the RESOURCES is prohibited. No licence is granted to any other RPTL or other third party intellectual property right.HIGH RISK ACTIVITIES. Raspberry Pi products are not designed, manufactured or intended for use in hazardous environments requiring fail safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, weapons systems or safety-critical applications (including life support systems and other medical devices), in which the failure of the products could lead directly to death, personal injury or severe physical or environmental damage (“High Risk Activities”). RPTL specifically disclaims any express or implied warranty of fitness for High Risk Activities and accepts no liability for use or inclusions of Raspberry Pi products in High Risk Activities.Raspberry Pi products are provided subject to RPTL’s Standard Terms. RPTL’s provision of the RESOURCES does not expand or otherwise modify RPTL’s Standard Terms including but not limited to the disclaimers and warranties expressed in them.IntroductionThe Raspberry Pi Build HAT is an add-on board that connects to the 40-pin GPIO header of your Raspberry Pi, which was designed in collaboration with LEGO® Education to make it easy to control LEGO® Technic™ motors and sensors with Raspberry Pi computers.It provides four connectors for LEGO® Technic™ motors and sensors from the SPIKE™ Portfolio. The available sensors include a distance sensor, a colour sensor, and a versatile force sensor. The angular motors come in a range of sizes and include integrated encoders that can be queried to find their position.The Build HAT fits all Raspberry Pi computers with a 40-pin GPIO header, including — with the addition of a ribbon cable or other extension device — Raspberry Pi 400. Connected L EGO® Technic™ devices can easily be controlled in Python, alongside standard Raspberry Pi accessories such as a camera module.The Raspberry Pi Build HAT power supply, available separately, is designed to power both the Build HAT and Raspberry Pi computer along with all connected LEGO® Technic™ devices.The L EGO® Education SPIKE™ Prime Set 45678 and SPIKE™ Prime Expansion Set 45681, available separately from LEGO® Education resellers, include a collection of useful elements supported by the Build HAT.NOTEThe HAT works with all 40-pin GPIO Raspberry Pi boards, including Raspberry Pi 4 and Raspberry Pi Zero. With the addition of a ribbon cable or other extension device, it can also be used with Raspberry Pi 400.•Controls up to 4 LEGO® Technic™ motors and sensors included in the SPIKE™ Portfolio•Easy-to-use Python library to control your LEGO® Technic™ devices•Fits onto any Raspberry Pi computer with a 40-pin GPIO header•Onboard RP2040 microcontroller manages low-level control of LEGO® Technic™ devices•External 8V PSU available separately to power both Build HAT and Raspberry PiPreparing your Raspberry PiRaspberry Pi recommend the use of Raspberry Pi Imager to install an operating system on your SD card. You will need another computer with an SD card reader to install the image.Using Raspberry Pi ImagerRaspberry Pi have developed a graphical SD card writing tool that works on Mac OS, Ubuntu 18.04, and Windows called Raspberry Pi Imager; this is the easiest option for most users since it will download the image automatically and install it to the SD card.Download the latest version of Raspberry Pi Imager and install it. If you want to use Raspberry Pi Imager from a second Raspberry Pi, you can install it from a terminal using sudo apt install rpi-imager. Then:•Connect an SD card reader with the SD card inside.•Open Raspberry Pi Imager and choose the required OS from the list presented.•Choose the SD card you wish to write your image to.•Review your selections and click on the Write button to begin writing data to the SD Card.NOTEIf using Raspberry Pi Imager on Windows 10 with controlled folder access enabled, you will need to explicitly allow Raspberry Pi Imager permission to write the SD card. If this is not done, the imaging process will fail with a "failed to write" error.You can now insert the SD card into the Raspberry Pi and power it up. For Raspberry Pi OS, if you need to manually log in, the default user name is pi, with password raspberry, and the default keyboard layout is set to United Kingdom (UK).You should change the default password straight away to ensure your Raspberry Pi is secure.Configuring the Serial PortOnce the Raspberry Pi has booted, open the Raspberry Pi Configuration tool by clicking on the Raspberry Menu button and then selecting “Preferences” and then “Raspberry Pi Configuration”.Click on the “interfaces” tab and adjust the Serial settings as shown below:to the Raspberry PiBuild HAT.Using a Headless Raspberry PiIf you are running your Raspberry Pi headless and using raspi-config, select “interface options from the first menu”.the serial connectionto the Raspberry PiBuild HAT usingraspi-config.Then “P6 Serial Port”.the serial connectionto the Raspberry PiBuild HAT usingraspi-config.Disable the serial console:Figure 4. Configuringthe serial connectionto the Raspberry PiBuild HAT usingraspi-config.And enable the serial port hardware.Figure 5. Configuringthe serial connectionto the Raspberry PiBuild HAT usingraspi-config.The final settings should look like this.to the Raspberry PiBuild HAT usingraspi-config.You will need to reboot at this point if you have made any changes.Preparing the Build HATAttach 9mm spacers to the bottom of the board. Seat the Raspberry Pi Build HAT onto your Raspberry Pi. Make sure youput it on the right way up. Unlike other HATs, all the components are on the bottom, leaving room for a breadboard orLEGO elements on top.Figure 7. Fitting theBuild HAT to yourRaspberry PiAccess the GPIO PinsIf you want to access the GPIO pins of the Raspberry Pi, you can add an optional tall header and use 15 mm spacers, seeFigure 8.Figure 8. TheRaspberry Pi BuildHAT connected usingthe optional tallheader and 15mmspacers.The following pins are used by the Build HAT itself and you should not connect anything to them.Powering the Build HATConnect an external power supply — the official Raspberry Pi Build HAT power supply is recommended — however anyreliable +8V±10% power supply capable of supplying 48W via a 5.5mm × 2.1mm × 11mm centre positive barrel connectorwill power the Build HAT. You don’t need to connect an additional USB power supply to the Raspberry Pi as well, unlessyou are using a Raspberry Pi 400.NOTEThe Build HAT can not power the Raspberry Pi 400 as it does not support being powered via the GPIO headers.Figure 9. Powering theBuild HAT using theRaspberry Pi BuildHAT power supply.NOTEThe LEGO® Technic™ motors are very powerful; so to drive them you’ll need an external 8V power supply. If you wantto read from motor encoders and the SPIKE™ force sensor, you can power your Raspberry Pi and Build HAT the usualway, via your Raspberry Pi’s USB power socket. The SPIKE™ colour and distance sensors, like the motors, require anexternal power supply.Connecting a MotorConnect a motor to port A on the Build HAT. The LPF2 connectors need to be inserted the correct way up. If the connectordoesn’t slide in easily, rotate by 180 degrees and try again.the Build HATInstalling the SoftwareInstall the Build HAT Python library. Open a Terminal window and type,$ pip3 install buildhatFor more information about the Build HAT Python Library see https://buildhat.readthedocs.io/.Start the Thonny IDE. Add the program code below:1 from buildhat import Motor23 motor_a = Motor('A')45 motor_a.run_for_seconds(5)Run the program by clicking the play/run button. If this is the first time you’re running a Build HAT program since the Raspberry Pi has booted, there will be a few seconds pause while the firmware is copied across to the board. You should see the red LED extinguish and the green LED illuminate. Subsequent executions of a Python program will not require this pause.Your motor should turn clockwise for 5 seconds.Change the final line of your program and re-run.5 motor_a.run_for_seconds(5, speed=50)The motor should now turn faster. Make another change:5 motor_a.run_for_seconds(5, speed=-50)The motor should turn in the opposite (anti-clockwise) directionCreate a new program by clicking on the plus button in Thonny. Add the code below:from buildhat import Motormotor_a = Motor('A')While True:print("Position: ", motor_a.get_aposition())Run the program. Grab the motor and turn the shaft. You should see the numbers printed in the Thonny REPL changing.Connect a Colour sensor sensor to port B on the Build HAT, and a Force sensor to port C.If you’re not intending to drive a motor, then you don’t need an external power supply and you can use a standard USB power supply for your Raspberry Pi.Create another new program:1 from signal import pause2 from buildhat import ForceSensor, ColorSensor34 button = ForceSensor('C')5 cs = ColorSensor('B')67 def handle_pressed():8 cs.on()9 print(c.get_color())1011 def handle_released():12 cs.off()Run it and hold a coloured object (L EGO elements are ideal) in front of the colour sensor and press the Force sensor plunger. The sensor’s LED should switch on and the name of the closest colour should be displayed in the thonny REPL.。

raspberry入门下篇解析

raspberry入门下篇解析

树莓派自编手册2安装摄像头首先确保树莓派的系统为较新的版本,并且开启摄像头功能。

输入命令:sudo raspi-config并勾选第5个的enable camera 功能选择“YES”,然后点击”Finish” 自动重启。

如下图:拍摄照片raspistill命令是树莓派提供的捕获图像的工具,输入下面命令获取一张图像保存到image.jpg输入:raspistill -o image.jpg -rot 180参数o是输出到文件的意思;参数rot是旋转图片180度,因为摄像头我是让他排线向上摆放的,所以需要旋转一下。

命令输入后,会发现摄像头上的led灯亮,大概持续7秒钟左右熄灭,同时命令执行完毕。

查看图片,发觉成像非常清晰。

调节照片等待时间,比如输入:raspistill –t 20000 -o image.jpg参数–t 调节速度,20000则为速度。

5000 等同于5秒。

raspistill常用的参数-v:调试信息查看。

-w:图像宽度-h:图像高度-rot:图像旋转角度,只支持0、90、180、270 度-o:图像输出地址,例如image.jpg,如果文件名为“-”,将输出发送至标准输出设备-t:获取图像前等待时间,默认为5000,即5秒-tl:多久执行一次图像抓取。

产品参数:支持1080p/720p/640x480p视频,尺寸25mm x 20mm x 9mm,定焦透镜, CSi接口。

静止图像分辨率2592 x 1944。

记录频率为30fps摄像头使用方法:硬件连接:1. 软排线,90度垂直连接器,HDMI口旁边那个。

连接时触点一侧朝向HDMI接口。

2. 使用前撕掉镜头上的保护膜3. 裸板,注意ESD伤害,谨防静电!软件使用:1. RPi固件和raspi-config已经为了摄像头更新,请执行一次apt-get update; apt-get upgrade;2. raspi-config中选择camera,启动RPi固件中的摄像头驱动,然后重启3. 使用命令行程序raspivid和raspistill操作摄像头,捕捉视频片段或图像4. 捕捉到的视频片段需要用mplayer播放如何将摄像头的数据通过网络直播播发出去:通过nc命令(ncat - Concatenate and redirect sockets)将摄像头的输入数据,直接重定向到网络端口实现输出RaspiCam 文档本文档将对2013 年5 月为止可用的三个Raspberry Pi 摄像头应用程序进行介绍。

树莓派RaspberryPi使用简介

树莓派RaspberryPi使用简介

树莓派Raspberry Pi 使用简介你需要以下这些东西:一张Micro SD记忆卡一个SD读卡器,用于将系统映像写入到Micro SD卡中供电来源。

我们用的是一个旧的安卓手机充电器,你需要一个5V的micro USB接口充电器为它供电。

如果你是用的普通显示器而不是高清电视,你需要一条HDMI连接线与HDMI-DVI转换器。

如果你的显示器支持HDMI或者你打算使用电视机进行连接,那么你就可以省去转换器了。

USB接口的键盘和鼠标一条以太网线可选设备:用于保护Raspberry Pi的盒子除了键盘和鼠标之外,如果你打算要连接更多的USB设备,那么你需要一个USB Hub集线器。

我们在本文中使用的东西:一个Model B Raspberry Pi一张16GB Class 10 SanDisk Ultra SDHC记忆卡(传输率标为300MB/s)一个原本用于HTC Inspire的旧充电器罗技K260无线键鼠套装(两件只用一个接收器,因此只占用一个USB 口)一条RJ-45网线设置当你把上面的一切都准备好以后,我们就可以开始设置Raspberry Pi 了将Raspbian映像安装到Micro SD卡中Raspberry Pi出来已经有一段时间了,也正因如此,无论你是在用Windows、Mac OS X还是Linux,都有好几种方法将Raspbian的映像写到你的Micro SD卡中。

然而为了让这篇文章不变成介绍各种映像写入软件的文章,我们将会把最常用的方法展示给大家看:在OS X与Linux中我们将会用系统自带的dd工具写入,而在Windows中我们将会使用一个叫Win32DiskImager的工具进行。

为了让过程便得简单,我们建议你在开始操作前,先把下载文件夹清空。

然后,从这里下载Raspbian.zip。

在里面,选择最新的Raspbian来下载。

当然你也可以选择使用BT来下载,为了能让其他人继续用BT下载,我们建议你在下载完成后继续上传。

树莓派 2B 使用手册资料

树莓派 2B 使用手册资料

树莓派2B 使用手册特别告示:A、树莓派只能使用5V 电源,若大于5V 必定致树莓派烧毁!B、还原TF 卡需下载SD格式化工具格式化TF卡,而不是简单的在Windows 下格式化,否则可能损坏TF 卡。

树莓派相关接口布局的认识:一、安装系统(本步骤在Windows 系统的pc 上操作而非树莓派。

本教程默认使用官方推荐系统——raspbian。

其它系统请自行尝试和折腾。

)1、Raspbian 下载,地址:/downloads/ (树莓派2B 必须使用2015 年 1 月31 日及之后的版本,否则不能用),解压缩到PC 上没有中文字符的文件夹下(即:如下图红框内,路径不能有中文或者特殊字符),得到.img 镜像文件2、下载镜像安装工具win32 disk imager: /aKtGY ,解压缩到PC上:3、将TF 卡(最少8G 容量)插入读卡器(别用笔记本自带卡槽,否则刷的系统极可能不完整,存在问题),在PC 上打开win32diskimager.exe,如上图;点击按钮1,选择第1 步得到的img 镜像文件;点击按钮2 选择TF 卡的盘符;点击按钮3(write)开始给TF 卡写入系统,其中会提示对话框,点YES 即可;点击按钮4(read)是备份(导出)TF 卡已装系统。

装系统由TF 卡写入速度决定,8 分钟左右。

系统安装成功后会提示“Write Successful”(装系统时勿做其他操作,存在系统写入失败损坏TF 卡的可能)。

此时关闭imager 工具,但别拔出TF 卡。

这时TF 卡只显示剩下几十M,正常的!这是由于TF 卡在装了Linux 系统后,分为三种格式,其中只有一种格式能被Windows 系统识别,也就是剩下那几十M。

二、系统配置1)、注意:若使用A V(RCA)接口电视,本步骤可忽略,但2B 须使用“3.5mm 转接头转换后”才可正常使用。

2)、HDMI、DVI 或VGA 接口显示器用户需要修改配置文件:在PC 上进入TF 卡,并找到文件config.txt,使用3、Notepad++(下载:/pVN9A )工具打开,依次将下面项目的“值”修改为等号后的数值,并去掉前面的“#”:hdmi_force_hotplug=1hdmi_gryuoup=2hdmi_mode=16hdmi_drive=2config_hdmi_boost=4sdtv_mode=2arm_freq=800项目释义:hdmi_mode=16 是分辨率修改项,通常为4、9、16;hdmi_drive=2,表示音频从HDMI 接口输出;arm_freq=800 为调频项,可为900、1000,修改前请务必做好散热准备,谨慎尝试,后果自负。

树莓派HiFi DAC扩展板说明书

树莓派HiFi DAC扩展板说明书

树莓派 HiFi DAC 扩展板说明书Instructions of HiFi DAC for Raspberry Pi享受聆听从 HiFi DAC 开始 出品Hardware Version: 2018.08Document Version: 2018.08.24More information visit 产品介绍树莓派 HIFi DAC 扩展板集成了了 TI 公司专业的⾳音频解码芯⽚片 PCM5122,采⽤用 I2S 接⼝口标准整合 了了⼀一套基于树莓派的完善的⾳音频硬件解码系统。

并⽀支持 Volumio 、RuneAudio 、OSMC 等功能强⼤大 的播放软件,是快速搭建树莓派 HiFi 系统的不不⼆二之选!本产品完美适配于树莓派,可兼容树莓派1代A+、B+,树莓派2B ,树莓派3B 、B+,树莓派Zero 、Zero W ,以及后续对该标准兼容的树莓派系列列硬件,为了了确保可⽤用性,建议在带有⽆无线⽹网卡的树莓派上使⽤用。

硬件示意图:1.40Pin 排针插座(默认带短针,可根据需要购买⻓长针)2. 3.5MM ⾳音频接⼝口3.RCA 莲花⾳音频插座(标准版不不带此接⼝口,购买时选择)4.预留留红外线接收头焊点(根据需要⾃自⾏行行添加 VS1838B 接收头)5.电源指示灯6.DAC 运⾏行行指示灯标准版正⾯面带莲花插座版与树莓派组装图312456组合式的⻓长短排针插座设计,可选⻓长针、短针⾃自由拆装。

可根据需要使⽤用⻓长针排针插座,引出树莓派的 GPIO 引脚,叠加安装其他扩展板或使⽤用杜邦线扩展功能。

分别安装效果如图。

⻓长针排针插座安装效果可叠加其他功能相兼容的扩展板使⽤用,仅作安装示意。

⻓长针排针插座短针排针插座从扩展板背⾯面向正⾯面插⼊入短针排针插座安装效果特⾊色采⽤用 TI 公司专业⾳音频解码芯⽚片 PCM5122,⽀支持⾼高达 32bit/384kHz 的采样率,动态范围 112dB,失真度 -93db。

树莓派玩机手册

树莓派玩机手册

树莓派玩机手册版本:V1.0由整理发布对论坛()和百度wiki资料进行系统整理,用一个初学者(从未接触过树莓派的玩家)视野,来玩转树莓派。

由于网络知识不断的扩张,本教程会陆续整理和更新,欢迎大家大家上网分享经验和问题。

初识树莓派:一、收到树莓派的玩家,首先需要去下载和安装SD/TF 卡的固件。

《最新树莓派系统镜像下载》和《系统镜像写入工具USB Image Tool(比win32diskimager好10000倍!!)》有详细的说明。

标题下有论坛交流地址。

二、外壳/散热片安装延伸到7寸小机器安装等教学:涉及树莓派主机外壳散热片风扇的具体安装图涉及7寸台式机的整机安装,用到第一章的成果最新树莓派系统镜像下载论坛交流:/thread-22-1-1.html注意:所有HTTP下载地址,都可以直接下载,无需301跳转,也无需打开新页面再点击。

百度网盘下载全部由本论坛提供,通过离线下载的方式,从原服务器直接送入百度网盘,数据不走我们管理员私人的电脑。

所以文件内容、压缩方式,均与原文件完全一致,没有广告注释、没有推广链接等任何乱七八糟的内容,您可以用原来文件的校验码进行检验。

我们致力提供纯净的资源,希望能得到您的认可。

名称版本下载地址系统用户名密码下载来源Raspbian "wheezy" 2013-07-26 HTTP BT百度网盘pi raspberry 是Debian7.0在ARMv6的编译版,加上针对树莓派深度定制的硬件驱动与软件程序。

官方推荐系统。

如果你第一次使用树莓派,请下载这个。

Debian的软件策略偏保守,稳定第一,升级是次要的。

SHA-1校验=f072b87a8a832004973db4f5e1edb863ed27507b系统镜像写入工具USB Image Tool(比win32diskimager好10000倍!!)论坛交流:/thread-24-1-2.html几乎所有的新手教程都使用Win32DiskImager作为系统安装工具——中文的、英文的、官方的、eLinux wiki的,不一而足。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

树莓派2B 使用手册
特别告示:A、树莓派只能使用5V 电源,若大于5V 必定致树莓派烧毁!B、还原TF 卡需下载SD格式化工具格式化TF卡,而不是简单的在Windows 下格式化,否则可能损坏TF 卡。

树莓派相关接口布局的认识:
一、安装系统(本步骤在Windows 系统的pc 上操作而非树莓派。

本教程默认使用官
方推荐系统——raspbian。

其它系统请自行尝试和折腾。

)
1、Raspbian 下载,地址:/downloads/ (树莓派2B 必须使用2015 年 1 月31 日及之后的版本,否则不能用),解压缩到PC 上没有中文字符的文件夹下(即:如下图红框内,路径不能有中文或者特殊字符),得到.img 镜像文件
2、下载镜像安装工具win32 disk imager: /aKtGY ,解压缩到PC上:
3、将TF 卡(最少8G 容量)插入读卡器(别用笔记本自带卡槽,否则刷的系统极可能不完整,存在问题),在PC 上打开win32diskimager.exe,如上图;
点击按钮1,选择第1 步得到的img 镜像文件;
点击按钮2 选择TF 卡的盘符;
点击按钮3(write)开始给TF 卡写入系统,其中会提示对话框,点YES 即可;
点击按钮4(read)是备份(导出)TF 卡已装系统。

装系统由TF 卡写入速度决定,8 分钟左右。

系统安装成功后会提示“Write Successful”(装系统时勿做其他操作,存在系统写入失败损坏TF 卡的可能)。

此时关闭imager 工具,但别拔出TF 卡。

这时TF 卡只显示剩下几十M,正常的!这是由于TF 卡在装了Linux 系统后,分为三种格式,其中只有一种格式能被Windows 系统识别,也就是剩下那几十M。

二、系统配置
1)、注意:若使用A V(RCA)接口电视,本步骤可忽略,但2B 须
使用“3.5mm 转接头转换后”才可正常使用。

2)、HDMI、DVI 或VGA 接口显示器用户需要修改配置文件:在PC 上进入TF 卡,并找到文件config.txt,使用
3、Notepad++(下载:/pVN9A )工具打开,依次将下面项目的“值”修改为等号后的数值,并去掉前面的“#”:hdmi_force_hotplug=1
hdmi_gryuoup=2
hdmi_mode=16
hdmi_drive=2
config_hdmi_boost=4
sdtv_mode=2
arm_freq=800
项目释义:hdmi_mode=16 是分辨率修改项,通常为4、9、16;hdmi_drive=2,表示音频从HDMI 接口输出;arm_freq=800 为调频项,可为900、1000,修改前请务必做好散热准备,谨慎尝试,后果自负。

至此系统已基本安装、配置好,拔出TF 卡插入树莓派背部卡槽。

(若仍不显示则尝试仅去掉hdmi_safe=1 前面的#,其他每行开头加上#)
三、配件
1、无论您有多少外设配件,请务必使用5v 2a 电源(树莓派2 代
B 型,官方要求至少5V 1.8A),且在接通电源之前,确保其它配件
都已连上。

原则:最后插电源线,也就是最后接通电源。

2、HDMI 转VGA 转换器、USB 集线器,最好能独立供电。

集线器请勿使用反向供电的,反向供电绕过了树莓派上所有自我保护的电路设计,电压电流过高过大易导致烧毁树莓派。

四、树莓派raspi-config 工具
初装系统首次启动过程中,会出现raspi-confi界面,如左图(用sudo raspi-config 命令亦可调出;界面会因系统版本差异而有所细
小不同)。

以下第1、3、4 步必须做,其他随意,可做了解。

1、Expand Filesystem,将系统扩展到整个TF 卡,必须执行,一路敲回车即可;
2、修改密码及账号,若要修改,请铭记。

3、开机启动到桌面,或Scratch(编程寓教工具);进入条目后,找到有“desktop”的条目,一路回车(以下设置完成后,重启即可自动进入桌面)。

4、地区/语言(汉化):进入本项后,选择Change locale 并进入,用键盘上下键找到en_GB.UTF-8 UTF-8,敲空格键去掉前面的*,依次找到en_US.UTF-8 UTF-8、zh_CN UTF-8 UTF-8、zh_CN GBK GBK,敲空格键打*,然后利用Tab 键将光标移到OK,回车进入下一步。

选择zh_CN UTF-8 UTF-8,再选OK,回车,等待几分钟。

汉化至此完成。

5、CSI 摄像头开启/关闭,进入本项后,选择enable 则开启。

6、将树莓派加入Rastrack 网站。

7、超频;一般不用超频,谨慎操作,提前做好散热,建议风扇,夏天散热量大。

8、高级选项,包括Overscan、Hostname、Memory Split(内存分配)、SSH、Spi、Update。

9、本机相关信息。

设置完成后,光标移到<Finish>,回车,自动重启。

至此,您的树莓派基本设置完成!
五、联网
1、用网线将树莓派连结到路由器,系统会自动获得IP。

要想这一步骤简单,前提是:系统装正确了,完整了,且路由器未做任何其它限制性设置(故此,请保持路由器是默认状态)。

2、2015-2-16 及之前系统版本:无线网卡联网,打开桌面WiFi Config,点击Scan,双击你的无线账号,在PSK后面输入密码,回车,即可获得IP。

(若不显示wlan0 之类的,那么必定是系统没装正确,请重做系统,或使用命令行方式设置无线。

必定OK。


3、2015-5-5 及之后的版本:在顶部任务栏,右侧,可以看到“电脑图标”,鼠标移动到此处,会自动罗列出搜索到的WIFI 账号,也可以通过右键进行相关设置。

选择你的WIFI 账号输入密码,OK 了。

六、杂项及疑难:
Raspbian 默认账号/密码:pi / raspberry (输入密码不会有显示,更无“***”这类提示。

请勿将系统放在有“中文或特殊字符”命名的文件夹,否则安装系统会提示错误:error123,导致装不了。

备份系统:/aUUYc ;
在MAC OS 系统下装系统教程:/aUUXg
由于笔记本和树莓派都是视频输出,没有输入,故笔记本不能作为树莓派的显示器,除非远程访树莓派:网线将树莓派和路由器连结,启动树莓派,路由器自动为树莓派分配IP,通过PUTTY 软件(请百度搜索下载)实现远程访问。

详情:/bX0LE 树莓派若不装系统,不会有任何反应,只会亮红灯,表示通电了,仅此而已。

警告:千万不要用官方提供的Noobs系统,并不是那么容易玩转。

切记。

温度:树莓派温度一般在35-75 波动。

查看主板温度命令:sudo /opt/vc/bin/vcgencmd measure_temp ;
VNC 安装教程:/pQW6y
看电影/视频/电视及相关配置调试终极教程:/aKHSl
中文字库:sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
拼音输入法:sudo apt-get install scim-pinyin
五笔:sudo apt-get install scim-tables-zh
装谷歌浏览器:sudo apt-get install chromium-browser chromium-l10n
办公软件:sudo apt-get install -l10n-zh-cn
无线网卡联网情况比较复杂,涉及方面多:距离、网络、路由器设置、树莓派系统的设置、障碍物等,请多尝试。

另:无线账号密码不宜过长,宜短,否则会出现无法联网。

七、Windows10 IoT:
1、安装Windows10 IoT 教程:/thread-26220-1-1.html
2、Windows7 下安装Windows10 IoT 教程:/thread-26427-1-1.html
八、Ubuntu mate:
树莓派版ubuntu 下载地址:/downloads/ (说明:账号/密码: ubuntu/Ubuntu;安装方法跟安装raspbian 一样。

) 九、树莓派GIPO 定义图(1 代B+和 2 代 B 之GPIO 定义完全一样):
十、风扇安装说明:
风扇---------Pi GPIO
红线接------ Pin4 (5V)
黑线-------- Pin6(GND、Ground)
这是ABS材质的外壳风扇安装图
此图是亚克力外壳风扇安装图
十一、散热片粘贴
对比下图,粘贴散热片:。

相关文档
最新文档