Questions tagged [gpiozero]

For questions relating to the python gpiozero library.

Filter by
Sorted by
Tagged with
0 votes
1 answer
117 views

MC3008 vs. Justboom amp

I just ordered the Justboom AMP Zero pHAT. My project needs reading analog signals, too. So I also ordered a MCP3008 in order to convert from analog to digital. My question: is it possible to connect ...
einsA's user avatar
  • 101
0 votes
1 answer
317 views

Running Flask on Pi Zero getting uneven PWMLED

This is my first trial run using a Raspberry Pi Zero W to run RGB LEDs following this tutorial: https://dordnung.de/raspberrypi-ledstrip/ I've completed the tutorial, have everything wired up, and ...
J.M.'s user avatar
  • 1
0 votes
2 answers
4k views

function button.is_pressed from gpiozero do not work

Im working on a university project with raspberry and gpiozero. I need to manage the button response to take diferent actions. The problem is that de function button.is_pressed its always true (even ...
m4verick's user avatar
0 votes
1 answer
585 views

GPIOs of Pi3 not working

Problem Description I have experienced some problems with the GPIOs on my Pi3. From one day to another the MotionSensor and the LED strip that where connected to the GPIOs stopped working while the ...
Pascal's user avatar
  • 103
0 votes
1 answer
725 views

Ultrasonic program in raspberry pi stops working after some time

Below is the code I'm running on my raspberry pi zero to detect the range by Ping))) ultrasonic. after some time (ex: 300 pings) the program uses most of the CPU (90%) and then it stops working, is ...
Mahdi's user avatar
  • 5
1 vote
1 answer
196 views

Upgrade to gpiozero 1.4 on Jessie breaks gpiozero

On a stock Jessie install, gpiozero works. E.g. >>> from gpiozero.devices import pin_factory >>> print(pin_factory) <class 'gpiozero.pins.rpigpio.RPiGPIOPin'> I then upgrade ...
Dribbler's user avatar
  • 111
3 votes
4 answers
5k views

Using GPIOZERO button for 2 functions (Long/Short press )

I'm trying to make a dual use of 1 button: first use ( short press ) to exectute function "A", a second use ( long press ) to execute function "B". function A is executed after button1.when_pressed = ...
guyd's user avatar
  • 578
2 votes
1 answer
564 views

PiCamera, PIR Motion Sensor 'Attribute Error: __exit__'

I'm pretty new to both Python and utilizing the GPIO pins on my Raspberry Pi. I am trying to make a "trail camera" that will take pictures of birds when they land on the branches of the trees just off ...
OnlyDean's user avatar
  • 123
0 votes
1 answer
74 views

Raspberry Pi Zero get 5 V directly from the input

I have a Raspberry Pi Zero and I would like a tiny fan which draws 90 mA. Obviously, I can't connect it to the GPIO pins and therefore I need to get 5 V from the input cable. Before I ...
Meletis's user avatar
  • 23
0 votes
1 answer
1k views

gpiozero: Ignore false positives/negatives

I've seen several threads where users experience some noise fluctuation in the GPIO input readings, for instance, without any physical change to a Button's state, the events when_released/when_pressed ...
ffleandro's user avatar
  • 113
0 votes
2 answers
358 views

Weird LED behaviour

I run my program: from gpiozero import PWMLED ledpins = [2, 3, 4] z = 10 for i in ledpins: PWMLED(i).blink(on_time=1/z, off_time=1/z, n=3) I tried it and got: Exception Exception ...
R Harrington's user avatar
3 votes
2 answers
3k views

Python parallel processes for raspberry pi zero...possible?

I'm trying to setup a concurrent photo capture and immediate email of said capture (triggered by a PIR motion sensor) in a Python script. Basically what I'm trying to accomplish is to have my Pi take ...
Dai San's user avatar
  • 105
1 vote
1 answer
3k views

Python picamera module: Interval photo capture while recording video

So I've been trying to figure this out for a while now, without success. I am using a RPi Zero Rev 1.3 model and have connected it to the 8MP RPi camera along with a PIR motion sensor. What I'm ...
Dai San's user avatar
  • 105
0 votes
2 answers
133 views

pi camera will not work with Pi zero

My Pi camera will not work with the Pi zero using the same python code I use on my Pi 3 or Pi 2 Is there something I am missing?
forbes's user avatar
  • 1
0 votes
1 answer
1k views

GPIOzero motor backward and forward pins

When creating a new motor object from the GPIOzero module like this: import gpiozero, then motor1 = gpiozero.Motor() you need to specify the backward and forward pins. What does that mean and what if ...
sir_ian's user avatar
  • 980
4 votes
1 answer
2k views

GPIOZero button not working

I've been getting into GPIO recently with the GPIOZero library but when i first tried it today it completely failed. As my first foray into GPIO i set up a circuit to light up an LED with the push of ...
sir_ian's user avatar
  • 980
2 votes
1 answer
3k views

gpiozero button callback running only once

I'm getting started with a project on a Raspberry Pi (never done anything with RPi or python before, so it's all new to me, but I've done a little Arduino stuff). I'm trying to create a very simply ...
rothloup's user avatar
  • 173
2 votes
1 answer
6k views

Unable to locate package python-gpiozero

I've just run apt-get update and apt-get upgrade on Raspbian, but when I try apt-get install python3-gpiozero python-gpiozero it can't find either package. Can't find any evidence of ...
Hippyjim's user avatar
  • 175

1 2
3