Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scratch 3 Raspberry Pi GPIO extension does not work on RPi5 #148

Open
penguintutor opened this issue Nov 18, 2023 · 4 comments
Open

Scratch 3 Raspberry Pi GPIO extension does not work on RPi5 #148

penguintutor opened this issue Nov 18, 2023 · 4 comments

Comments

@penguintutor
Copy link

Running Scratch 3 on a Raspberry Pi 5; the GPIO extension does not work.

It is not correctly detecting any of the GPIO ports.

I have tested using Bookworm on a Raspberry Pi 4 which works correctly, and I have also tested wiring of the GPIO on the RPi5 using the same ports with GPIOZero.

To recreate this then you can start with a basic example:

scratch-gpio

This is a basic example showing simple code to test which is added to the default sprite. GPIO 2 is connected via a switch to ground.

When run the Scratch cat will move across the screen whether the button is pressed or not. It should only move when the button is pressed.

I have also tested setting a GPIO pin high to drive an LED which does not work either.

@aallan
Copy link

aallan commented Nov 24, 2023

Duplicate of #91

@penguintutor
Copy link
Author

penguintutor commented Nov 24, 2023

This is not related to the 16KB segmentation fault as far as I can tell.

I am able to get Scratch running both on the 32-bit Raspberry Pi OS. I've also got it working using the 64-bit version using kernel8.img.

It is the GPIO extension which is not working and always gives a "high" when set to an input, and is not working when set as an output.

I suspect this is that the GPIO extension is not aware of the changes to the GPIO using the RP1 and so may need to be updated

@SivaVasudevan0204
Copy link

same for me...i can use other futures in Scratch3 with RPi5...but couldnt use these extension Raspberry Pi GPIO and Raspberry Pi Sense HAT. Anyone can help me out ?

@grega
Copy link

grega commented Feb 22, 2024

The latest 3.30.8 release fixes issues loading the GPIO and Simple Electronic extensions:

64-bit: https://archive.raspberrypi.org/debian/pool/main/s/scratch3/scratch3_3.30.8_arm64.deb

32-bit: https://archive.raspberrypi.org/debian/pool/main/s/scratch3/scratch3_3.30.8_armhf.deb

SenseHAT issues have a fix incoming...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants