[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/mobiquo/hook/function_hook.php on line 86: A non-numeric value encountered
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4859: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3948)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4861: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3948)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4862: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3948)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4863: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3948)
RPi 3, Hifiberry AMP2, rotary encoder, on/off switch : Raspberry Pi • RuneAudio Forum

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

Raspberry Pi related support

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

Postby pez » 07 Dec 2017, 20:04

Attachments
GPIO_Pi3.png
GPIO_Pi3.png (90.61 KiB) Viewed 7122 times
RPi 3 model B
Hifiberry AMP2
runeaudio 0.4 beta
work on autonomous hifibox in progress:
Rotary encoder, I/O witch, status and volume LEDs: DONE
design of housing: almost done
pez
 
Posts: 20
Joined: 19 Nov 2017, 18:20
Location: Austria

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

Postby janui » 08 Dec 2017, 10:33

User avatar
janui
 
Posts: 714
Joined: 20 Dec 2014, 12:55
Location: Ollanda

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

Postby pez » 08 Dec 2017, 14:19

RPi 3 model B
Hifiberry AMP2
runeaudio 0.4 beta
work on autonomous hifibox in progress:
Rotary encoder, I/O witch, status and volume LEDs: DONE
design of housing: almost done
pez
 
Posts: 20
Joined: 19 Nov 2017, 18:20
Location: Austria

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

Postby hondagx35 » 08 Dec 2017, 15:54

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

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

Postby pez » 08 Dec 2017, 16:23

RPi 3 model B
Hifiberry AMP2
runeaudio 0.4 beta
work on autonomous hifibox in progress:
Rotary encoder, I/O witch, status and volume LEDs: DONE
design of housing: almost done
pez
 
Posts: 20
Joined: 19 Nov 2017, 18:20
Location: Austria

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

Postby hondagx35 » 08 Dec 2017, 16:41

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

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

Postby pez » 08 Dec 2017, 17:10

RPi 3 model B
Hifiberry AMP2
runeaudio 0.4 beta
work on autonomous hifibox in progress:
Rotary encoder, I/O witch, status and volume LEDs: DONE
design of housing: almost done
pez
 
Posts: 20
Joined: 19 Nov 2017, 18:20
Location: Austria

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

Postby pez » 17 Dec 2017, 22:09

Hi everybody,
i am more the soldering type of guy rather than coding, so i've figured out a hardware based solution for a combined shutdown/startup switch with status LED, see attachment. It works perfectly fine with my script to shutdown via GPIO-26. It uses a relais to switch between RUN and GPIO on one side and red/green LED color on the other.
I'm planning to remove one USB connector and use it's 5V pin to control the "primary" relais circuit.
Does anybody have an idea about how to get three LEDs controlled based on the volume level as a simple volume indicator?
0%: no LED
1-33%: 1 LEDs
34-67%: 2 LEDs
68-100%: 3 LEDs

Any help is appreciated,
greetings,
P
Attachments
RaspiHifiBox02.png
RaspiHifiBox02.png (19.74 KiB) Viewed 6926 times
RPi 3 model B
Hifiberry AMP2
runeaudio 0.4 beta
work on autonomous hifibox in progress:
Rotary encoder, I/O witch, status and volume LEDs: DONE
design of housing: almost done
pez
 
Posts: 20
Joined: 19 Nov 2017, 18:20
Location: Austria

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

Postby pez » 18 Dec 2017, 23:20

RPi 3 model B
Hifiberry AMP2
runeaudio 0.4 beta
work on autonomous hifibox in progress:
Rotary encoder, I/O witch, status and volume LEDs: DONE
design of housing: almost done
pez
 
Posts: 20
Joined: 19 Nov 2017, 18:20
Location: Austria

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

Postby pez » 22 Dec 2017, 00:04

RPi 3 model B
Hifiberry AMP2
runeaudio 0.4 beta
work on autonomous hifibox in progress:
Rotary encoder, I/O witch, status and volume LEDs: DONE
design of housing: almost done
pez
 
Posts: 20
Joined: 19 Nov 2017, 18:20
Location: Austria

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 7 guests
cron