Laura Sach, Author at Raspberry Pi Foundation https://www.raspberrypi.org/blog/author/laurasach/ Teach, learn and make with Raspberry Pi Thu, 17 Oct 2024 10:23:47 +0000 en-GB hourly 1 https://wordpress.org/?v=6.7.2 https://www.raspberrypi.org/app/uploads/2020/06/cropped-raspberrry_pi_logo-100x100.png Laura Sach, Author at Raspberry Pi Foundation https://www.raspberrypi.org/blog/author/laurasach/ 32 32 Introducing picamzero: Simplifying Raspberry Pi Camera projects for beginners https://www.raspberrypi.org/blog/picamzero-raspberry-pi-camera-projects-for-beginners/ https://www.raspberrypi.org/blog/picamzero-raspberry-pi-camera-projects-for-beginners/#comments Thu, 17 Oct 2024 10:23:46 +0000 https://www.raspberrypi.org/?p=88672 Thousands of learners worldwide take their first steps into text-based programming using the Python programming language. Python is not only beginner-friendly, but is also used extensively in industry. In 2015, Python developer Daniel Pope, who has a keen interest in education, noticed that beginners often have great ideas for creating projects but struggle because the…

The post Introducing picamzero: Simplifying Raspberry Pi Camera projects for beginners appeared first on Raspberry Pi Foundation.

]]>
Thousands of learners worldwide take their first steps into text-based programming using the Python programming language. Python is not only beginner-friendly, but is also used extensively in industry.

An educator helps two young learners with a coding project in a classroom.

In 2015, Python developer Daniel Pope, who has a keen interest in education, noticed that beginners often have great ideas for creating projects but struggle because the software libraries they need to use are aimed at more confident programmers. To address this, he created Pygame Zero — a simplified version of the popular PyGame software. Since then, various developers have expanded the range of ‘zero’ libraries for Python.

How Python zero libraries help beginner programmers

The Raspberry Pi Foundation has a long history of supporting Python zero libraries. GPIO Zero was launched back in 2015, followed by guizero and then picozero. The goal of all ‘zero’ libraries is the same: to help beginner programmers create amazing projects using simple, understandable code, supported by useful documentation. 

The Picamera2 library is a powerful tool for advanced users, but beginners — such as Astro Pi: Mission Space Lab programme participants — would benefit from a zero library to allow them to use the Raspberry Pi Camera module. 

The Astro Pi Mark II units.
The Astro Pi Mark II units
Image taken by Astro Pi: Mission Space Lab programme participants

Picamzero: how to get started

The Code Club Projects and Youth Programmes teams at the Raspberry Pi Foundation have joined forces to create picamzero: a new library that makes it simple for beginners to use the Raspberry Pi Camera board.

As with the other ‘zero’ libraries, it’s straightforward to get started. You can install picamzero by typing two commands in your Raspberry Pi’s terminal:

sudo apt update

sudo apt install python3-picamzero

Once it’s installed, setting up your program to communicate with your camera is easy:

from picamzero import Camera

cam = Camera()

You can ask picamzero to take a time-lapse sequence and make a video of your images using a single line of code.

cam.capture_sequence("mysequence.jpg", make_video=True)

Picamzero also makes it easy to add text and image overlays to your images.

A Lego scene captured using picamzero.
A Lego scene captured using picamzero

We’ve written beginner-friendly documentation for the new library so that you can explore what you can create using just a few lines of code. We’ve also updated our resources so that you can start making exciting projects using picamzero straight away:

We hope you enjoy using picamzero. Please get in touch if you have any feedback or suggestions. Happy coding!

The post Introducing picamzero: Simplifying Raspberry Pi Camera projects for beginners appeared first on Raspberry Pi Foundation.

]]>
https://www.raspberrypi.org/blog/picamzero-raspberry-pi-camera-projects-for-beginners/feed/ 7
Our brand-new Christmas resources https://www.raspberrypi.org/blog/christmas-resources-2017/ https://www.raspberrypi.org/blog/christmas-resources-2017/#comments Wed, 29 Nov 2017 12:44:13 +0000 https://www.raspberrypi.org/?p=38227 It’s never too early for Christmas-themed resources — especially when you want to make the most of them in your school, Code Club or CoderDojo! So here’s the ever-wonderful Laura Sach with an introduction of our newest festive projects. In the immortal words of Noddy Holder: “it’s Christmaaaaaaasssss!” Well, maybe it isn’t quite Christmas yet,…

