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.

Filter by
Sorted by
Tagged with
1
vote
1answer
122 views

PIGPIO bit banging UART - SLR to plaintext

I've managed to read UART input by SLRO and SLR commands from pgpiod, however, SLR returns UART bit-banged data in the following format: [number of read bytes] [bytes] http://abyz.me.uk/rpi/pigpio/...
1
vote
1answer
642 views

pigpio: Bad I2C Bus

I'm trying to start an I2c communication with my Raspberry Pi using the pigpio library. It works fine for me with SPI, but I really do struggle with I2C. When I use if (gpioInitialize() < 0) ...
1
vote
2answers
2k views

Problem autostarting pigpiod

On my Pi3B+ I had pigpiod configured to run on boot and I can successfully run compiled c programs; specifically DHTXXD.c which contains:- /* DHTXXD.c 2016-02-16 Public Domain */ #include <stdio....
0
votes
1answer
40 views

Is it safe to use GPIO as GND for multiplexed 7-Segment display or should transistors be used?

I want to control a 4-digit multiplexed 7-Segment + Decimal Point Display (SH5461AS). This diagram (which allegedly comes from the datasheet of this display) suggests to use 4 external transistors to ...
0
votes
1answer
68 views

pigpio long wave results in PI_TOO_MANY_CBS

I'm driving a stepper motor with a PI4B and pigpio / Unosquare.PiGpio library for .NET. I'm using the wave module to modulate the pulse to drive the stepper motor. This works pretty good, until I ...
0
votes
1answer
282 views

Pigpio Wiegand timeout

I have an RFID keypad linked to my Raspberry Pi. It sends out a Wiegand 26 signal when someone presses a key or presents a card/fob. The code is based on http://abyz.me.uk/rpi/pigpio/examples.html I ...
1
vote
1answer
19 views

How can I get different values when reading the config register of an ADS1115 than I had written just before?

I'm trying to read data from an ADS1115 ADC attached to the I²C link of my Raspi 3B using pigpiod, but get nothing. In order to pin down the error, I took a deep look at the config I write beforehand ...
0
votes
2answers
23 views

What is pigpiod's analogon to the ADS1x1x_i2c_start_read () procedure in ADS1115's driver?

To make an ADS1115 ADC module running on my Raspi 3B, I am trying to use the driver supplied by Elektor Labs. The driver requires the user to develop the low-level part (I²C commands) himself and then ...
0
votes
1answer
117 views

PWM with pigpio does not trigger alert function regularly

I combine C examples of pigpio for gpioSetAlertFunc and gpioWaveTxSend working with the same pin. My PWM has several pulses, so I expect alert function to print out a message for me several times. ...
3
votes
1answer
2k views

gpiotest problem and gpio 30

After soldering a header on my Pi Zero W I used pigpio's gpiotest utility to check for problems. I was dismayed that this produced no output and crashed the Pi. After stepping through the tests I ...
2
votes
2answers
296 views

pigpio I2C reply value

I'm sending a command e.g. "wifion" with I2C arduino(master) to RPI(slave) That works perfect but I need to return a confirmation value. How can I send back/reply from the RPI to the Ardunio a value? ...
0
votes
2answers
190 views

433mhz Status sockets project

I've been working on getting a Home automation project going for a while, using a Rasp pi 1b (26 pin header). This is a well trodden path by others, as it is a project to control status remote sockets:...
0
votes
1answer
169 views

Pigpio on callback get value

I currently have some code that I found that constantly outputs a value from a digital caliper. However, I want to modify this so that it is inside a function that can return that is returned from ...
0
votes
1answer
179 views

Using pigpios waves and audio output

I am using a Raspberry Pi 3 B+. I want to play audio through the 3.5mm jack and use PWM at the same time or successively to simulate a IR-Remote. I know that you can't use the hardware PWM while ...
0
votes
1answer
52 views

Get servo position using pigpio

I'm currently developping (improving) an Octoprint plugin that is used to control servo motors with the pigpio library. I always thought that I had to initialize the servos at the start of the code by ...
1
vote
1answer
363 views

Raspberry Pi 4 to Mitutoyo Digimatic interface

I've been trying to interface a Mitutoyo digital caliper. I used the code from here and I think I made the right corrections according to the posters comments but as I checked he was last online in ...
2
votes
2answers
2k views

Active Piezo Buzzer Makes Sound On Both Rpi GPIO Low and High Level Signal

