Program Maker pHAT Using Scratch on Raspberry Pi

Program Maker pHAT Using Scratch on Raspberry Pi

Introduction

With Scratch, you can program your own interactive stories, games, and animations. Besides, if you are using Raspberry Pi, you can control GPIO pins on Raspberry Pi. In this tutorial, I will share with you how to program Maker pHAT (equipped with LEDs, buttons and buzzer) using Scratch.

Video

This video shows how to program Maker pHAT using Scratch on Raspberry Pi.

 

Hardware Preparation

This is the list of items used in the video.

Sample Program

This is Scratch program to control LED and buzzer through push buttons on Maker pHAT.

Scratch Maker pHAT

Thank You

References:

Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.

"Please be reminded, this tutorial is prepared for you to try and learn.
You are encouraged to improve the code for a better application."