The post Our brand-new Christmas resources appeared first on Raspberry Pi Foundation.

]]>
It’s never too early for Christmas-themed resources — especially when you want to make the most of them in your school, Code Club or CoderDojo! So here’s the ever-wonderful Laura Sach with an introduction of our newest festive projects.

A cartoon of people singing Christmas carols - Raspberry Pi Christmas Resources

In the immortal words of Noddy Holder: “it’s Christmaaaaaaasssss!” Well, maybe it isn’t quite Christmas yet, but since the shops have been playing Mariah Carey on a loop since the last pumpkin lantern hit the bargain bin, you’re hopefully well prepared.

To get you in the mood with some festive fun, we’ve put together a selection of seasonal free resources for you. Each project has a difficulty level in line with our Digital Making Curriculum, so you can check which might suit you best. Why not try them out at your local Raspberry Jam, CoderDojo, or Code Club, at school, or even on a cold day at home with a big mug of hot chocolate?

Jazzy jumpers

A cartoon of someone remembering pairs of jumper designs - Raspberry Pi Christmas Resources

Jazzy jumpers (Creator level): as a child in the eighties, you’d always get an embarrassing and probably badly sized jazzy jumper at Christmas from some distant relative. Thank goodness the trend has gone hipster and dreadful jumpers are now cool!

This resource shows you how to build a memory game in Scratch where you must remember the colour and picture of a jazzy jumper before recreating it. How many jumpers can you successfully recall in a row?

Sense HAT advent calendar

A cartoon Sense HAT lit up in the design of a Christmas pudding - Raspberry Pi Christmas Resources

Sense HAT advent calendar (Builder level): put the lovely lights on your Sense HAT to festive use by creating an advent calendar you can open day by day. However, there’s strictly no cheating with this calendar — we teach you how to use Python to detect the current date and prevent would-be premature peekers!

Press the Enter key to open today’s door:

(Note: no chocolate will be dispensed from your Raspberry Pi. Sorry about that.)

Code a carol

A cartoon of people singing Christmas carols - Raspberry Pi Christmas Resources

Code a carol (Developer level): Have you ever noticed how much repetition there is in carols and other songs? This resource teaches you how to break down the Twelve days of Christmas tune into its component parts and code it up in Sonic Pi the lazy way: get the computer to do all the repetition for you!

No musical knowledge required — just follow our lead, and you’ll have yourself a rocking doorbell tune in no time!

Naughty and nice

A cartoon of Santa judging people by their tweets - Raspberry Pi Christmas Resources

Naughty and nice (Maker level): Have you been naughty or nice? Find out by using sentiment analysis on your tweets to see what sort of things you’ve been talking about throughout the year. For added fun, why not use your program on the Twitter account of your sibling/spouse/arch nemesis and report their level of naughtiness to Santa with an @ mention?

raspberry_pi is 65.5 percent NICE, with an accuracy of 0.9046692607003891

It’s Christmaaaaaasssss

With the festive season just around the corner, it’s time to get started on your Christmas projects! Whether you’re planning to run your Christmas lights via a phone app, install a home assistant inside an Elf on a Shelf, or work through our Christmas resources, we would like to see what you make. So do share your festive builds with us on social media, or by posting links in the comments.

The post Our brand-new Christmas resources appeared first on Raspberry Pi Foundation.

]]>
https://www.raspberrypi.org/blog/christmas-resources-2017/feed/ 2
Decrypt messages and calculate Pi: new OctaPi projects https://www.raspberrypi.org/blog/pi-enigma-octapi/ https://www.raspberrypi.org/blog/pi-enigma-octapi/#comments Mon, 27 Nov 2017 12:07:55 +0000 https://www.raspberrypi.org/?p=38550 Back in July, we collaborated with GCHQ to bring you two fantastic free resources: the first showed you how to build an OctaPi, a Raspberry Pi cluster computer. The second showed you how to use the cluster to learn about public key cryptography. Since then, we and GCHQ have been hard at work, and now…

The post Decrypt messages and calculate Pi: new OctaPi projects appeared first on Raspberry Pi Foundation.

]]>
Back in July, we collaborated with GCHQ to bring you two fantastic free resources: the first showed you how to build an OctaPi, a Raspberry Pi cluster computer. The second showed you how to use the cluster to learn about public key cryptography. Since then, we and GCHQ have been hard at work, and now we’re presenting two more exciting projects to make with your OctaPi!

