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
0 answers
804 views

JavaScript library for the HC-SR04 Ultrasonic sensor

I wired the sensor to my Raspberry Pi. My aim is to use JavaScript to get a live reading in the console of the distance, but the module I found has been archived by the author. Code that I found on ...
user12558632's user avatar
1 vote
1 answer
1k 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 ...
Tilen Pintarič's user avatar
1 vote
0 answers
168 views

PiGpio – pass through binary data

I have two ports connected to GPIO on a Raspberry, where I read and send data NMEA sentences to external equipment using the PiGpio library in python, and this is working fine. Now I need to transfer ...
LRB's user avatar
  • 11
1 vote
0 answers
740 views

Raspberry 3 model B v2 I2c slave, ESP8266 I2c master

I try to learn I2C with goal : read my ESP8266 events (I2C master) from my Raspberry 3 model B v2 (I2C slave). I use the Arduino Wire library on the ESP and python pigpio lib on the Raspberry. ...
Ephemeral's user avatar
  • 2,157
1 vote
0 answers
164 views

pigpio library dependencies missing when compiling Radiohead nRF24 library

I am using Eclipse 2019-06 CDT to compile the Radiohead nRF24L01 library (v1.97) using the pigpio interface (v71) with C++. I get the following errors: rpi/rfs_pizw2/usr/lib/libpigpio.so: undefined ...
lachlan's user avatar
  • 11
1 vote
1 answer
2k 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 ...
Owow's user avatar
  • 123
1 vote
0 answers
599 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 ...
Milliways's user avatar
  • 60k
1 vote
0 answers
274 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 ...
Fuzzytrooper's user avatar
1 vote
0 answers
114 views

Writing to a sensor register using i2c bitbanging library not working - PiGPIO library on Raspberry Pi

I am trying to configure a sensor connected to Rpi over an i2c bus. I am using PiGPIO library with Python to do this. To configure the sensor, I need to write a certain value to some registers and ...
abhay gupta's user avatar
1 vote
2 answers
733 views

ESC Initialization using Pigpio

I have been tasked with a little RC demo at our trade counter, and I need to control a few servo's and a ESC to run a motor. I have been trying to fumble my way around to no real avail, I have used ...
user103620's user avatar
1 vote
1 answer
852 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 ...
m.f's user avatar
  • 11
1 vote
1 answer
210 views

RFID RC522 reader pigpio check error

I'm trying to connect Raspberry PI 3 B+ with RFID-RC522 (following this guide https://www.raspberrypi-spy.co.uk/2018/02/rc522-rfid-tag-read-raspberry-pi/). But I got stuck at the hardware ...
ojkuj's user avatar
  • 13
1 vote
2 answers
779 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? ...
user3435167's user avatar
1 vote
1 answer
119 views

Strange signals on GPIO 14 & GPIO 4 when ribbon cable is attached to GPIO

I'm using RP3B. I'm using piscope, as I don't have an oscilloscope available. After I boot my RP3B with nothing attached to the GPIO port, if I start pigpiod and piscope, I see all my GPIO with a ...
ireallydontknow's user avatar
1 vote
0 answers
224 views

pigpio monitor GPIO not detecting change correctly

