Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
68 views

I am trying to set up a simple Raspberry Pi server that sends an OSC message when a button is pressed. My plan was to read the GPIO using a Python script and send the OSC message to PureData, running ...
user31852102's user avatar
0 votes
1 answer
505 views

I have used python for a while now, however, I am new to using a Raspberry Pi and things such as GPIO pins. I recently bought a Freenove Ultrasonic starter kit to help me learn. They have a tutorial ...
George Guise's user avatar
0 votes
1 answer
72 views

I would like to set my rotary encoder initial value halfway up an all positive scale. The documentation describes a parameter value, that I tried to set. encoder = RotaryEncoder(a=14, b=15, max_steps=...
Robert Hadow's user avatar
0 votes
0 answers
347 views

I've been trying to get the gpiozero module into Thonny for a while (for use with a Raspberry Pi) and I've been having lots of issues with it. I installed gpiozero using the package installed inside ...
bchyou's user avatar
  • 48
-2 votes
1 answer
103 views

I am trying to program a practice tree for drag racing. All of the code is working except, I cannot get a separate reaction time accurately from the right lane. If I release the left button first, the ...
mudeki's user avatar
  • 29
0 votes
1 answer
228 views

I'm pretty new to the Python and Raspberry business and am currently working on my first major application. I like gpiozero and the ability to work with events throughout. I would like to make my code ...
MaxWeb's user avatar
  • 169
2 votes
0 answers
185 views

I am using a Raspberry Pi model 4B and a Tower Pro servo SG51R which only turns 180 degrees. I am writing code on the Raspberry Pi to control the servo (which works as I have tested it with my Arduino ...
realhuman's user avatar
  • 309
0 votes
0 answers
144 views

I have a Raspberry Pi with an Display and Buttons (here). And I have a program, that uses the Library (in the appendix) from the Display. The program creates a home screen with dynamic apps. Each app ...
Laurin's user avatar
  • 1
1 vote
0 answers
198 views

Raspberry Pi 5 Using GPIOZERO I want to integrate my sensor together with my linear actuator in raspberry pi 5. So my goal here is just like the doors in supermarket, it opens automatically when ...
vichondrias maquilang's user avatar
-1 votes
1 answer
226 views

I'm trying to make gpiozero play nicely with asyncio in my RPi 4 but ran into an issue that I can't solve. Essentially I'm trying to get the turn signal (clock wise, counter clock wise) af a rotary ...
Doemelti's user avatar
1 vote
2 answers
1k views

When I run this code outside my virtual environment, it works. However, when I try to run it inside my virtual env I receive an error. Code ran: from gpiozero import LED from time import sleep from ...
Stevenson Gerard Eustache's user avatar
1 vote
0 answers
63 views

for a project on a Rpi I need a video to be played fullscreen. I was used to work with Omxplayer but as being deprecated I need now to use VLC. Sadly the video randomly start in a separate windows ...
kar's user avatar
  • 11
4 votes
1 answer
2k views

I'm trying to use gpiozero to control GPIO in a container on Raspberry Pi 5. My simple LED blink application is from gpiozero import LED from time import sleep led = LED(17) while True: led.on() ...
Arnon Lauden's user avatar
0 votes
0 answers
142 views

I am making a weird robot out of k'nex and a pi and I am controlling it over bluetooth with a DS4. The motor The controller The DS4's D-pad will control the movement. I was looking for librarys to ...
user avatar
1 vote
1 answer
110 views

I'm trying to control a robot via a Raspberry Pi, using Python language. If I run the commands from the shell they work fine. If I call them from a *.py script the robot doesn't move. If in the script ...
Leonardo's user avatar
0 votes
1 answer
4k views

I started a project with servos, making a crude robotic arm, with two servos. the issue is, that my servo keeps jittering when stationary, sometimes too much, and can cause the thing to fall over. ...
Anton Chernyshov's user avatar
0 votes
1 answer
49 views

I'm a Python beginner trying to write a script for a Raspberry Pi Zero. The idea is to turn the lights on at dawn and off at dusk, keeping in mind those times change every day. So what i'm after (i ...
Gé Fa's user avatar
  • 96
0 votes
0 answers
393 views

I am trying to use php to execute a python script, and then retrieve the output of that script for later use. I am running a LAMP server on a Raspberry Pi 4 (set up according to this article https://...
feddockh's user avatar
0 votes
1 answer
34 views

Novice in pyhton AND Raspberry prog, i want to create a Quizz-buzz Game. Up to 8 players can play it. To catch the event when a button is pressed, (using the gpiozero lib) i want to do something like :...
Amaury Laroze's user avatar
0 votes
2 answers
395 views

I'm working on an object detection project for IoT using a webcam and servo. In short, when the object detected by the webcam matches the data in the system, the servo will move. Can the webcam be ...
Irham Khalifah Putra's user avatar
2 votes
0 answers
114 views

I'm trying an object detection program using Python language, and want to connect it to the Raspberry Pi's GPIO. for code in decode(frame): decoded_data = code.data.decode("utf-8") ...
Irham Khalifah Putra's user avatar
0 votes
0 answers
111 views

from gpiozero import MotionSensor While true: MotionSensor(17).when_motion() print("motion detected") returns error: Traceback (most recent call last): File "/home/pi/...
Dornito's user avatar
  • 21
1 vote
0 answers
615 views

I'm in the process of making a little stock tracker using a Pi Zero 2 and an e-Paper display. At the moment I've just got 1 button that when pressed cycles to the next stock, then also updates the ...
Dain42's user avatar
  • 11
0 votes
1 answer
291 views

I have a Discord bot running in python on a Raspberry Pi 3B+. The purpose of this program is to send the lab status to our server by the push of a physical button. I've noticed that the program itself ...
Jacob K's user avatar
1 vote
0 answers
124 views

I am trying to use this script with my raspi to open another script when a button is released, and close the opened script when the button is pressed. If i hold the button i get a constant feed of &...
Sam 's user avatar
  • 11
0 votes
2 answers
2k views

I'm trying to control a stepper motor with python code. I know this may not be the best way but please just help me and bear with me. I got this working a while ago I'm pretty sure and I have no idea ...
Daniel Caminero's user avatar
-1 votes
1 answer
1k views

I tried to use gpiozero on my raspberry pi 4, when i try to run the code it doesn't find the module. Any suggestions? I tried downloading it by several different ways as stated on the gpiozero ...
Maarten Baeten's user avatar
0 votes
0 answers
653 views

I am using the gpiozero and pigpio libraries to create a remote gpio control application in python. The pigpio documentation advertises this as a feature, so I know it's possible. Here is the ...
GPorubanTKK's user avatar
0 votes
2 answers
9k views

I am currently trying to setup this code so that when a button in this case button1 connected to a RPi GPIO runs the function c1 and keeps looping that function until another button button2 is pressed ...
floxia's user avatar
  • 77
0 votes
2 answers
143 views

I was hoping someone could help me with this issue. I'm hoping it's fairly simple to fix, but I have been trying for a while to figure this out. I have trimmed my larger code to this, as I believe the ...
domerwannabe's user avatar
1 vote
2 answers
479 views

I am trying to bind two functions to a button, so for example I want to toggle a buzzer and LED with a single button. Is there a way to attach two functions to the same button or can a button only do ...
Audrius Šaučiūnas's user avatar
1 vote
2 answers
542 views

I was hoping someone might have some insight on how to stop a script from continuing to repeat if a button is held (or in my case pressed longer than a second)? Basically i've a button setup on the ...
NormanD's user avatar
  • 11
2 votes
0 answers
318 views

I am trying to create an asyncio wrapper around gpiozero's Button.wait_for_press method. This works most of the time but gives Segmentation fault randomly. import asyncio from gpiozero import Button ...
Pankaj Jangid's user avatar
1 vote
0 answers
136 views

I'm trying to use gpiozero LoadAverage to get the average system load for display on a small OLED plate. The problem is, any time I try to assign LoadAverage().load_average to a variable, it generates ...
Scott's user avatar
  • 8,075
-2 votes
1 answer
1k views

I want to control a gpio pin on the pi (4B 8Gb ram) with gpiozero. I can't find how to simply control a pin... without the library thinking that it is a LED. Coming from Arduino, there you can just ...
IDV's user avatar
  • 1
0 votes
1 answer
1k views

This is on the Raspberry PI. I was able to get the I2C-1 to work properly on the PI using Python. Then I ran another Python script that uses one of the I2C pins as a GPIO using the GPIOZERO library. ...
MK0's user avatar
  • 1
0 votes
1 answer
2k views

Trying to create very simple keyboard and mouse controller using the Raspberry Pi's GPIO pins. Would love to use the code in a educational setting, so trying to build super easy, readable code for ...
Pieter-Jan's user avatar
0 votes
1 answer
489 views

I am using this relay module with Raspi zero. https://www.amazon.co.jp/gp/product/B083LRNXBJ/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1 And I am using gpiozero to control relay. import ...
Jaydeep's user avatar
  • 456
5 votes
4 answers
4k views

I am working on my first Raspberry Pi project while following a course for creating a line-following robot. This is the course. I followed all the instructions and connected the pins as it describes ...
youHaveAlsoBeenABeginner's user avatar
1 vote
0 answers
295 views

First time posting. I'm a novice writing a python program. I'd like to to curses to display outputs from sensors connected to a Raspberry PI and created the follow code as a test to understand what ...
Foiloutboy's user avatar
0 votes
1 answer
845 views

I am currently working on a small project to get started with physical computing with Python - using a raspberry pi. I am trying to make a game using 3 LED's and a push button. The 3 LED's will flash ...
Ahmed M's user avatar
  • 21
0 votes
1 answer
858 views

I'm trying to make a visual metronome of sorts in which I press a button in order to change the bpm. Once the bpm is 85, if the button is pressed once more, if goes back to the default bpm (of 120). t ...
leonedott's user avatar
0 votes
1 answer
92 views

I've made a for loop that will do times tables at the press of a button using gpiozero and want to make a long press exit the loop. Initially I thought I could make a function with a break in it that ...
Munchegod's user avatar
0 votes
1 answer
2k views

I'm working on a weather station (raspberry pi) and I'm using python. I developed a program that is working, but now I decided to update my code and to structure everything (making classes etc.). But ...
JacobSelt's user avatar
0 votes
2 answers
372 views

I am writing a GUI using a camera in kivy, and am unsure why my code is not working. I have a camera feed, and two methods of capturing a picture from it: one triggered by a gpiozero when_pressed ...
Drake P's user avatar
  • 174
1 vote
1 answer
916 views

"This module can only be run on a Raspberry Pi" error when using RPi.GPIO on Raspberry Pi 4b. This error was caused by the default RPi.GPIO version installed with: python3 -m pip install RPi....
Tom's user avatar
  • 21
0 votes
1 answer
278 views

I wrote a simple python dashboard, using guizero and gpiozero, to turn LEDS on and off. I only have a problem with the LEDS, they only turn on for 1 second before they turn off. I tried to use time....
Senne De Winter's user avatar
0 votes
1 answer
281 views

Apologies for the newbie Python post, but a bit of Googling and I still can't find what I need. I have the following Pi Hat; https://github.com/modmypi/Jam-HAT, ...and I'm using their docs to guide me;...
Beefcake's user avatar
  • 821
1 vote
1 answer
406 views

I was working with gpiozero and wanted to use the MockFactory to debug on a local device without Raspberry Pi (4) connection. The last time I used the Mockfactory was with an gpiozero.LED object. But ...
Mistel_Panda's user avatar
0 votes
1 answer
720 views

I am using these docs to get to know websockets from Python. When everything that is happening 'inside' those async methods, it works fine, but how can I send a message outside of that? In my specific ...
Bart Friederichs's user avatar