Listing all results (96)
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...
This guide shows how the BrickPi can enable novice programmers to use Scratch to control complex robots and models.
The instructions need to be followed using Scratch on the Raspberry Pi computer. The resulting programs use different input and output devices, including touch and colour sensors and motors....
This introductory article shows working examples of basic Python programs. It includes:
• Printing to the screen
• Simple arithmetic
• Using variables
• Strings and string arrays
• For and While loops
• Random numbers from the Random library
• Creating a...
This article includes all the code needed to make a simple game which captures keyboard events and uses multimedia. It uses the Pygame library, and includes graphics control and basic collision detection.
The activity is suitable as an introduction to programming with Python, or as a fully working program...
This activity follows on from a previous graphics surface project. Previously a single graphics surface was created - this Python program uses multiple surfaces to build more complex graphics and to create effective animations.
Students are encouraged to experiment with the behaviour of the program, and to...
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...
This activity demonstrates how a Raspberry Pi running Python can interact with other devices in the browser. Using the web.py framework, web forms can be served to mobile phones, tablets etc, and accept input which is fed into the Python script. The project helps students to see how web servers work, and how...
This introduction to programming in Scratch uses a trivial example to demonstrate simple audio and animation. It is written for Scratch 1.4 but can be easily adapted for later versions.
This practical guide to creating a simple game is aimed at those new to programming with Scratch 1.4 or above. It develops a basic Frogger game and introduces collision detection, a key element of many games.
This game-writing activity using Scratch will bring back youthful memories for some! It provides easy-to-follow instructions on how to recreate the memory game Simon on-screen. It includes reusable game elements such as score keeping and audio generation.