Questions tagged [gpiozero]

This tag should be used for questions relating to Gpiozero, an open-source interface library to control GPIO devices on a Raspberry Pi.

General Purpose Input/Ouput (GPIO) devices on a Raspberry Pi can be controlled using Gpiozero.

More details can be found in the Gpiozero documentation and the main GitHub repository for the project.

83 questions
0
votes
1 answer

MicroPython - is it compatible with gpiozero ?RPi.GPIO?

I'm making an IOT project for home automation, including a dozen of Rpi Zero-W using Strech-Lite operating syste, to control and report its Sensor and/ or relay's status. I believe a ESP32 Ebay link would be much more reliable since it is a…
guyd
  • 693
  • 2
  • 14
  • 32
0
votes
1 answer

Raspberry pi gpio pins are stuck in the "in" and "high" mode

I am running Raspbian Stretch on a Raspberry Pi 2. I was trying to build a basic obstacle avoidance rover and ran into a problem with the motors. Schematic found here: I don't have the dc-dc converter and I have a LED with a 330 ohm resistor…
0
votes
1 answer

python hangs even with exception handling

I've got a raspberry PI attached to a MCP3008 ADC which is measuring an analog voltage across a thermistor. I'm using the gpiozero python library for communication between the PI and ADC. My code below runs for several minutes and then spits out an…
0
votes
2 answers

Unable to import gpiozero

I just installed the full & latest (November 2017) raspbian to try out gpiozero. My simple python3 script that I try to run is this: python3 test.py from gpiozero import LED, Button from signal import pause led = LED(17) button =…
Sven Haiges
  • 2,636
  • 5
  • 42
  • 54
-1
votes
1 answer

Python code doesn't execute. No errors showed (raspberry pi)

I had a problem with the pigpio pin factory But with time I think I solved a problem , but basically my code runs, but it doesn't execute properlyI'm not sure what I did wrong it just ignores How would I fix it? just this!!!! Python 3.7.3…
-1
votes
1 answer

ModuleNotFoundError: No module named 'gpiozero'

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 documentation page. Don't know what to do now.
-1
votes
1 answer

How to send a websocket message from a non-async method?

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 example, I am getting a button_pressed event…
Bart Friederichs
  • 33,050
  • 15
  • 95
  • 195
-2
votes
1 answer

How to control a GPIO pin on the raspberry pi (general use) (python script)

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 use digitalWrite, does this library have anything…
IDV
  • 1
  • 3
1 2 3 4 5
6