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
0
votes
1answer
21 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
20 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 ...
1
vote
1answer
25 views

How can you use pigpio's set_servo_pulsewidth with an i2c address?

I've tried to use hexadecimal for the GPIO address to see if it would work with GPA0 on the MCP23017 import pigpio import time pi = pigpio.pi() gpio_num = 0x21 while True: pi....
1
vote
1answer
45 views

Bipolar stepper + L298N

I have a bipolar stepper motor with the following datasheet And a L298N driver wired like this: I tried the 3 NPM packages available for the L298N driver, but none of them work with my set up, the ...
0
votes
2answers
46 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:...
2
votes
0answers
25 views

Problem with PI GPIO using BB SPI

I've developed a PI Python application to replace an old control card which sent bit banging out to daisy chained LED drivers. It all works fine except when I need some fast updating of the LED's. ...
1
vote
1answer
506 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
26 views

How can you use pigpio to set a specific position for a continuous rotation servo?

Running my code with a normal 180 degree servo will move it to a user-specified angle and then hold it there. But when using a continuous rotation servo, it keeps rotating constantly for 500 <= ...
0
votes
1answer
158 views

nodejs app running pigpio - error Can't lock /var/run/pigpio.pid

I am trying to run my Nodejs app but keep getting error: initInitialise Cant lock /var/run/pigpio.pid. I tired remove the the file with rm /var/run/pigpio.pid but the error remains. I have read tons ...
0
votes
1answer
22 views

pigpio.error: 'no permission to update GPIO' Only on some pins

I am having an issue where I get this error 'no permission to update GPIO'. whenever I try to address certain gpio pins. I looked at other posts that had similar issues but they seemed to have either ...
0
votes
1answer
33 views

pigpio bsc_xfer_t char problem

