Stack Exchange Network

Stack Exchange network consists of 175 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
18 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 ...
0
votes
0answers
15 views

How to track steps of multiple stepper motors with different frequencies

I’m working on a small stepper motor driven vehicle powered by a Raspberry Pi 3B. For the motor control, I am using the hardPWM function of the pigpio library from Joan, which is working great. I can ...
0
votes
1answer
35 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?
-1
votes
0answers
25 views

Cant connect to pigio localhost? [duplicate]

RPi 3 B+, Raspbian, Python 3.5 I'm tryiing to use the hardware PWM via the pigio library & am using the example code from the website. import pigpio imort time GPIO = pigio.pi() HSYNC = 18 GPIO....
0
votes
0answers
31 views

How to control the raspberry pi over internet using android app?

I had bought a Raspberry pi 3b+ recently to make many of the projects I had dreamed of. Most of these (or maybe all) involves controlling the GPIO pins over the internet using an app. One of the ...
0
votes
1answer
23 views

pigpiod pid listen on port 8888 [duplicate]

My nodejs app is using pigpio. It keeps getting error because port pigpiod is listen on port 8888 already. I can kill -9 the process but when I restart pi port 8888 is jammed up again. How do i solve ...
0
votes
1answer
34 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
0answers
17 views

Stepper motor control using wavechain

I am having a bit of trouble using the PIGPIO wavechain function. I am using wavechain to accelerate and decelerate the stepper motor(NEMA 17 ,A4988 driver).Is it possible to avoid executing the ...
0
votes
0answers
10 views

Frequencies available for wavechaining using PIGPIO library

I am working with the PIGPIO library to run stepper motors. I am using wavechains to the STEP pin of the driver. I need help regarding the possible pulse frequencies available for wavechaining. I ...
0
votes
0answers
29 views

using I2C in threads

I have several devices on one I2C Bus and am wondering now what happens, if I have some threads using this one I2C Bus. Do I need to implement a scheduler or is the I2C Bus automatically blocked ...
0
votes
2answers
64 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 ...
0
votes
0answers
18 views

Generating multiple square waves simultaneously

I'm trying to generate 2 simultaneous square waves (50% duty cycle PWM signals) to step two stepper motors (STEP signal to separate motor drivers) on the Raspberry Pi Zero W. I use GPIO12 and GPIO19, ...
2
votes
0answers
30 views

Two data parsing frames for SPI reads of MCP3008 ADC, any advantages or disadvantages of either one?

I am reading an MCP3008 ADC using pigpio, I've abstracted the script below. I have also found a slightly different construction or parsing of the three SPI command bytes and reconstruction of the ADC ...
0
votes
1answer
235 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 ...
1
vote
0answers
117 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
2answers
136 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
46 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
1answer
60 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
2answers
55 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
82 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 ...
2
votes
0answers
40 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 ...
5
votes
0answers
80 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
35 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
81 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
374 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
31 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
207 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
31 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
374 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
618 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
65 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
98 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
45 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
56 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
53 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
77 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
170 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
111 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. ...
-1
votes
0answers
217 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
177 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
59 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
79 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
156 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
153 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
240 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
45 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
103 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
507 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
42 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
24 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. ...