Goal: I want to replace a status-LED with a status-buzzer I use the same code which worked with the status-LED: (1) on start set buzzer to LOW (2) wait some time, than "blink" once (HIGH 200 ms then ...
1
vote
1answer
616 views

use GPIO and/or UART to slow initiate K-line (ISO9141-2) communication with Audi ECU

Related to this question I'm learning to use the Pi GPIO and Python serial to communicate through an IC (L9637D) to interrogate PIDs for alarms etc. I can't get past the slow initiation sequence! ...
1
vote
1answer
711 views

Problem handling failed call to pigpio

I've written some python code using pigpio over a network. I have two questions I can't seem to solve myself: Can I change the timeout when calling the pigpidaemon with pigpio.pi(<ip number>). ...
1
vote
1answer
333 views

PC/Xbox Controller servo control

I am making a project where I want to use a PC/Xbox controller to control my servos with analog sticks. I've been following this tutorial and I've used the code down below to control my servo motor ...
-1
votes
1answer
142 views

generated pulse with delay time before it generated

I want to generate about 16 square wave with delay time initial as the following figure .It mean each pulse generated must delay with a value of delay time before it generated with frequency about ...
0
votes
1answer
225 views

pigpio, update xfer.txBuf

Question refactored: Im currently struggling to understand how to update the transmit FIFO of the bsc_xfer. For reference: Slave side: int main(int argc, char** argv) { int GPIO = gpioInitialise(); ...
2
votes
1answer
725 views

Pigpio not calling Callback for first rising or falling edge

I have some sample code (taken out of my larger program) that regularly (but not always) missing the first rising edge: #!/usr/bin/python import pigpio, time def callback(g, l, t): print("Callback ...
2
votes
2answers
44 views

Full duplex SPI communication with an ADC using the pigpio library

I am trying to read the data from an Analog to Digital Converter (ADC), the ADS1248 from texas instrument using the pigpio library in python with the SPI protocol. When reading the data from the ADC ...
1
vote
1answer
192 views

High Impedance state for GPIO

I've not used GPIO on RPi much. On other hardware, the GPIO pins can be configured in software to be in a "High Impedance" state (Hi-Z). I have assumed that it's possible to place most of ...
-1
votes
2answers
28 views

uart loopback code using pigpioc on buster (3B+)

I have connected pins 14 and 15; ensured that serial is enabled via raspi-config, and swapped bt to the mini UART with this line: miniuart-bt=1 in the config file. I then run this code: int main() { ...
0
votes
2answers
51 views

pigpio.write doesn't properly set the output

I am currently trying to control an air conditioner via GPIO pins on the raspberry pi. For that I need to send a command with a length of 24 bytes via one pin (self.sendPin). I use the following code ...
0
votes
0answers
17 views

pigpio's sending only partial and inaccurate data

I want to send IR signals with pigpio and receive it, all on a raspberry zero w. To send the data, I use the IR Record and Playback script from the pigpio library. To receive data, I use the code from ...
0
votes
1answer
40 views

Compute module CM3+ change GPIO 37 alt function

I am trying to switch the alt functions on GPIO36 and GPIO37 on CM3+. I installed and ran the pigpiod service. I find that for GPIOs greaters than 27 that pigs command returns "no permission to ...
1
vote
2answers
70 views

How can RpiZW interface three SPI ADS1248 ADC, one microSD adapter, and one Ethernet Adapter?

I'd like to connect multiple different SPI devices to a Raspberry Pi Zero W (at least 5), with a few specific requirements. The devices would be, if possible: 1x ENC28J60 Ethernet SPI adapter - this ...
0
votes
1answer
72 views

Failing to read I2C data on LPG10 flow sensor using Python

I'm having some issues reading flow sensor data (Sensirion LPG10, to be precise) using the RPi Zero's I2C bus. I think I have set the bus and wiring up correctly as running 'i2cdetect -y 1' returns ...
0
votes
1answer
41 views

3.5" LCD driver conflicts with UART

I'm using RPi Zero W with 3.5" LCD driver ( here ). Everything works well except the UART. Linux console is disabled and UART is enabled. When video output is on HDMI port, I can send and receive ...
0
votes
2answers
370 views

PWM issues with pigpio and RPi.GPIO

I am using Pi Zero W with latest Raspberry Pi OS. I have a backlight of an LCD that I am trying to control via PWM. If I use RPi.GPIO I get flicker at anything other that 100% (or 0%) duty cycle. As ...
0
votes
2answers
31 views

Pigpio get_pwm_dutycycle returning old values

Using pigpio, I can set the hardware PWM value but getting it seems to consistently give three of the old values, a zero and then the new value, as well as the old value returned with the initial ...
1
vote
0answers
93 views

Pigpio for I2C slave on Pi Zero and the timing of data from the master

I'm using the pigpio library through pigpiod running on a Rpi Zero configured as a slave. The master is an ATMega328PB. On the Pi I am testing using a modified version of the python script provided in ...
1
vote
0answers
161 views

Rpi python with a PCA9685 PWM controller stopping a digital servo motor problem

I have several servos plugged into a PCA9685 board and controlling them with PCA9685.py, and at the end of the script at pwm.cancel() my SF3218MG (270 degree) and 6221MG (180 degree) servos turn off ...
2
votes
2answers
201 views

set specific angle in pigpio set_PWM_dutycycle

I just updated my code to use pigpio instead of RPi.GPIO, the later is working but my robot is trembling like a chihuahua, so I gave pigpio a try. In this piece of code I'm moving my servo, so to ...
0
votes
1answer
55 views

Issues with Throttle Control on ESC with RPi 3B+

I am using the 30A BLDC ESC to control a brushless motor from my Raspberry Pi 3 B+. The documentation for the ESC can be found here: ESC pdf I seem to have successfully calibrated the ESC, but after ...
1
vote
1answer
598 views

GPIO Newbie, can i connect this Crazepony FPV Camera to the Raspberry Pi?

I am a complete noob when it comes to RPi and GPIO I want to connect 2xthis Crazepony FPV Camera 1.2G 1000TVL 1/4 CMOS 2.8mm Lens FOV170 Degree NTSC Mini FPV Camera to the RPi over GPIO pins, but don'...
0
votes
0answers
59 views

Is there a way to detect when a key is released in curses?

I'm currently working on a robot that uses keyboard inputs to move servos. I'm using the curses python library to control the key inputs, and pigpio to control the servos. Is there a way to detect ...
2
votes
1answer
118 views

gpiozero for remote gpio control not work

i just knew how to control gpio from my laptop to desire raspberry pi using gpiozero. so, i following this docs on how to configure the raspberry pi and my laptop to performing remote gpio control. i ...
1
vote
1answer
174 views

Pigpio won't initialise when used by a script started by a service even with root privilege

Problem: I'm writing a Homebridge plugin that needs access to the Pi's GPIO. This plugin uses the pigpio javascript wrapper (https://github.com/fivdi/pigpio) of the pigpio C library (https://github....
1
vote
1answer
42 views

cleaning GPIO pins using pigpio module?

I am using pigpio module to control 12 GPIO pins of the Raspberry pi. WHich includes PWM reading, software PWM etc. I couldn't find a method to clean up the pin at the end of the program. Isn't it ...
3
votes
1answer
57 views

Segmentation faults on every GPIO STR

I am stuck and hoping for a clue. These lines seem to show the issue. It is for a Pi4. .equ IOBASE, 0x7E200000 .equ GPFSEL2, 0x08 //offset to reg for IO Pins 20 - 29 .align 4 LDR R0, =IOBASE //...
0
votes
0answers
42 views

Unexpected behavior with pigpiod after long runtime

for a few months I use python3 with pigpiod (version 71) at Raspberry Pi 3B+ to control some actuators (on/off) and LEDs (on/off/PWM). My dimming algorithm uses the command pi.set_PWM_dutycycle(pin, ...
0
votes
0answers
56 views

Using pigpio and hardware PWM simultaneously

I am using pigpio to read 4 inputs. Everything works fine. And the entire process is a bit long and memory consuming. I also have to use one PWM output. I am planning to use the hardware PWM (pin 12 ...
1
vote
0answers
151 views

pigpio hardware PWM for servos

My goal is to build a pan/tilt system. this works fine: import pigpio pi = pigpio.pi() pi.set_servo_pulsewidth(13,1055) 2 questions: is pi.set_servo_pulsewidth using hardware PWM (I prefer HW PWM) ...
1
vote
0answers
53 views

High-precision time-varying PWM outputs on R Pi

I'e seen a lot of examples of simple PWM on the Pi where relatively high-precision PWM signals at a fixed duty cycle can be generated using WiringPi or pigpio in hardware PWM mode. I have tried ...
1
vote
0answers
98 views

pigpio: Read PWM from RCcontroller then send to ESC via GPIO

Im trying to learn Python by combining my interest in designing an AWD radio controlled car (3D printed, Im decent with Fusion 360 too) with some smarts from Pi/Python to allow things like software ...
1
vote
1answer
443 views

PIGPIO without sudo

I am working on setting up an automated deployment of an executable using the PIGPIO C bindings to a Pi Zero. I copy the executable to the pi (into a directory on pi user's desktop) as expected, but ...

1
2 3 4 5