Questions tagged [pigpio]
pigpio is a library for accessing GPIO pins as well as other functions including I2C. pigpio has a client-server architecture , which enables you to remotely control GPIO pins.
316 questions
0 votes
0 answers
36 views
How can I configure a Raspberry Pi 3 B+ as an I2C Slave?
I have an Aardvark USB to I2C/SPI adapter and I want to use it to test I2C communications between my Raspberry Pi 3 B+ and Ubuntu computer. Because of the project I'm doing I need the raspi to be the ...
0 votes
0 answers
23 views
lirc - hardware does not support sending
I have setup a freshly installed Raspberry PI OS x64 on a RPI 3. Updated everything and installed lirc. I can see two devices /dev/lirc0 & /dev/lirc1. 1 = receive 0 = transmit I could see & ...
-1 votes
1 answer
405 views
Unable to start pigpio daemon on Raspberry Pi 5 after successful installation
I'm trying to set up pigpio on my Raspberry Pi 5 (aarch64 architecture running 64-bit Raspberry Pi OS Lite). The installation appears successful, but I can't connect to the daemon from Python. ...
0 votes
2 answers
628 views
How to read a PWM signal via GPIO on PI 5?
I have custom-made a compact push-type PWM signal generator that operates on 3.3V power and outputs a 50Hz PWM signal with a duty cycle ranging from 0% to 100%. I power it using the Raspberry Pi 5's 3....
1 vote
1 answer
185 views
What advantage is there in using hardware PWM with pigpio?
Normally I just use the set_servo_pulsewidth() method (which is "hardware timed"). I understand that this pulse width is managed in software, and that to use hardware PWM, I need to use ...
0 votes
0 answers
103 views
Rotary encoder issues
I currently have a 600 p/r encoder hooked up to a pi 4. Seems to work ok, but due to the pi OS (bookworm) it usually misses some counts. From what I read, it seems that there are 2 possible ways to ...
-1 votes
1 answer
211 views
Converting pigpio code to Gpiod library python
I have the following code of pigpio library and I have to convert it's functionality using gpiod library. Where pigpio has a good documentation I can understand the working of previous code using that....
0 votes
1 answer
144 views
ESC, BLDC control with pigpio: set_PWM_dutycycle or set_servo_pulsewidth, and other ESC questions
I am new to Raspberry Pis. I am using a Raspberry Pi 4. I am trying to control a BLDC motor from the BLHeli_32 ESC, using PWM signals output from GPIO pin 18. For this project, I need the motor to go ...
-2 votes
1 answer
200 views
Why did my servo motor break when controlling it from a raspberry pi?
I was trying to control a Tower Pro SG-5010 servo motor using a Raspberry Pi 4, with the python code below, but after working for a minute or so, the servo started not turning for some of the commands,...
-1 votes
1 answer
96 views
RPi4 - pigs bscx SPI slave not working
I have an ESP32 set to an SPI Master with 100kHz, Mode 2 and just want to send 0x19 to the RPi4 as a slave running pigpiod and using shell for output. When I use piscope, everything seems fine for me ...
1 vote
0 answers
509 views
What happens if I exceed the current limit at the GPIO pins of the Pico?
They say that the output current of the Pico GPIO is configurable (2, 4, 8, 12mA). What does it means ? If I choose 8mA, what will happen if I connect a bigger load ? Will the curent be limited to 8mA,...
-1 votes
1 answer
149 views
Delay on Raspi about 58 us and 100 us
Does anyone know how to make delay on raspberry pi until 58 us and 100 us? I am using raspberry pi 4B with python language. I want to make code for sending packet data (I will include my code). I'm ...
1 vote
1 answer
969 views
Future of pigpio library - alive or dead?
Can anyone verify that there will NOT be an update for the pigpio library to work with Pi V5? ( Please, not a guess or opinion). I have used the pigpio library extensively on my projects, Pi Zero ...
0 votes
0 answers
136 views
Replacing WiringPi: how do I send on/off signals to 433MHz sockets with pigs?
I have a 443 sender connected to my RPi3+. I want to replace WiringPi to control my 433MHz sockets on my RPi3+. I used so far the command send 11111 2 0 with send from the raspberry remotepackage and ...
1 vote
1 answer
4k views
How can I generate a hardware PWM on Raspberry Pi 4 using Python?
I need a PWM signal of 25KHz and duty cicle 0-100%. It must be "hardware" becase I don't want to bother the CPU with that. The ony way I found to do that in Python is by using ppigpio ...