Difference between revisions of "RaspberryPiBoard"
(→General Purpose Input/Output (GPIO), I2C, I2S, SPI)
|Line 234:||Line 234:|
DNC = Do not connected
DNC = Do not connected
J2 (on the alpha boards) is a UART:
J2 (on the alpha boards) is a UART:
Revision as of 18:44, 27 November 2011
This page collects information about Raspberry Pi Foundation's ultra-low-cost (~15GBP or 25USD) Linux computer for teaching computer programming to children.
The Raspberry Pi Foundation is a UK registered charity (Registration Number 1129409) which exists to promote the study of computer science and related topics, especially at school level, and to put the fun back into learning computing. We expect this computer to have many other applications both in the developed and the developing world.
Please note that the Raspberry Pi isn't released yet - this page is a community work in progress in preparation for the launch
- 1 Upcoming Events
- 2 Provisional specification
- 3 Availability
- 4 Beginners guide
- 5 Accessories & Peripherals
- 6 Hardware Details
- 6.1 Components
- 6.2 Manual
- 6.3 Schematic / Layout
- 6.4 Errata
- 6.5 Clocking
- 6.6 Power management
- 6.7 Graphics accelerator
- 6.8 Display Output Options
- 6.9 DLP Pico projector
- 6.10 Interfacing to Raw LCD Panels
- 6.11 Interfacing to Camera Module
- 6.12 General Purpose Input/Output (GPIO), I2C, I2S, SPI
- 6.13 MIPI CSI-2 & DSI
- 6.14 CEC
- 7 Software Details
- 8 FAQ
- 9 News articles and blog posts about Raspberry Pi
- 10 Links
- 10.1 Home page
- 10.2 Manuals and resources
- 10.3 Contact and communication
- 10.4 Books
- 10.5 Education & Training materials
- 10.6 Programming
- 10.7 Past events
- 10.8 Manufacturing
- 10.9 Compliancy
- 10.10 Shipping
- 11 Thanks
- 12 Foreign Language Translations
Raspberry Pi Staff will be attending the following events:
The following are general-interest industry events and are not an indication that Raspberry Pi will be attending, exhibiting or speaking at the event. For Raspberry Pi event and speaker schedule, please contact firstname.lastname@example.org.
- Regional conference in Japan - Tokyo, Japan, December 9, 2011 - Japan Technical Jamboree 39
- Computer Science Education Week: 4th-10th December 2011, USA
- O'Reilly Open Source Convention (OSCON) at Portland, Oregon Convention Center July 16-20, 2012. The Call for Papers is scheduled to be posted in November 2011.
The first product is about the size of a credit card, and is designed to plug into a TV or be combined with a touch screen for a low cost tablet. The expected price is $25 for a fully-configured system.
- 700MHz Broadcom BCM2835 media processor featuring an ARM11 (ARM1176JZF-S) core, Broadcom GPU core, DSP core and support for Package-on-Package (PoP) RAM
- 128MiB (Model A) or 256MiB of SDRAM (Model B), stacked on top of the CPU as a PoP device
- OpenGL ES 2.0
- 1080p30 H.264 high-profile decode
- Composite and HDMI video output
- One USB 2.0 port provided by the BCM2835
- SD/MMC/SDIO memory card slot
- General-purpose I/O (About 16 3v3) and various other interfaces, brought out to 1.27mm pin-strip
- Optional integrated 2-port USB hub and 10/100 Ethernet controller (Model B)
- Open software (Iceweasel, KOffice, Python)
- Capability to support various expansion boards
Estimated availability (as of 25th October 2011) is December 2011. Initially, there will be shipping from the UK and possibly the US, but will probably expand with local distributors by the second quarter of 2012.
You just got your new Raspberry Pi device, and now? See beginners guides.
Accessories & Peripherals
Main article: RaspberryPiBoardVerifiedPeripherals
A protective case is an often-cited required accessory. Cases are likely to be offered both directly from Raspberry Pi and from 3rd party companies such as Special Computing.
The board takes fixed 5V input, (with the 1V2 core voltage generated directly from the input using the internal switch-mode supply on the BCM2835 die). This permits to adopt the micro USB form factor, which, in turn, grants the user from inadvertently plugging out-of-range power inputs; that would be dangerous, since the 5V go straight to hdmi and output usb ports, even though the problem should be mitigated by some protections applied to the input power: the board provides a polarity protection diode, a voltage clamp, and a self-resetting semiconductor fuse.
It is planned that expansion boards will be offered both by Raspberry Pi Foundation and by 3rd parties, as of next year.
HDMI to VGA Adaptor
The Broadcom BCM2835 only provides HDMI output and composite output. It does not provide RGB or the other signals needed to by RGB, S-VIDEO or VGA connectors so additional componenty would be needed to generate these signals. Additional componentry would push the price beyond the $25 target and therefore won't happen.
A couple of options for VGA or component RGB outputs, bridging from either HDMI or the MIPI DSI interface:
Firstly, the following *might* work. Beagleboard people have reported various levels of success (mainly "issues"):
...it may need to be modified as described here:
Alternatively, it may be possible to design an expansion board that plugs into the LCD headers on the R.Pi. Here is something similar for Beagleboard:
The first product is about the size of a credit card, and is designed to plug into a TV or be combined with a touch screen accessory for a low cost tablet. The product will be available in two configurations: Model A and Model B. The expected price is $25 for a fully-configured Model-A system and around $35 for a Model B.
(Provisional - some of the expansion interfaces won't be available on production boards)
- SoC: Broadcom BCM2835 media processor system-on-chip featuring:
- CPU core: ARM1176JZF-S ARM11 core clocked at 700MHz; ARM VFP.
- GPU core: a Broadcom VideoCore GPU providing OpenGL ES 1.1, OpenGL ES 2.0, hardware-accelerated OpenVG 1.1, Open EGL, OpenMAX and 1080p30 H.264 high-profile decode. There are 24 GFLOPS of general purpose compute and a bunch of texture filtering and DMA infrastructure. Eben worked on the architecture team for this and the Raspberry Pi team are looking at how they can make some of the proprietary features available to application programmers
- DSP core: There is a DSP, but there isn't currently a public API (Liz thinks the BC team are keen to make one available at some point)
- RAM: 128MiB (Model A) or 256MiB (Model B) of SDRAM. The RAM is physically stacked on top of the Broadcom media processor (package-on-package technology)
- Micro USB power jack (5v)
- SD/MMC/SDIO memory card slot (underside)
- HDMI connector providing HDMI 1.3a out
- Audio connector: 3.5mm stereo jack
- Composite Video connector: RCA
- Either 1x USB 2.0 (Model A) or LAN9512 (Data Brief | Data Sheet) providing 10/100Mb Ethernet and 2x USB 2.0 (J10: Model B)
- 10/100Mb RJ45 Ethernet jack
- DSI interface. Believed to be a 15-pin surface mounted flat flex connector (possibly no-fit).
- MIPI CSI-2 interface. Believed to be a 15-pin surface mounted flat flex connector (possibly no-fit).
- Expansion. 26-pin 2.54mm header, 15-pin 2.54mm header providing:
- 6-pin GPU JTAG (ARM11 pinout)
- 4-pin UART serial console, 3v3 TTL (debug)
- ~16 GPIOs at 3v3
- 2x I2C interface (3v3)
- I2S interface
- SPI interface (3v3)
- ARM JTAG
- Board size: 85.60mm x 53.98mm. Overall height expected to be less than 20mm. 
- Weight: <40g? (Alpha board weighs ~55g)
- 6 layer PCB 
A manual is currently in production by members of the Computing At School working group. This began on the 13 October 2011 and is due to be ready for early March 2012. The manual is aimed at the project's target audience, children, so that they can take their "First steps in Computing Science".
For the first release (~December 2011), there will mostly likely be very minimal documentation.
Schematic / Layout
- Provisional main CPU clock speed is 700MHz
- No data currently released on the GPU or other component clock speeds
- Target power consumption is <1W (This is for the A version, no power consumed from the USB plug.)
Preliminary Alpha board power usage measurements. This is with graphics output on the HDMI port, no power from USB plugs.
- Input 7.5V, ~180mA Linux running only with prompt.
- Input 7.5V, ~300mA heavy graphics running on system.
The GPU is a Broadcom VideoCore IV.
Display Output Options
Standard video outputs include:
- Composite video (NTSC and PAL) via an RCA plug. 3.5mm stereo jack for audio.
- HDMI 1.3a standard output.
These would allow any kind of TV to be used. Computer monitors using DVI-D would also be supported with a simple HDMI-DVI cable.
VGA monitors would require either a composite or HDMI to VGA scan converter box. The SOC does not support any kind of analog component video, including VGA, since the SOC is designed for mobile phone use where this would not be a requirements.
DLP Pico projector
The boards have both Composite and HDMI outputs so should interface with a range of DLP and laser based Pico projectors on the market.
Interfacing to Raw LCD Panels
Nokia N900 has 800x480 DCS LCD (afaik its like DSI, but has build in framebuffer). Replacement screen is about ~$40 (~$50 with 4pin resistive touchscreen).
Nokia N8 has AMOLED 360x640 pixels DSI LCD. Replacement screen is about ~$35, another ~$25 for Multitouch Synaptics T1021A touchscreen (I2C + interrupt IO, no docs/drivers).
Potential LVDS interfacing chips :
DVI receiver TFP401A, TFP403, or TFP501 + LVDS transmitter SN75LVDS83B or SN65LVDS93A (Mentioned earlier fit-VGA is build around TFP401A, probably many more "active" DVI2VGA cables are build the same way)
I2C/SPI ADC can be used to interface 4 pin resistive Touch Screens, For example STMPE812A
Interfacing to Camera Module
is Sony sub-LVDS same as MIPI SCI-2? Sony IMX020 5Mbip module is available for $5-7 (SE K850i replacement camera).
Looks like Nokia N95 uses SCI-2 5Mpix camera module with autofocus. ~$15 replacement part.
General Purpose Input/Output (GPIO), I2C, I2S, SPI
There are approximately 16 spare GPIOs, which on the Alpha board are brought out to 1.27mm pin-strip. Voltage levels are 3v3. The connector choice is deliberately annoying to connect to directly; there is no over-voltage protection on the board so the intention is that people interested in serious interfacing will use an external board with buffers, level conversion and analog I/O rather than soldering directly onto the main board.
We also bring 2x I2C (3v3), I2S and an SPI (3v3) interface out to the same connector. We support one slave interface for I2C and one for SPI. All UART and SPI connectors can be reconfigured as GPIO pins
DNC = Do not connected
J2 (on the alpha boards) is a UART:
Kernel boot messages go to this UART at 115200bps.
MIPI CSI-2 & DSI
On the Alpha board, we also bring out MIPI CSI-2 & DSI interfaces to a 1.27 mm pinstrip.
HDMI-CEC is supported by hardware but some driver work will be needed and currently isn't exposed into Linux userland.
Eben notes that he has seen CEC demos on the Broadcom SoC they are using.
The boards do not include NAND or NOR storage - everything is on the SD card, which has a FAT32 partition with GPU firmware and a kernel image, and an EXT2 partition with the rootfs.
We're not currently using a bootloader - we actually boot via the GPU, which contains a proprietary RISC core (wacky architecture ;) . The GPU mounts the SD card, loads GPU firmware and brings up display/video/3d, loads a kernel image, resets the SD card host and starts the ARM.
You could replace the kernel image with a bootloader image, and that would work fine.
Source code and binaries for Raspberry Pi will be available at various places from launch, including pre-built Linux distributions.
Ubuntu is currently listed as the default distribution on the Raspberry Pi website, but the Ubuntu developers have now stated they will not be supporting the ARMv6 architecture, so Ubuntu is likely to be dropped.
Eben says (regarding default distribution): "Either Ubuntu or Fedora; the main point in Fedora’s favour is their ongoing support for ARMv6 architectures."
Main page: RaspberryPiBoardDistributions
Instead of just using compiler + editor, you can use complete image create "development tool chains" which integrate compiler, build system, packaging tools etc. in one tool chain.
The Broadcom processor on Raspberry Pi contains an ARM v6 general purpose processor and a Broadcom VideoCore IV GPU. No data is currently available on other cores (if any) available in the BCM2835.
There is broad compiler support including gcc - please see ARM Compilers
The GPU provides APIs for Open GL ES 2.0, hardware-accelerated OpenVG, and 1080p30 H.264 high-profile decode.
The GPU is capable of 1Gpixel/s, 1.5Gtexel/s or 24 GFLOPs of general purpose compute and features a bunch of texture filtering and DMA infrastructure - the Raspberry Pi team are looking at how they can make this available to application programmers.
The GPU blob is an 18MB as an elf file, plus libraries. It does an awful lot. 
There is a DSP, but there isn't currently a public API (Liz thinks the BC team are keen to make one available at some point).
From Eben: "We'll have to take a look. We support hardware-accelerated OpenVG, and have had Flash Lite running incredibly fast. Personally, I'd like to get the official hardware-accelerated Flash 10 going on there, running against OpenGL ES 2.0, but that's something to think about after the launch."
This section collects hints, tips & tricks for various software components.
News articles and blog posts about Raspberry Pi
- http://www.guardian.co.uk/technology/2011/aug/28/ict-changes-needed-national-curriculum?CMP=twt_gu - RaspberryPi background and interview with Eben. (Aug 28 2011)
- http://journaltec.com/2011/08/04/raspberry-pi-interview-with-eben-upton.html - Email interview with Eben. (Aug 4 2011)
- http://www.next-gen.biz/features/david-braben-raspberry-pi - David talks pi and computer education in the UK. (Aug 3 2011)
- http://www.cabume.co.uk/hardware/cambridges-fifteen-quid-computer-set-for-q4-launch.html - Cambridge Business Media is chuffed that, among other things, we're based in Cambridge. (3 Aug 2011)
- http://amplecan.com/archives/762 - Blog post from TheSynapseUK, who posts on the Raspberry Pi boards. This is particularly good on some of the stumbling blocks we have to overcome in schools beyond the curriculum, like all those ICT teachers who don't have any programming experience. (2 Aug 2011)
- http://www.exanders.fr/raspberry-pi-lordinateur-a-17-euros-en-bonne-voie-de-concretisation/ - French article on the how far we've come on the project. (1 Aug 2011)
- http://www.pvsm.ru/article/63919 - Russian article about the Raspi. I am charmed to discover that Google Translate says the English for the Russian version of Braben is Brabo. I think we should adopt Brabo as David's superhero name. (31 July 2011)
- http://orvtech.com/general/raspberry-pi-servidor-casero-alpha/ - Piece in Spanish about the project and the board going alpha. Note shiny US quarter photoshopped over the official 20p piece photo! (30 July 2011)
- http://www.greentablet.info/gadget-25-raspberry-minicomputer-now-in-alpha-production-stage.html - Another short news piece about the board going alpha. (30 July 2011)
- Slashdot: Raspberry Pi $25 PC Goes Into Alpha Production (29 July 2011)
- Geek.com: Raspberry Pi $25 PC goes into alpha production (28 July 2011)
- HuffPost UK: Why Doesn't The UK Have Its Own Apple Inc? - article on the state of the UK computer industry, which interviews Eben and includes some uplifting material on Raspi. (28 July 2011)
- Christian Science Monitor: Raspberry Pi: Rise of the $25 computer - David talks to the Christian Science Monitor about the educational implications of the project. (12 July 2011)
- http://micromath.wordpress.com/2011/06/04/digital-illiteracy-and-raspberry-pi/ - Mathematics under the Microscope, a great maths teaching blog, on Raspi. There's an interesting follow-up post too - and if you have an interest in education, especially in the sciences, the whole blog is well worth your time. (4 June 2011)
- http://www.linuxjournal.com/content/raspberry-pi-tiny-computer-runs-linux - Linux Journal is, perhaps not surprisingly, very pleased that the Raspi will be running Linux. (31 May 2011)
- http://www.electronicsweekly.com/Articles/2011/05/26/51140/in-depth-raspberry-pi-the-computer-on-a-stick.htm - EW interviews Eben. (26 May 2011)
- Computer World UK: As British as Raspberry Pi? (9 May 2011)
- http://www.theinquirer.net/inquirer/news/2068735/uk-developer-creates-gbp15-kids - The Inquirer chats to David. (6 May 2011)
- http://www.techeye.net/hardware/15-usb-pc-creator-david-braben-in-talks-with-government - TechEye talks to David (who talks a bit about his impressions of ICT teaching in the UK as well as about the device). (6 May 2011)
- ARMDevices.net: $25 ARM Powered Desktop presented by Raspberry Pi Foundation (6 May 2011)
Extension:RSS -- Error: "http://www.raspberrypi.org/wp-content/plugins/mingle-forum/feed.php?topic=70" is not in the whitelist of allowed feeds. There are no allowed feed URLs in the whitelist.
- BBC iClick's Peter Price asks whether a £15 computer can solve the programming gap (6 minutes, 3 June 2011)
- Raspberry Pi's David Braben talks to BBC's Rory Cellan-Jones (2:28 minutes, 5 May 2011)
- Raspberry Pi community tutorials on YouTube
- Podcast of a phone interview with Eben about the project and the motivations behind it (15 minutes long.) (3 June 2011) Transcription here.
- Prototype1 board
- Alpha prototype board, topside - Alpha prototypes are about 50% larger than the target credit-card size
- Alpha prototype board, underside
See also Schematic / Layout
Raspberry Pi wiki pages
- The Undocumented Pi
- RPi USB booting
- RPi BCM2711 GPIOs
- Category:RPi Tutorials
- RPi BCM2837 Pinout
- Transfer system disk from SD card to hard disk
- Plan 9 on Raspberry Pi
- Adafruit 954 USB serial cable
- RPi VNC Desktop sharing
- Assign GPIO as ACT-led
- User:Dfarning/BeagleBone Hub
- RPi Upstream Kernel Compilation
- Installing RaPiRo Web Control
- DE:RPi Hub
- Template:Ja:Raspberry Pi
- RaspberryPi Comparison
- RPi cmdline.txt
- RPi Expansion Boards by Manufacturer
- File:RPI extension board- Slice of Pi.JPG
- RPi Expansion Boards: Pridopia
- File:RPi Servo board.jpg
- File:Raspberry pi- EASY GPIO.jpg
- RPi Powered USB Hubs
- RPi USB Keyboards
- RPi USB Webcams
- RPi USB Mouse devices
- RPi 拓展板
- RPi 底层外设
- RPi 屏幕
- RPi 硬件
- RPi 简易 GPIO 硬件 & 软件教程
- RPi 硬件历史
- RPi 简史
- RPi 认证外设
- Template:Zh-CN:Hub Flags
- R-Pi 故障排除
- RPi 新手指南
- Template:Zh-CN:Raspberry Pi
- RPi 硬件基础设置
- RPi 购买指南
- RPi 常见问题解答
- Zh-CN:RPi 信息中心
- Userspace Arduino:Libraries
- Userspace Arduino:To Do
- Zh-CN:RPi Hub
- Userspace Arduino
- RPi USB Ethernet adapters
- RPi USB Bluetooth adapters
- RPi SD cards
- RPi USB Wi-Fi Adapters
- FR:RPi Tutorial Easy GPIO Hardware & Software
- FR:RPi Ruby on Rails
- FR:RPi XRDP Server
- FR:RPi Install software
- FR:RPi Debian Python3
- FR:RPi Setting up a static IP in Debian
- FR:RPi BCM2835 Pinout
- FR:RPi BCM2835 Signals Rev2.0
- FR:RPi BCM2835 Signals Rev1.0
- FR:RPi Philosophy
- FR:RPi Defining Default Terminal Size
- FR:RPi Projects/Digital Signage
- FR:RPi VICE C64 Emulator
- FR:RPi Email IP On Boot Debian
- FR:Wheezy and the ssh client
- FR:R-Pi ConfigurationFile
- FR:RPi IceWeasel
- FR:RPi Java
- FR:RPi Debian Auto Login
- FR:RPi Chromium
- FR:RPi Documentation
- FR:Lazarus on RPi
- FR:RPi Easy SD Card Setup
- FR:Free Pascal on RPi
- FR:RPi Programming Books
- FR:RPi MySQL
- FR:Will RPi Run
- FR:RPi xray wallpapers
- FR:RPi Bugs
- FR:R-Pi Troubleshooting
- Histoire résumée de RPi
- FR:RPi General History
- Rpi Camera Module
- FR:RPi HTML5
- FR:Rpi Music Player Daemon
- FR:RPi emulators
- FR:RPi FAQ
- FR:RPi DatasheetCategories
- FR:RPi Shipping
- FR:Configuring a Static IP address on your Raspberry Pi
- FR:RPi End-user FAQ
- FR:RPi Perl
- FR:RPi Emulators
- RPi SPI
- FR:RPi List of Templates
- FR:RPi Guides
- FR:RPi Utilities
- FR:Raspberry Jam
- FR:RPi Games
- FR:RPi applications
- FR:TheMagPi Information for new volunteers
- Template:Pt-BR:Raspberry Pi
- Pt-BR:R-Pi Hub
- Wheezy and the ssh client
- RPi Utilities
- Go on RPi
- File:Proto armour page.png
- File:Proto armour pi page.png
- File:PiEm Foto2.jpg
- File:PiF Senso1.jpg
- File:PiF Relais2.jpg
- File:PiEm Foto1.jpg
- Free Pascal on RPi
- File:Free Pascal IDE on Raspberry Pi.png
- File:RPi P6 header.png
- File:RPi P5 header.png
- RPi Projects/PiFace controlling a slot-car
- File:RPi P3 header.png
- File:RPi P2 header.png
- File:RPi P1 header.png
- TheMagPi Information for new volunteers
- RPi Defining Default Terminal Size
- RPi Java JDK Installation
- RPi IceWeasel
- File:Raspberry Pi I-O viii.doc
- File:GPIO Driving Example (BASIC) .doc
- File:SD Card dimensions.png
- RPi Java
- RPi emulators
- File:RPI GPIO testprogram with lazarus.png
- RPi CANBus
- The Lone Raspberry Project
- Raspberry Joomla!
- Configuring a Static IP address on your Raspberry Pi
parent= showparent=no sort=desc sortby=title liststyle=ordered showpath=no kidsonly=no debug=0
raspberrypi.org (RaspberryPi home)
- Using Google you can search raspberrypi.org (including Forum) using site:raspberrypi.org <search term>. The home page and forum each have their own search facilitiy also.
Manuals and resources
Contact and communication
Education & Training materials
Main page: RaspberryPiBoard/EducationalLinks
Raspberry Pi plans to support Python and C as primary teaching languages, but expect to have some sort of BASIC on there too. Perhaps even BBC BASIC or SuperBASIC depending on copyright issues.
Programming languages, IDEs, etc
Languages tested on Alpha board
- Python 
- Ruby 1.9.2 (KidsRuby)
Expected to work
- (maybe) BoaConstructor
- Anjuta for C/C++
- BBC BASIC
- Small Basic
- Squeek implementation of Smalltalk
See also: RaspberryPiBoard/EducationalLinks for education-friendly languages.
- Gambas - possibly a good choice; easy like old visual basic
- Android App Inventor
- Star Logo
- Sugar Learning Platform: An alternative to the Desktop metaphor of the GUI
See also Category:Education
- [Free Software and Open Source Symposium/LinuxFest 2011, 28 October, in Toronto]
- [ARM TechCon, 26-27 October]
- Maker Faire, New York, 17 September
- Transfer Summit, Oxford - 7-8 September
- Educating Programmers Summit - 25 August 2011
Products are RoHS and CE compliant. Please contact Raspberry Pi for details regarding WEEE in your country.
Raspberry Pi will ship worldwide to the best of their ability (ie subject to UK export and local import laws).
Raspberry Pi devices will ship from the UK (and possibly US) and Raspberry Pi will be looking to sign up distribution partners in due course.
To have an idea of shipping cost why don't you look at the Royal Mail website: http://sg.royalmail.com/portal/rm/PriceFinder?catId=23500532&gear=pricingcalc&campaignid=pricefinder_redirect
Look for a package just bigger then 85mm x 55mm x 30mm, weight about 55 grams.
As an example: New Zealand, small package 100grams, air mail 5 days : £2.05
- The layout for this page is based on the excellent BeagleBoard page on this site.
- Some of the text on this page has been adapted from contributions made by the contributors to the BeagleBoard page on this site.