Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
20 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
0answers
14 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
0answers
11 views

suddently raspbery pi shutdown or random long delay when running stepper motor using pigpiod

So I create an another program that can run stepper motor nema 34 using leadshine DM860 driver and this is the example of my code: import time import pigpio START_DELAY=580 FINAL_DELAY=480 STEP=1 ...
0
votes
2answers
32 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....
2
votes
1answer
31 views

Does pigpiod feature a verbose / debug mode?

As I'm currently trying to debug an issue with my SPI link, which is addressed through pigpio, I'd like to make pigpiod write warnings and debug messages (if such occur) to stderr.
0
votes
0answers
21 views

smothing steper motor movement when chage the direction

So, I'm driving a NEMA34 bipolar stepper motor and it is being driven by a DM860 leadshine. I create a program in raspberry pi using pigpio library, the program that that make stepper motor change ...
0
votes
1answer
35 views

pigpio library serial_wave confusion

I am trying to use joan's pigpio for python to try to write a command from a rpi3 GPIO pin to a peripheral device. the peripheral device uses UART and when it receives a data packet it will then ...
0
votes
1answer
28 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 (...
0
votes
1answer
51 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 ...
0
votes
0answers
26 views

LCD Pulsing message

I've hooked up a LCD display to a project I'm working on. I have many inputs/outputs and I want to display different messages depending on the state of the inputs. Now before I start to complicate / ...
0
votes
0answers
21 views

How does PigPio serialRead handle framing errors?

I want to use a slightly modified version the "bit bang" pigpio serial read code so I can get timestamps for each character. The serial data stream to be read is likely to be error prone, since it ...
0
votes
0answers
17 views

PIGPIO library: reset issue

I have developed an application where I measure the periods of an audio pulse with changing frequency and have adapted the example freq_count_2.c for this purpose. In this example the ...
1
vote
0answers
26 views

Trying to use pigpio wavechains to drive very specific acceleration and deceleration

I'm working on a kinetic sculpture that involves a large pendulum swinging perpetually left to right. I'm using a raspberry pi 3 B+ / arduino uno with a DM860AC to control a nema 34 stepper. I was ...
4
votes
0answers
60 views

Raspberry as I2C Slave, how to slow down transfer rate?

I have had minor success using the PIGPIO library and interfacing the Pi as an I2C Slave (Using GPIO Pins 18 and 19 as SDA and SCL) with a Campbell CR1000X Datalogger I am encountering a problem ...
0
votes
0answers
27 views

add pulse object to transmitting pigpio waveform

First, thanks to Joan for this excellent library! I'm trying to control multiple stepper motors with drivers that take a step input (TI's DRV8825). I've got this running well for the individual ...
1
vote
0answers
52 views

Problem counting pulses

I want to count pulses and find the frequency. Here is the picture of pulses from the oscilloscope: Obviously, frequency is around 1/2.3 ms = 420 Hz. First I tried this program: import RPi.GPIO as ...
0
votes
1answer
172 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) ...
0
votes
1answer
26 views

When switching to pigpiod, which replacement shall I use for gpioSetTimerFunc()?

When still using the pigpio API "directly", I made extensive use of the gpioSetTimerFunc function, just like this: gpioSetTimerFunc (4, 500, OnRDSDataTimerElapsed); After making pigpiod do all the ...
2
votes
1answer
104 views

Using hardware PWM and audio simultaneously

I am developing a project on a Raspberry Pi 3 B+. I am using the PWM0 channel to send a custom-made IR signal using PiGPIO waves. I gather it might then be possible to use PWM1 for mono audio; is that ...
1
vote
1answer
25 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 ...
0
votes
1answer
150 views

How to read motor RPM open collector tach output

I have this motor which has a tach output that I want to use to read motors RPM, EC centrifugal fan - RadiCal. On page 4 there is a shcematic diagram and it also says Tach output: open collector, 1 ...
0
votes
2answers
350 views

Python pigpio 'no permission to update GPIO'

I am trying to run the following code on my Raspberry: import pigpio import fileinput pi = pigpio.pi() ### Define constants pwm_range = 255 pwm_clock_div = 8 left_motor_dir_pin = 35 ...
0
votes
1answer
57 views

Raspberry PI GPIO Extender [closed]

I am trying to control 42 relays with a Raspberry Pi 3 B+. Due hardware limitations, there I cannot do that with the current amount of GPIO pins. I've found some GPIO Expansion Boards online, but I ...
0
votes
1answer
33 views

