Set of drivers, diodes, capacitors, inductance, and other microelectronics
What Can I Do with Scratch 3 and Raspberry Pi?Scratch 3 is the newest scratch model, with notably enhanced functionality and heightened interface. Besides, it features new extensions enabling you to regulate sense HAT and GPIO pins with scratch complete code. There is so much you can do with Scratch and Raspberry Pi, including:
Sense HAT ExtensionThe updated Sense HAT extension features new elements allowing benefit from Scratch 3 new features. Hence, the new block gives you the ability to;
- Provide Demonstration of designs, typescripts, and texts within the LED environment
- Estimate moistness, pressure, and hotness
- Apply the touchpad
- Recognize alignment, trembling, and slanting
Simple Electronic ExtensionThe friendliest extension for beginners is a simple electronic component when networking with Raspberry Pi’s GPIO pins. Furthermore, it's the best option, especially when searching for something modest to complement the game, like a switching regulator or LED.
GPIO ExtensionThe functionality and outline of the GPIO extension resemble the current Scratch 2 extension. Therefore, users can apply it as a pop-in substitution. Besides, the Raspberry Pi GPIO extension offers users the mutability to direct control and unite numerous electrical modules.
Micro: bit and LEGO ExtensionsUnlike Raspbian, micro: bit isn’t offered for Linux-type operational networks at the moment. The reason is that the Scratch connection program lets Scratch interact with Bluetooth modules that aren’t installed. Nevertheless, it will be offered on the Scratch 3 Desktop version in the near future.
Arduino control broad element photo with infographic details
Getting Started with Scratch on the Raspberry PiIn this tutorial, we will demonstrate how to get started with Scratch on the Raspberry Pi. In addition, we will show exactly how to set up this software on Raspberry. Note that we will run a new version of Raspbian containing a desktop interface.
- HDMI Cable
- Power Supply
- Raspberry Pi
- USB Mouse
- Micro SD Card
- USB Keyboard
- Ethernet Cable or Wi-Fi
Scratch Installation to the Raspberry PiIf running Raspian Desktop, note that some Raspbian comes with pre-installed Scratch software. Therefore, if you have it, you can skip this section.
Raspberry Pi 2 Model BStep 1 Begin by updating the operating system before Scratch installation to our Raspberry. Run these two commands to upgrade the existing packages. Step 2 Afterward, run the following order to complete the Scratch installation process. After a successful download, figure out how to open Scratch on Raspberry Pi.
Opening ScratchStep 1 On the screen right corner, you will find the Raspberry icon. Hence, click on its symbol to open the start menu. Step 2 After opening the menu, go to the “Programming” menu. Click on the drop-down taskbar and choose the “Scratch” option. Step 3 Once you have chosen that option, Scratch will now open on the Pi, and you can now use the software.
Finish the Setup
- Connect your Pi to a Wi-Fi network
- Configure the password for the Pi
- Set up time zone, language, and country
- Install all required updates
Updating the OS to Raspbian BusterBegin by opening the terminal window. On the desktop's top left side, click on the black square symbol to open the terminal window. Type the following command on the terminal window. Afterward, once prompted, type the following; Finally, you will get y/n type y and go back. You will now have updated your Raspberry Pi operating system to Rasbpian Buster. Note that the process will take around 10 to 15 minutes to complete. Once it's complete, run the following command to reboot the Pi.
TroubleshootingIn a few cases, you might find that your screen doesn’t show output from the Raspberry Pi. First, ensure all the connections are in place before restarting the Pi. Secondly, ensure the SD card has NOOBS properly connected. With everything set up, you only need to get Scratch up and running.
Using the Scratch to Connect to the WorldEven though it’s not a must to have a Raspberry Pi for using and running the Scratch, the Pi unlocks numerous other competencies. Furthermore, linking it to the Raspberry Pi allows us to make good use of “GPIO” pins, making the Scratch program interrelate with the outside world.
Raspberry Pi Scratch Projects
Boat RaceIn this tutorial, you will help you learn how to design a competing game. Requirements
Getting StartedBegin by opening the starter project.
- Offline: go to https://rpf.io/p/en/boat-race-go, download the offline starter project file, and then use the offline editor to open it.
- Online: Go to https://rpf.io/boat-race-starter-on and click the online starter development.
Children Using Technology Devices
How To Regulate the BoatUsing the computer’s cursor, the player can now regulate the boat sprite. In addition, to enable the vessel to begin moving from the bottommost left part, and follow the cursor, compute code to the boat sprite.
Testing the CodeOnce you test and see that the boat sprite is following the cursor directing up, your code is working.
Rock BandLearn to make your musical instruments by coding.
- Scratch 3 online or offline