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
2answers
536 views

Is pigpio wave generator suitable for Position PID?

Is pigpio wave generator suitable for PID applications (constantly changing its value , on PID update) It is a position PID for a stepper motor with a pulse train driver , it works , however the motor ...
0
votes
1answer
827 views

pigpio: PWM range for quadcopter ESC(electronic speed controller) command

Good day, I am currently working on a quadcopter project and am currently using the pigpio library for the PWM used to command the ESC's of the quadcopter motors. Will increasing the range of the ...
0
votes
1answer
32 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 ...
0
votes
1answer
65 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
79 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 ...
0
votes
1answer
2k views

OSError: [Errno 121] Remote I/O error or pigpio.error: 'I2C read failed' on MPU6050

So I use MPU6050 to get acceleration from stepper motor linear rail movement(steper motor working in thread, I use pigpio for the motor) by make the MPU6050 can work on threading and it can show data ...
0
votes
2answers
735 views

How to read a specific register using spi_xfer from PIGPIO

I am building a single channel LoRa gateway using the RFM95W module. I am using this github repo; single_chan_pkt_fwd, as a guide. However I am not yet using a PCB, even though it is very difficult, ...
0
votes
1answer
459 views

Slow i2cdetect command response after running a program using the pigpio library

System: RPi # B OS: Ubuntu-16.04 Ma'te desktop environment Problem: i2cdetect -y 1 command response ultra-slow after running a program using the pigpio library in a program. ...
0
votes
2answers
96 views

Monitor data sent to shift register

I am trying to build a remote control for a jacuzzi using RPI. For that I have been analysing the data between the display and the main board. I found that the display holds 2 shift registers 74HC595 ...
0
votes
1answer
1k views

How to get a power output from raspberry Pi 3 B+

I'm pretty new to these electronics so i'm trying to figure out if I could take a 5V power output from the Pi3 B+. I'm such a noob that I can't figure where the GND and a GPIO with a 5V could be?
0
votes
1answer
91 views

Stuck inside socket.io

With the following node server I drive the motor speeds with a slider on a web page using socket.io. I would like to stop the motors when the robot touches a wall: var express = require('express'); ...
0
votes
1answer
540 views

Strange return from pigpio i2c_read_device