RpiZeroW - Can't find `pigpio` while running Python code

I have a python code, using gpiozero. When running this code on a RPI-ZEROW it fails, while running same code on RPI3 it succeeds. All installed pretty much the same ( shown checks below ), pigpio is ...
1
vote
0answers
29 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, ...
0
votes
0answers
37 views

How to generate a hardware PWM wave for driving an LED through RPIO?

I've looked through the documentation of RPIO, and used GPIO18 to get my PWM up and running. This is my code: from RPIO import PWM servo = PWM.Servo() servo.set_servo(18, 4000) As explained in the ...
3
votes
1answer
41 views

pigpio pwm — gpio <pin_no> bad dutycycle (nnn)

I'm tinkering with the pigpio [C] PWM functions and get ``pio bad dutycycle (nnn)'' messages while cycling an LED with increasing/decreasing gpioPWM() values. As always, any help will be greatly ...
0
votes
0answers
25 views

Reading a button 'hold' for an IR remote via pigpio

I'm trying to modify the one of the two IR examples for the Python pigpio scripts (http://abyz.me.uk/rpi/pigpio/examples.html). IR Receiver IR Record and Playback So far I've managed to understand ...
0
votes
0answers
48 views

Running the Waveshare DAC with Python

I've been working on setting up and using the Waveshare High Precision AD/DA. I have it set up but I can't seem to figure out how to use it with Python as it seems to be rather poorly documented. (It ...
0
votes
2answers
81 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
73 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
0answers
140 views

The pigpiod daemon does not start

let me please copy my question from raspberypi.org's forum, since it seams it will have more chances to be ansvered here. (https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=216299) === I ...
0
votes
1answer
153 views

pigpio spi : use an other GPIO for chip select

I'm using the Waveshare High-Precision AD/DA Board, and they not use the default chip select pin of RPi (GPIO# 7, 8) for SPI. Using the pigpio python library, I want to know how to change the chip ...
0
votes
2answers
47 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
64 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 ...
1
vote
1answer
96 views

Updated info/software/advice on using Raspberry Pi to control stepper motor drivers

It's been almost a year since the last posting in here covering this topic - are there any newer examples or libraries that you (Joan or anyone) know of that do the acceleration ramp, constant run-...
0
votes
1answer
93 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?
1
vote
1answer
153 views

Fail to run Remote GPIO code from a PC using python3

I'm trying to run a remote GPIO code from a Linux machine to operate on RPI3. Code is running OK on another RPI3 to control each other, but when trying to do so from a PC, it fails. I followed the ...
0
votes
1answer
40 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
82 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();...
0
votes
1answer
358 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(...
0
votes
1answer
32 views

how to set RF frequency in PiGPIO?

I'm using the PiGPIO library to receive a waveform but I don't see a way to make sure the RF frequency is correctly set. I'm using the class rx() which is supposed to read a signal transmitted on 433 ...
0
votes
0answers
22 views

Attempting to read from GPIO23 but it only reads 0

I am trying to follow this guide on making an ir receiver/blaster. Currently I am trying to work on the receiver end of things but the pin reads 0 at the beginning instead of 1 like the guide says. ...
1
vote
1answer
110 views

ImportError: No module named wavePWM

I am trying to generate 6 simultaneous PWMS to run an AC motor. I have gone through the following link How to create multiple GPIO pwm waveforms that are in sync using pigpio for trapezoidal motor ...
0
votes
0answers
66 views

How can I make the JustBoom DAC HAT not interfere with pin #22?

I've got the following tricky problem: I'm using pin #22 (GPIO25) of my Raspi 3B as a GPIO input and read its state by using the pigpio function gpioSetAlertFunc (25, relay::IgnitionISR), where relay::...
2
votes
1answer
102 views

Are these both reasonable ways to check on the status of pigpiod from within Python?

I'm trying to check on the status of the pigpiod process from within a python script. These two methods both appear to work so far. Are there any significant advantages or disadvantages of one over ...
1
vote
1answer
265 views

pigpio bitbang i2c returns random data, smbus is OK

The scripts and the results mostly speak for themselves. smbus returns good data when I use the standard I2C GPIO pins, but the pigpio bit banging I2C returns what looks like random data. What might ...
0
votes
2answers
456 views

Why would os.system('sudo pigpiod') fail silently, but only part of the time?

I'm trying to learn how to safely and reliably start and stop the pigipod DEOMON process from within a python script. If pigpiod happens to be running already, then this script is always successful. ...
0
votes
1answer
159 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
776 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 ...