[f] AMB on Facebook

LCDuino input and mute indicator LEDs

The face and heart of the system.

Moderator: linux-works

LCDuino input and mute indicator LEDs

Postby hayo1991 » August 27th, 2019, 10:33 pm

Bit of a newbie when it comes to coding, but I was wondering if it's possible to add input and mute indicator LEDs to the LCDuino with delta1 and delta2.
hayo1991
 
Posts: 4
Likes: 0 post
Liked in: 0 post
Joined: December 2nd, 2012, 8:12 am
Country: Netherlands (nl)

Re: LCDuino input and mute indicator LEDs

Postby amb » August 27th, 2019, 11:50 pm

The LCD display already shows this information... :?
User avatar
amb
Site Admin
 
Posts: 10555
Likes: 191 posts
Liked in: 505 posts
Joined: March 29th, 2010, 9:49 pm
Location: Sunnyvale, CA
Country: United States (us)

Re: LCDuino input and mute indicator LEDs

Postby hayo1991 » August 28th, 2019, 1:19 am

Yes I'm aware, but I would like to have additional indicator LEDs. Is there any way to do that?
hayo1991
 
Posts: 4
Likes: 0 post
Liked in: 0 post
Joined: December 2nd, 2012, 8:12 am
Country: Netherlands (nl)

Re: LCDuino input and mute indicator LEDs

Postby amb » August 28th, 2019, 7:27 pm

Yes. Probably the best way to do this is to add another i2C port expander (which will allow you to drive up to 8 LEDs), and then modify the firmware to turn the LEDs on/off based on the mute state and the selected input/output ports. I don't know your level of expertise at implementing additional hardware and writing C++ code, but that is what's needed to do this.
User avatar
amb
Site Admin
 
Posts: 10555
Likes: 191 posts
Liked in: 505 posts
Joined: March 29th, 2010, 9:49 pm
Location: Sunnyvale, CA
Country: United States (us)

Re: LCDuino input and mute indicator LEDs

Postby hayo1991 » August 28th, 2019, 8:53 pm

Thanks Ti! I will give it a go.
hayo1991
 
Posts: 4
Likes: 0 post
Liked in: 0 post
Joined: December 2nd, 2012, 8:12 am
Country: Netherlands (nl)

Re: LCDuino input and mute indicator LEDs

Postby linux-works » August 28th, 2019, 10:49 pm

another idea is to use neopixels and address them as an index from the first one in the chain. it needs just one spare pwm pin on the arduino but it may have to be a special pin, check if the lcduino uses that pin.

there may also not be enough memory (flash) to add in neopixel library, but it might be possible.
Sercona Audio (Control Systems for Analog and Digital)
Photos: http://www.flickr.com/photos/linux-works/
User avatar
linux-works
 
Posts: 2068
Likes: 1 post
Liked in: 40 posts
Joined: March 31st, 2010, 9:04 am
Location: Santa Clara, CA
Country: United States (us)

Re: LCDuino input and mute indicator LEDs

Postby hayo1991 » August 28th, 2019, 11:11 pm

That's also a really neat idea. Thanks for the suggestion.

I've been looking through the volumaster firmware a bit. Is it right that the muting is done by disconnecting all output relays?
hayo1991
 
Posts: 4
Likes: 0 post
Liked in: 0 post
Joined: December 2nd, 2012, 8:12 am
Country: Netherlands (nl)

Re: LCDuino input and mute indicator LEDs

Postby amb » August 28th, 2019, 11:17 pm

I’ll have to verify by looking at the code again, but I don’t think so. Mute should have been implemented by setting the attenuators to minimum volume.
User avatar
amb
Site Admin
 
Posts: 10555
Likes: 191 posts
Liked in: 505 posts
Joined: March 29th, 2010, 9:49 pm
Location: Sunnyvale, CA
Country: United States (us)

Re: LCDuino input and mute indicator LEDs

Postby DEFL » August 29th, 2019, 12:55 am

Is mute sets attenuation to the very minimum (-127,5dB) or to the minimum set by a user via menu to exclude useless volume range? (e.g. -50dB).
Maybe it's better to raise relay contacts completely by Mute function to allow safely disconnecting TRS plug, otherwise current might be enough to damage mosfets.
DEFL
 
Posts: 175
Likes: 8 posts
Liked in: 4 posts
Joined: August 2nd, 2013, 2:26 am
Location: Saint-Petersburg
Country: Russia (ru)

Re: LCDuino input and mute indicator LEDs

Postby amb » August 29th, 2019, 1:05 pm

Mute is currently implemented in firmware to go to the minimum configured volume, not to the very minimum capable by hardware. I verified this by looking at the code, and also by testing on the α10 and γ3.

If you set the configured minimum to a reasonably low volume, then the TRS plug issue (on the β22) shouldn't be a problem. Even -40dB is factor of 100x attenuation. But if you're worried about this, the proper fix is to increase the β22 output resistors' value as documented at the β22 website.

DEFL likes this post.
User avatar
amb
Site Admin
 
Posts: 10555
Likes: 191 posts
Liked in: 505 posts
Joined: March 29th, 2010, 9:49 pm
Location: Sunnyvale, CA
Country: United States (us)


Return to LCDuino-1 display I/O processor

Who is online

Users browsing this forum: No registered users and 0 guests

Quick Links

AMB audio DIY resources
AMB audio shop

cron