Resources by Raspberry Pi Foundation
Displaying 1 - 10 of 37
BASH Basics
This introductory guide explains how to use the LINUX shell known as BASH (Bourne Again Shell). BASH is useful for linking together various programs for creating innovative solutions, and can unleash the power of a Raspberry Pi.
The guide covers running BASH, the syntax used, how to chain together commands,...
A short series of guides for using the versatile BASH shell on Raspberry Pi and other Linux computers.
The BrickPi is an add-on board for the Raspberry Pi. It is used to interface with Lego Mindstorms sensors and motors to create robots and other projects. This small collection includes practical tips to get started.
Build a robot buggy
In this project students learn to build a robot buggy using a Raspberry Pi. It contains detailed tutorials that cover:
- How to setup a motor controller board with two motors
- How to control motors using Python
- How to build a robot chassis
These activities are aimed at ...
Building Bots with LEGO
The BrickPi is an interface between the Raspberry Pi and LEGO Mindstorms or EV3 sensors and motors, a portable power source for the Raspberry Pi, and a case that allows you to attach LEGO motors, beams, sensors, and other parts.
This resource includes guidance on setting up and programming the Raspberry Pi...
Command line arguments
This full program code demonstrates how arguments can be passed to Python programs at the command line. The program dynamically generates graphics, and the user can change parameters for the graphics using command line arguments. Suggestions for additional challenges are also included.
Creating desktop widgets
Python can launch sub-processes that function separately. Using this approach it is possible to create any number of desktop widgets. This resource includes instructions to create two widgets: a simple RSS news reader and an image downloader for Astronomy Picture of the Day. Some additional Python modules must be...
Embedding Text and Programs
This intermediate-level guide shows how BASH scripts can be used to handle files and to integrate other programming languages such as Perl. String manipulation features heavily in the exercises. A challenge is set to use a Python program along with a shell script.
Event Driven Programming
This resource introduces programming techniques including Object-Oriented Programming (OOP) and Event-Driven Programming (EDP).
The article consists of the full code for a working computer game. it could be used as a basis for adapting code for other purposes, or as a tool to aid understanding of code...
Gradient fills
This fully working Python project demonstrates a method of creating a gradient fill, to add depth to flat looking rectangles. It also shows how to use transparency effects to change the shape of gradient filled surfaces, how to plot points of a circle, and some examples of why you would want to do so. The activity...