Page 2 of 4

Re: RPi 3, Hifiberry AMP2, rotary encoder, on/off switch

PostPosted: 23 Dec 2017, 00:36
by pez

Re: RPi 3, Hifiberry AMP2, rotary encoder, on/off switch

PostPosted: 23 Dec 2017, 22:07
by pez
OK, i tried increasing volume by 1 and it's like that from 1 to 9 the script behaves like from 10 to 90 in steps of 10.
That's why at 8 it thinks it is at 80.
What can i do about that?
Any ideas?

Cheers and merry christmas, P

Re: RPi 3, Hifiberry AMP2, rotary encoder, on/off switch

PostPosted: 24 Dec 2017, 00:12
by hondagx35

Re: RPi 3, Hifiberry AMP2, rotary encoder, on/off switch

PostPosted: 24 Dec 2017, 12:41
by pez

Re: RPi 3, Hifiberry AMP2, rotary encoder, on/off switch

PostPosted: 24 Dec 2017, 12:57
by hondagx35

Re: RPi 3, Hifiberry AMP2, rotary encoder, on/off switch

PostPosted: 24 Dec 2017, 23:32
by pez

Re: RPi 3, Hifiberry AMP2, rotary encoder, on/off switch

PostPosted: 26 Dec 2017, 23:57
by hondagx35

Re: RPi 3, Hifiberry AMP2, rotary encoder, on/off switch

PostPosted: 27 Dec 2017, 12:04
by pez
Hey Frank, you are my personal hero.
That was the last bit of code needed to get that running.
I am currently working on the design and circuit layout for everything i need to get started to actually build that thing.
Chassis and parts for crossover are on their way, I'll start off with a mockup speakerbox just to check audio quality.
I'll post my progress, maybe it's better to move to another section of the forum, since everything seems to work fine now?
Cheers and mille gracie, pez

Re: RPi 3, Hifiberry AMP2, rotary encoder, on/off switch

PostPosted: 29 Dec 2017, 20:42
by breizheau
Hi there.

I have just subscribed to this board and this thread is exactly what i needed !!!!!

I bought a rpi3 ( already got it and use Runeaudio with my headphones plugged on jack pkug) and the new Amp2 from Hifiberry that i hope to receive soon...

I wanted to have a on/off switch and a rotary encoder !
I have relays, momentary switches, resistors, +5 DC power supply, prototyping boards and......time !

I think i'll have work to do soon :D
My encoder has the momentary switch built-in. 8-)

Do you use a specific encoder or not ?

Cheers.

Olivier

Re: RPi 3, Hifiberry AMP2, rotary encoder, on/off switch

PostPosted: 30 Dec 2017, 12:14
by pez
Hey Oliver,
in my first post i included a link to the encoder i'm using.
For the AMP2 you will need a power supply between 12 and 24V (depending on your loudspeakers): no 5V PS needed, the AMP supplies the RPi!
I'm using the included switch of the encoder to play/pause and a seperate one for I/O.
Ony the relay is controlled by the USB 5V so it switches depending on on/off state of the RPi. It controls the two functions of the I/O switch and the red/green status LED. Attached you will find my final electric scheme of all that.
pez