I am using an air quality sensor with an I2C interface (datasheet: https://docs-emea.rs-online.com/webdocs/14cd/0900766b814cdbb8.pdf). When running the below code asking for less than 8 bytes I get ...
0
votes
1answer
2k views

RPi 3 with I2C as a slave, can be read by the master? [closed]

RPI 3-B, working in pyton with PIGPIO as a slave I2C device, can be read ? I'm actually using RPi as a i2c slave, master can write on it and RPi reads the buffer successfully. But could I write ...
0
votes
1answer
315 views

Can't read the right channel from MCP3008 in C++ using pigpio

I'm trying to use an IR sensor with Raspberry Pi and I have this function to read a specific channel from the ADC MCP3008. When I try to read any other channel but channel 0, it doesn't work. What I ...
0
votes
1answer
90 views

How can I run pigpiod and gpsd on the same machine?

I've now got an Ultimate GPS board attached to the UART, and use both the GPIO pins, and the SPI interface by addressing the pigpio library. The pigpiod docs tell me that pigpiod would control the ...
0
votes
1answer
621 views

Compute Module 3 + PIGPIO SPI, Clock signal but no data

So I'm trying to write to as spi eeprom using the pigpio library, but I have the problem of only the clock line going active, none of the data or select lines. I'm debugging the signals with the ...
0
votes
2answers
411 views

PIGPIO PWM Unreliable

I have written a small C application to do PWM for some motors connected to a Raspberry Pi. I am using the PiGPIO library. The code as follows: int[] FWD = {MOTOR1_FWD, MOTOR2_FWD}; int[] BCK = {...
0
votes
1answer
2k 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:...
0
votes
1answer
3k 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
1answer
658 views

How many i2c buses?

My project involves talking to 16 IMU's at once. I can do 2 MPU6050 on one bus because of addressing, but I pretty much need 400kbps for throughput. I was looking over the pigpio library to see if I ...
0
votes
1answer
1k views

Error occured “unhandled signal 11, terminatiing” in executing code with PIGPIO

I would like to connect GPS Module by using PIGPIO. but I can't. My code that show in below are occuring "Segment Violation",but I have no idea. Please help me. Here is GPS spec. GPS Receiver chip-...
0
votes
1answer
2k views

pigpio.start() error

Why am always getting this error when calling pigpio.start(): Traceback (most recent call last): File "/home/pi/aa.py", line 9, in <module> pigpio.start() AttributeError: 'module' object ...
0
votes
1answer
70 views

GPIO Pin 4 flashes even when it should be off

I have a raspberry pi B v1.1, with raspbian. I am using GPIO pins 4,17,27, to illuminate an RGB LED. My problem is that GPIO Pin 4 flashes randomly. Ok, not exactly randomly, it seems to flash ...
0
votes
1answer
1k views

How to turn off / let float a servo attached to GPIO

I'm driving servos attached to GPIO, powered from external PSU and using PIGPIO Library through node.js - everything works just fine but I don't know how to completely "shut down" the servos - once ...
0
votes
1answer
925 views

HC-SR04 ultrasonic sensor reading becomes highly unusable when PWM is active

Good day I am trying to sample distance using a sonar/ultrasonic sensor for altitude measurement. When the PWM is not active, the sensor gives accurate measurements in centimeters, however with the ...
0
votes
1answer
519 views

Any way to run Python and Node.js in unison?

I am trying to make a led strip be run by my Pi, and with that, have a web output as well. I'm currently using this guide in order to control the LEDs (I know an arduino would be ideal, but I'm trying ...
0
votes
2answers
3k views

Pigpio initialization failing with init mbox zaps failed

I have been writing some pigpio apps and all of a sudden, they all start to fail. The error I get is: initMboxBlock: init mbox zaps failed The error is thrown from calls to gpioInitialise() My ...
0
votes
0answers
12 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 ...
0
votes
0answers
20 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
32 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 ...
0
votes
0answers
103 views

Problem with pigpio library and infrared emitter

I have installed an infrared emitter with the following tutorial: https://www.instructables.com/id/Zero-to-Air-Conditioner-Controller-With-Raspberry-/ But I had trouble running the LIRC commands, so ...
0
votes
0answers
72 views

Pigpio Hardware PWM callback is slow

I am trying to drive a servo motor with Raspberry pi. I have selected pigpio library to access GPIO. I need to send a specific number of pulses with a given frequency. But when I callback a function ...
0
votes
1answer
33 views

PIGPIO instance in an object: object has no attribute 'pi' [closed]

How the heck do I create and use a pigpio instance inside an object? I feel like this should work? import pigpio class MyClass(object): def __init(self, pin_wake=8): self.pi = pigpio....
0
votes
0answers
38 views

Raspberry Pi controlled RGB LED strip very dim

I have followed this tutorial https://dordnung.de/raspberrypi-ledstrip/ to hook up my raspberry pi zero w to a 12V rgb led strip. The lights come on and are able to be controlled using pigpiod, ...
0
votes
1answer
46 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
79 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
2answers
103 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
60 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
1answer
44 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
2answers
87 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 ...
0
votes
0answers
174 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
28 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 ...
0
votes
1answer
120 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
0answers
52 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 ...
0
votes
1answer
72 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
0answers
55 views

Connect 3 Raspberry pi using i2c

I'm trying to use i2c to exchange messages between 3 raspberry pi, all of them must receive a message do something and then send a response. Raspberry as an I2C SLAVE From here I came up with a ...
0
votes
1answer
91 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. ...
0
votes
1answer
72 views

I2C slave on a RPi Model B with pigpio?

I want to use the I2C slave provided by pigpio with a Raspberry Model B. pigpio documentation says GPIO 18 and 19 are used for that. Unfortunately there is no GPIO 19 on an RPi1. Is it possible to ...
0
votes
0answers
15 views

How can I share a C++ class variable between a thread started with the pigpiod start_thread () method and the main thread?

I've got a C++ class containing some class variable like char some_class::current_command. One of the static methods of this class, say void Play () now calls the pigpiod start_thread () method to ...
0
votes
1answer
221 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 ...