Git Product home page Git Product logo

Comments (7)

gratefulfrog avatar gratefulfrog commented on June 28, 2024

adding to previous, if I start python as root, ie sudo python, I can access pigpio.pi()...

So there are 2 issues:

  • flashing gpio pins at startup
  • accessing python interface as non root user.
    Thanks for any thoughts!

from pigpio.

gratefulfrog avatar gratefulfrog commented on June 28, 2024

ok, so I have progressed a bit.

I don't know why or how, but I now access the pigpio python interface as non root user.

However, the 3B+ at startup is crazy with the pins blinking and disk activity galore...

Again, this is not the case on my 4B+..

Any help would be great!

from pigpio.

guymcswain avatar guymcswain commented on June 28, 2024

Have you looked at issue #554 ? TLDR, advance to end that thread and make the changes to pigpiod.service.

from pigpio.

mkende avatar mkende commented on June 28, 2024

I’m facing that issue too, usin an IQAudio Dac Pro on an RPi 3B+ (using the I2S output). However the fix of issue #554 does not seem to work for me.

As soon as I start the pigpiod server with sudo systemctl start pigpiod the sound output of the DAC becomes garbled (same happens if I enable the service and restart the RPi).

I’m using the same Raspbian based on Debian 11 32 bit as in that other issue, except that I’m using the Lite OS.

I have tried editing the /etc/systemd/system/default.target.wants/pigpiod.service file as per the comment in the other issue, but the issue still persist (whether I activate the daemon manually or whether I enable it and reboot the Pi).

Interestingly, my issue with the I2S output persist even if I stop the daemon. And I need to restart the board for it to work correctly again.

from pigpio.

guymcswain avatar guymcswain commented on June 28, 2024

@mkende , if need to use audio with pigpio you'll need to give up some of the functionality. By default, the I2S peripheral is used for timing. There is an option to run the daemon using the PWM peripheral instead. Read about pigpio daemon options here.

Interestingly, my issue with the I2S output persist even if I stop the daemon. And I need to restart the board for it to work correctly again.

This is likely a separate issue that needs to be investigated.

from pigpio.

mkende avatar mkende commented on June 28, 2024

Thanks for the pointer. Do you know if I can still use one of the PWM channels through pigpiod (well, one output of one channel), if I switch the daemon to using PWM timing?

It's probably not worth opening an issue for the second part of the problem as I wouldn't expect the I2S to work now that I have this additional information.

from pigpio.

guymcswain avatar guymcswain commented on June 28, 2024

Do you know if I can still use one of the PWM channels through pigpiod (well, one output of one channel), if I switch the daemon to using PWM timing?

Sorry but no, neither channel will be available for pwm.

from pigpio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.