I am having trouble detecting a level change on pin 16 (or any other pin). My script is as follows: import RPi.GPIO as GPIO from time import sleep GPIO.setmode(GPIO.BOARD) GPIO.setup(16, GPIO.IN, ...
rrz0's user avatar
  • 123
1 vote
1 answer
324 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(); ...
Ebya's user avatar
  • 113
1 vote
0 answers
153 views

Generate multiple waves with specific number steps in a cycle wave

I want to generate a square wave has frequency 40khz on multiple GPIO pins of Raspberry Pi3 with time in order to start to generate wave (phase delay) is different. I have used a function of PIGPIO ...
Gab's user avatar
  • 57
1 vote
2 answers
2k views

HC-SR04 distance = 0 using pigpio in C++

As the title says, the distance in my sonar is giving me 0, I think I found out the problem, but the code was working fine with wiringPi. Functions: I only changed names to be equal to Arduino ...
Pedro Gomes's user avatar
1 vote
0 answers
329 views

How to configure pigpiod to prevent being affected by aplay

I'm using the pigpiod daemon and Python to output IR signals. I'm using raspbian jessie and rpi 3 model b gpio22 to output to leds. After starting the daemon by sudo pigpiod, it works fine and ...
kentwait's user avatar
  • 111
1 vote
0 answers
2k views

Cannot get pigpio PWM to work with an AC dimmer module

I am using an AC dimmer module to dim a 240V light. I would like to use node.js so I am using the pigpio module. The script is not working as expected as the light bulb goes straight to 100% when I ...
Martin's user avatar
  • 113
1 vote
0 answers
255 views

how to expand GPIO pin for raspberry but still can use pigpio library

If I want to expand GPIO pin that can use as input/output on raspberry via I2C is whether I can use these pin with pigpio library?
Xúc Cảm's user avatar
1 vote
0 answers
125 views

Why was my last AT command routine is not viewed in the output?

As I was using pigpio ,so that I can use the GPIO pins as UART or bit banging the serial. I am using a SIM900 gsm module. Here is the code: import pigpio import time import sys TX=23 RX=18 baudrate=...
papacuerpz's user avatar
1 vote
1 answer
203 views

Serial communication with two devices at once using pigpio?

I'm using the raspberry pi pigpio module to communicate with two other devices at once using two separate threads. The devices are connected to two different pairs of gpio pins. I need to adhere to ...
Sam's user avatar
  • 13
1 vote
0 answers
252 views

Pi2 + pigpio + overclock + spi_read

I have an app reading temp + humidity from an AM2301. Using pigpio. Python 3.4.3. Newest firmware (as of 8/14/15) using rpi-update. Code is below. Breaks when overclocking the Pi to anything other ...
ifermon's user avatar
  • 674
0 votes
3 answers
547 views

Simple float switch sensor frying GPIO pins, while the other doesn't? Hydroponics system

I'm building this mostly finished hydroponics system. It's a surge tank build. Surge tank looks like: (that's nutrient water, it's got electrolytes that plants crave) Inside that bucket are two ...
Slight's user avatar
  • 103
0 votes
2 answers
624 views

How to continiously monitor Wiegand readers using pigpio library?

How do I need to modify the C example from http://abyz.me.uk/rpi/pigpio/examples.html for continious monitoring of Wiegand readers? I need to run it as background process. For now I have a code: #...
Paul Serikov's user avatar
0 votes
2 answers
71 views

How can I restore the hardware state after pigpio wave output?

The following example program sends a short pulse on GPIO 14 using pigpio. import pigpio pi = pigpio.pi() # connect to Pi pi.wave_add_new() pi.set_mode(14, pigpio.OUTPUT) wf=[] wf.append(pigpio....
Diomidis Spinellis's user avatar
0 votes
1 answer
1k views

How fast are C & Python libraries

I ran some code to monitor Pi hysteresis which involved mirroring a GPIO input to output. I was surprised as how slow the code was, so wrote a C version. Although this was slightly better it was still ...
Milliways's user avatar
  • 60k
0 votes
2 answers
690 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 ...
Jens's user avatar
  • 11
0 votes
1 answer
1k views

AttributeError: module 'RPi.GPIO' has no attribute 'ChangeDutyCycle'

Starting Day 2 troubleshooting this error. Code used to work on a previous rasp pi 4B but doesn't on a new one so I'm assuming I'm missing some breaking change. Problem: Using import RPi.GPIO as GPIO ...
bsautner's user avatar
  • 218
0 votes
2 answers
1k views

Bullseye Can't initialize pigpio library

Help with implementing pigpio on Raspberry Pi Zero 2W, running 64 bit Bullseye... Following the instructions for installation of the pigpio library, found in https://gpiozero.readthedocs.io/en/stable/...
Gordon Shephard's user avatar
0 votes
1 answer
148 views

PureData crashing with pigpio

This morning, I wrote a very quick external for PureData which allows it to read from an MCP3008 via pigpio. This works well until the DAC is enabled, upon which PureData almost immediately crashes ...
nullPainter's user avatar
0 votes
1 answer
58 views

Is it possible to use my own settings for the hardware clock on pigpio?

I would like to use my own clock settings (integer, fractional, and mash) instead on the one that is autogenerated by the function gpioHardwareClock. Is it possible to do that with pigpio ? If not ...
DrakeJest's user avatar
0 votes
1 answer
209 views

pigpio gpiosetAlertFunc keep missing pulses that are measly 150Hz

I am using pigpio's gpiosetAlertFunc() to listen for a falling edge on a pin but it keeps missing like 80% of the pulses. the pulses are 400ns long that repeats every ~7ms. Im guesing that the pulses ...
DrakeJest's user avatar
0 votes
2 answers
173 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 ...
Neppomuk's user avatar
  • 452
0 votes
1 answer
408 views

Servo motor keep shaking while using software PWM to drive

Greet everyone, I am using JavaScript with pigpio to develop my learning project. How come my servo motor keeps shaking when I drive it by program PWM? codes are posted as follow: var servo1GPIO ...
mannok's user avatar
  • 103
0 votes
1 answer
524 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 ...
CrimsonKnights's user avatar
0 votes
1 answer
582 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 ...
BLOODHOUND's user avatar
0 votes
1 answer
419 views

enable software i2c on raspberry pi gpio

I am trying to interface more than one sensor with Raspberry Pi Zero W, which communicate using i2c interface. So far I am able to connect sensor to dedicated i2c and read the data. Want to know ...
rp346's user avatar
  • 125
0 votes
1 answer
249 views

How can I use the RPI3 to generate a sawtooth with frequency around 20kHz?

I am trying to generate a sawtooth waveform from the GPIO, the frequency is high, 20 Khz. is pigpio library my best option?
engahmedtg's user avatar
0 votes
2 answers
4k views

How to make a button toggle a led?

I have some code which turns an led on when I hold the button. But only when I am pressing it. Could somebody help me so when I press the button then the light stays on and if I press it again the led ...
Concon138's user avatar
0 votes
2 answers
3k views

AttributeError: 'NoneType' object has no attribute 'send' pigpiod

So I create an another program that can run stepper motor clockwise and counter clockwise with a ramp up and ramp down in there and adding limiter switch on GPIO 16 and 26 to stop the pi....
Jan sebastian's user avatar
0 votes
2 answers
640 views

After switching from pigpio to pigpiod, how can SPI write operations display random bit errors?

I've already written and tested some code using pigpio to drive a Futaba GP9002A VFD. When using the pigpio lib directly, it worked almost absolutely fine, but after migrating to the pigpio daemon (...
Neppomuk's user avatar
  • 452
0 votes
1 answer
3k views

Pigpio setting mode to BCM or BOARD

Is there any option in pigpio library that sets pinout mode as BCM or BOARD ? I decided that in pigpio default is BCM but in RPi.GPIO there is an option to change that like GPIO.setmode(GPIO.BOARD) ...
CanSevgi's user avatar
0 votes
1 answer
707 views

Speeding up updating of GPIO pins

I have a program where each step, two GPIO pins have their duty cycle updated (I'm using pigpio). I'm running the program for millions of steps (think 50 to 100 million) and running the PWM outputs ...
auden's user avatar
  • 233
0 votes
1 answer
2k views

PIGPIO wiring, basic i2c slave questions

I'm toying with pigpio and I can't find some informations: 1) I'm currently using a arduino uno to send bytes (as master) to a Rpi3 as slave, I currently use BCM2 as SDA (A4 on Uno) and BCM3 as SDL(...
Ebya's user avatar
  • 113
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
2k views

Try & Except fail to catch OSError

I'm trying to check if remote machine (RaspberryPi) runs pigpiod- a daemon needed down the road to control its GPIO, using Python. if remote/ machine does not run pigpiod an error is displayed : >...
guyd's user avatar
  • 578
0 votes
1 answer
3k views

Pigpio With Pi 3 Controlling Two Servos

I am brand new to using the GPIO pins on the Raspberry PI and I'm having a lot of trouble trying to control two continuous rotation servos using pigpio with python and a keyboard. Servos here: https:...
Zack's user avatar
  • 3
0 votes
1 answer
2k views

Error occurred "unhandled signal 11, terminating" in executing code with PIGPIO

I would like to connect GPS Module by using PIGPIO. but I can't. My code that I show below gets "Segment Violation", but I have no idea. Here is GPS spec. GPS Receiver chip->MT3339 ...
NEWBIEEBIEE's user avatar

1 2 3
4
5
7