I am implementing an I2C slave in c with PIGPIO and I have run into a snag. I want to send numbers. The struct is typedef struct { uint32_t control; /* Write */ int rxCnt; ...
0
votes
0answers
42 views

A stop job is running for Daemon required to control GPIO pins via pigpio

Since I installed Buster I have experienced slow shutdown. A message is displayed:- A stop job is running for Daemon required to control GPIO pins via pigpio and persists for 90 seconds. I have ...
2
votes
2answers
145 views

AC mains dimmer dimming 7W LED lamp problem (RpiZero + MPDM V4.1)

I'm trying to dim a 7W LED with a Raspberry Pi Zero for home automation. However it doesn't work as expected. I followed this tutorial : https://www.youtube.com/watch?v=wqY4-gHqvZI . I have the exact ...
2
votes
1answer
894 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
222 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
360 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
21 views

What is the frequency and cycle length of the pigpio library?

I've got a raspi 3b with an esc and a brushless motor attached. I can run the motor using pigpio the following commands: # First start the pigpio daemon sudo pigpiod # calibrate the esc pigs s 12 ...
0
votes
2answers
71 views

Why are some services only listening on IP6

I have previously asked a question Cannot remotely connect to pigpiod (now deleted) but never resolved the issue. This is a more generic question. sudo ss -lntp State Recv-Q Send-Q Local ...
1
vote
1answer
107 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 ...
0
votes
1answer
127 views

Python: fail to execute gpiozero Button command inside Class

while this code succeeds: def press_on(): print('press') HWButs = gpiozero.Button(21) HWButs.when_pressed = MainApp.init_buts.press_on inside a class, pressing the ...
1
vote
1answer
51 views

PIGPIO problem with delay on scripts

I am trying to run an old Raspberry Pi 2011.12 as a server to control a RGB LED strip. To this I am using PIGPIO since this is the best solution (RPi.GPIO is software based, which creates flickering). ...
0
votes
1answer
127 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 ...
1
vote
1answer
342 views

“initMboxBlock: init mbox zaps failed” when using pigpio library in a daemon using node.js

I am writing a daemon using node.js, running under systemd and it will monitor the status of the power supply voltage on a raspberry pi 2 B. I am using the node.js wrapper to the pigpio library The ...
0
votes
1answer
50 views

Wireless doorbell using gpiod

Good Morning, I have a non issue that I am just curious how its working. So I have a wireless doorbell that I built. It works using the gpiod and remote gpio. So I have a chime unit that I built with ...
0
votes
1answer
164 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
216 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 ...
1
vote
1answer
65 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/...
8
votes
2answers
7k views

Raspberry as an I2C SLAVE

Does anyone know how to setup a Raspberry Pi 3 as an I2C slave (in C++)? Before someone answers saying that it's not possible, it is possible. Here is a link that says it is possible (pigpio ...
0
votes
1answer
500 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
1answer
40 views

Counting Two Pulses Generated By Rotating Motor

I want to Count pulses based on some Conditions which are: (1) Count all the rotations generated during motor Rotations. (2) Count all the motor rotation pulses when an additional signal is enabled. ...
0
votes
1answer
39 views

PIGPIO not detecting I2C device but i2cdetect -y 1 detects it and I can even run my codes well in SMBUS

I have a Raspberry Pi 3 Model B+. My I2C device which is this (exact breakout board) isn't getting detected through PIGPIO Library. The sensor works very well with the example codes which uses SMBUS ...
2
votes
2answers
106 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
1answer
59 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. ...
1
vote
1answer
32 views

Python boot run script act strange with GPIO (software serial)

I put my python script as boot running(rc.local) on my headless Rpi 3B+. It meant to controls three identical devices through serial cable and I am using GPIO PINS[17,27,22] for the software serial. ...
1
vote
1answer
57 views

Not able count Pulses Generated by PLC

I am using the below code to capture the pulses and count pulses for a specified interval but the output not as what i expected. For every pulse it is giving uncertain value. The pulse i want to ...
1
vote
1answer
67 views

GPIO PWM. ESCs still run different after calibration

I’m putting a quadcopter together. I’m using a python script to calibrate the ESCs... they beep like a blinking led when I give them power. Then I run the calibrate script and they give me the proper ...
2
votes
1answer
72 views

Is there a way to slow down servo movement speed?

Despite searching I was not able to find an answer to this question. I have a servo attached to a pin that moves an arm back and forth. The problem is that it moves too quickly. Is there a way ...
0
votes
1answer
61 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
2answers
28 views

Pigpio equivalent of GPIO's event_detected() function?

Is there an pigpio equivalent to GPIO's event_detected() function? I need something that is constantly watching for a button press. The code I currently have doesn't consistently detect it (python ...
1
vote
3answers
3k views

Alternatives to LIRC for transmitting IR codes

Alright, I've managed to get LIRC to work on a Pi 3, but not on a zero w running raspbian lite. I have the infrared codes I want to send (e.g 0x40BF or 0x8877) and I'm wondering if there's another ...
0
votes
1answer
2k views

Software serial send with PIGPIO sending garbage

I have been using the excellent PIGPIO (http://abyz.me.uk/rpi/pigpio/python.html) to communicate with two RFID readers. One is attached to the inbuilt UART while I have been using PIGPIO to connect ...
0
votes
0answers
87 views

Raspberry Pi Zero as master communicating with multiple Raspberries Pi Zero over I2C

The project I'm working on involves in total 8 raspberries, one master and all others acting as slaves. The goal is to write to all Pi's and read back their answer. Communication using the master ...
0
votes
0answers
25 views

PiGPIO inconsistent when using servo

so I will do the following command once and it will work and then the same sequence of commands never works again. Any help is appreciated, thanks! The commands are to first arm some ESCs then ...
2
votes
1answer
437 views

Is Joan's pigpio rotary Encoder C library callable from python ctypes?

I'm using Python class Rotary Encoder to implement a Position PI on a stepper motor and using this encoder H6BM-1000-500-IE-S-H The code is working quite well, however I'm getting an error of ~5mm ...
0
votes
0answers
31 views

Busybox init, is it possible to delay execution of init.d script conditionally?

I would like to boot into a python app. My python app has the excellent pigpiod daemon as a prerequisite. I am using Busybox init process. I have a pigpiod launch script /etc/init.d/SXpigpiod and my ...
2
votes
1answer
40 views

CE1 not going low for pigpio.spi_open() with flags

I'm attempting to modify joan's test script (https://raspberrypi.stackexchange.com/a/44320/42126) for an RPi SPI master to communicate with an Atmega328P slave. I cannot change which GPIO pins I have ...
4
votes
0answers
365 views

How fast can GPIO pins toggle on the Pi 4?

Benchmarking of the Pi 4 using the Python GPIO Zero library shows a significant increase in the frequency of toggling a GPIO pin on and off compared to previous models. This result is attributed to ...
-1
votes
1answer
162 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
0answers
62 views

Interrupt issue - Wiringpi and pigpio show different values for pin

I am having an issue with raspberryio/wiringpi interrupts. A lot of extra interrupts are generated. My configuration is as follows: Physical pin 16: Set as input Pulldown resistor Interrupt ...
0
votes
0answers
224 views

pigpio python serial wave output not correct

I am trying to use joan's pigpio to write a serial command on my Rpi 3 gpio 14(UART0TX).My goal is to write a command from the pi to another device. When i send the command i do not see the ...