Excellent work, I have configured two states to turn off and turn on my amplifier with the start and stop cycles of Volumio.
I use Icepower with the Icextend module, this has a trigger uqe activates or deactivates the amplifiers when receiving 3.3/5v, your system is the only one that has worked properly of all I have tested.
I only have one doubt, the Icextend only needs a boost to trigger the command, and I think that your programming activates the GPIO pin all the time, the Icextend also has a trigger that works with the audio signal, when there is no audio for 13 minutes the amplifiers are turned off, but with your addon they don?t turn off, I guess because the GPIO keeps it on all the time.
I am very new to all this, and sorry if I didn’t understand this correctly, but maybe you can add a function that allows you to change the action from a continuous value to a simple temporary pulse, of for example 1 second, or to an adjustable value.
Have you looked at the AmpSwitch plugin - it allows you to set a pulse instead of holding the GPIO either on or off, for similar use cases like you describe.
I too am having the same issue. I’d like to use the shutdown pin to turn some items off via a pulse. The shutdown output is always on until the unit is booted up. I’d like it to output a pulse when a shutdown is triggered and output nothing on boot up. Is this a possibility??
Hi! Very nice plugin! Use it everyday to trigger my active speakers. Question: Is it possible to implement a delay function? It would be nice if one could set an idle time before shut off, like 3 minutes or so. Right now my speakers turn off instantly.
Hi supercrab,
thanks to your plugin, it works fine in my installation.
maybe when you add some functionality to your plugin, in is possible to add three GPIO Controls to indicate the sampling rate.
Example:
Sampling rate higher than 96 =(176, 192, …) -> GPIO 5, 6, 13 are high
Sampling rate higher than 48 less and eq 96 =(88, 96) -> GPIO 5 is low, 6, 13 are high
Sampling rate higher or eq than 44 and less 88 =(44, 48) -> GPIO 5, 6 are low, 13 is high
Sampling rate less 44 -> GPIO 5 is high, 6 is low, 13 is high
Here is a thread, whrere the readout of the sampling rate was discussed
Hi,
Hey this is great, really useful )))
I’ll use it to control an optical Toslink switcher so it switches to the Digi+ Pro when playing and all other sources if not. It will mean modding an RC controlled switcher, however shouldn’t be too difficult.
Cheers,
Malcolm
I don’t understand your question sorry. The link you supplied is about using PWM to control LEDs but it looks like you want an input to be sampled? Not sure if it possible. I tried to use Pigpio once for PWM but I couldn’t get it working
no i want no sampling the input.
i only want to signal by LED what sampling rate is playing.
when switching the GPIO 5,6,13 by this schema
Sampling rate higher than 96 =(176, 192, …) -> GPIO 5, 6, 13 switch to high
Sampling rate higher than 48 less and eq 96 =(88, 96) -> GPIO 5 switch to low, 6, 13 switch to high
Sampling rate higher or eq than 44 and less 88 =(44, 48) -> GPIO 5, 6 switch to low, 13 switch to high
Sampling rate less 44 -> GPIO 5 switch to high, 6 switch to low, 13 switch to high