A happy cartoon octopus holds a Raspberry Pi in each tentacle.

Maker level

These new free resources are at the Maker level of the Raspberry Pi Foundation Digital Making Curriculum — they are intended for learners with a fair amount of experience, introducing them to some intriguing new concepts.

Whilst both resources make use of the OctaPi in their final steps, you can work through the majority of the projects on any computer running Python 3.

Calculate Pi

A cartoon octopus is struggling to work out the value of Pi

3.14159…ummm…

Calculating Pi teaches you two ways of calculating the value of Pi with varying accuracy. Along the way, you’ll also learn how computers store numbers with a fractional part, why your computer can limit how accurate your calculation of Pi is, and how to distribute the calculation across the OctaPi cluster.

Brute-force Enigma

A cartoon octopus tries to break an Enigma code

Decrypt the message before time runs out!

Brute-force Enigma sends you back in time to take up the position of a WWII Enigma operator. Learn how to encrypt and decrypt messages using an Enigma machine simulated entirely in Python. Then switch roles and become a Bletchley Park code breaker — except this time, you’ve got a cluster computer on your side! You will use the OctaPi to launch a brute-force crypt attack on an Enigma-encrypted message, and you’ll gain an appreciation of just how difficult this decryption task was without computers.

Our own OctaPi

A GIF of the OctaPi cluster computer at Pi Towers
GCHQ has kindly sent us a fully assembled, very pretty OctaPi of our own to play with at Pi Towers — it even has eight snazzy Unicorn HATs which let you display light patterns and visualize simulations! Visitors of the Raspberry Jam at Pi Towers can have a go at running their own programs on the OctaPi, while we’ll be using it to continue to curate more free resources for you.

If you’d like to find out more about cluster computing with the Raspberry Pi, read tomorrow’s blog post!

The post Decrypt messages and calculate Pi: new OctaPi projects appeared first on Raspberry Pi Foundation.

]]>
https://www.raspberrypi.org/blog/pi-enigma-octapi/feed/ 11
Hour of Code 2016 https://www.raspberrypi.org/blog/hour-of-code-2016/ https://www.raspberrypi.org/blog/hour-of-code-2016/#comments Thu, 01 Dec 2016 12:09:20 +0000 https://www.raspberrypi.org/?p=26801 What could you do in an hour? Perhaps you could watch an episode of a TV show, have a luxurious bath, or even tidy the house a bit! But what if you could spend an hour learning a skill that might influence the future of your career, and perhaps your whole life? The Hour of…

The post Hour of Code 2016 appeared first on Raspberry Pi Foundation.

]]>
What could you do in an hour? Perhaps you could watch an episode of a TV show, have a luxurious bath, or even tidy the house a bit! But what if you could spend an hour learning a skill that might influence the future of your career, and perhaps your whole life?

hour-of-code-header

The Hour of Code is a worldwide initiative which aims to get as many people as possible to have a go at programming computers. Our aim is to put digital making into the hands of as many people as possible, so here at Pi Towers we have cooked up some exciting projects for you to try, all of which can be completed in an hour.

Have a go at making a version of a whoopee cushion (a favourite Christmas cracker toy in my house) using physical computing, invent your own lyrics for The Twelve Days of Christmas, or simulate your cat floating in space. Many of the projects don’t even require a Raspberry Pi: you can get started with Scratch just by visiting a website.

Physical computing projects

Physical computing projects

Scratch projects

Ada's Poetry Generator

Astro Pi projects

Sense HAT Random Sparkles

Programming projects



We are also holding a digital making event at Pi Towers on Wednesday 7 December: if you can travel to Cambridge, then register, join in and achieve your hour of code!

Whether you are a child or an adult, it is never too late to start learning to code. When I was a teacher, I always loved participating in the Hour of Code: the students couldn’t quite believe they were given an hour to do something they would willingly do for fun. What they didn’t know is that the teachers secretly had a lot of fun testing out the projects too, although some of the resulting sounds did cause a few raised eyebrows in the staff room!

Once you’ve started coding, you might not want to stop, so head over to our resources section for more inspirational projects to tackle. Intrepid teachers can download the second issue of the MagPi Educator’s Edition to find out how to take things further in the classroom. The sky’s the limit! Well, actually, if you’re doing one of our Astro Pi projects, space is the limit…

The post Hour of Code 2016 appeared first on Raspberry Pi Foundation.

]]>
https://www.raspberrypi.org/blog/hour-of-code-2016/feed/ 6