Welcome, Guest
Username: Password: Remember me
NOTE: This forum is community powered. Please be mindful that long time community members are here to help as part of a community effort. If you have a specific issue (e.g. hardware, failure), please use our tech support portal (Support menu - > Contact Us). Thanks a lot of your help in making a better community. :-)

TOPIC: Readout of Volume

Readout of Volume 2 years 7 months ago #30182

  • sismik11
  • sismik11's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 1
  • Karma: 0
Hi
First of all great work to everyone who has contributed to this

@ haggismonster. I wrote to you on a different thread, but found the code in this thread usefull. I have taken it and made it work with a 20x4 LCD display. Thank you for your efforts.

To everyone, who wants to try this. This is what I have done:

-MiniSHARC.
-VOL-FP connected to MiniSHARC.
-Arduino MEGA (this is a 5V TTL level uC. It seems to work, but I'm a little concerned that the MiniSHARC might break down because if it. If anybody has any thoughts on this, then please let me know).
-20x4 LCD (Hitachi lcd hd44780 driver). Wired up like the "Hello World" eksample: HelloWorld
-Connected SCL (PIN 0 on MEGA) to Minisharc/Vol-FP connector: 2-Black SCL
-Connected SDA (PIN 1 on MEGA) to Minisharc/Vol-FP connector: 1-Red SDA
-Connected GND_MEGA to GND_MiniSHARC Minisharc/Vol-FP connector: 5-Black Ground

The code below is mostly made by haggismonster. I hvave added/taken out:
-Added LCD display support (20x4)
-Added display of selected Input
-I'm not using the Mute function

This is what the code does:
-Shows Volume in 0.5 dB steps
-Shows selected Config
-Shows selected input

Current bugs:
I find the code to be stable with an IR remote controle, BUT the volume is NOT updated when the rotery encoder on the VOL-FP is used! Is this a known issue? Please keep me posted if someone has a fix for this.

Arduine Code

File Attachment:

File Name: miniSHARC_...v1.1.txt
File Size:7 KB




Pictures of the setup:








EDIT:
I have edited the code for 16x2 LCD Display here. Enjoy:

File Attachment:

File Name: miniSHARC_...v1.1.txt
File Size:7 KB


This message has attachments images.
Please log in or register to see it.

This message has attachments files.
Please log in or register to see it.

Last Edit: 2 years 7 months ago by sismik11. Reason: Added 16x2 LCD Support
The administrator has disabled public write access.

Readout of Volume 2 years 6 months ago #31159

  • jsheerin
  • jsheerin's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hi Sismik11,
I tried your code plugging in my arduino to my miniSharc in place of my VolFP. I found a similar issue to what you mentioned - volume is not updated. I haven't traced the program out entirely, but it seems with your version, the state is retrieved from the miniSharc the first time, but never changes after that, so volume is never updated. I added volume up/down controls to the loop in your program, controlling the volume on the miniSharc through buttons. Then I added haggismonster's refreshData function which was missing from your code. I then called that from the volume up/down functions as haggismonster did and volume was updated for each volume button press. That function is:
// "official" MiniDSP way of pinging the SHARC for a volume/state update
void MiniSHARC::refreshData() {
Wire.beginTransmission(SHARC_ADDR);
Wire.write(2);
Wire.write(131);
Wire.endTransmission();
}
However your issue might be more complicated - not sure. If you are adjusting volume via the pot, I'm not sure if the arduino would see that. You could try changing your loop to call refreshData and then display it on your LCD. I also had problems connecting with a 5V Arduino - switched to a Pro Micro 3.3V one which is a pain for other reasons, but it is working fine with the miniSharc at the moment.
The administrator has disabled public write access.

Readout of Volume 2 years 6 months ago #31170

  • sismik11
  • sismik11's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 1
  • Karma: 0
Hi jsheerin
Thank you for your reply.
So what you are saying is, that I need to run the refreshData function each time I turn the rotery encoder on the VolFB. Maybe I can "sniff" that rotation with the arduino.

I guess another way is to use you Vol buttons. Would you mind attaching the full code?
The administrator has disabled public write access.

Readout of Volume 2 years 6 months ago #31179

  • jsheerin
  • jsheerin's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
I think you need to run the refreshData function as often as you want to see volume updated on your display. So if you are trying to see the effect of rotating the encoder, you'd need it to be called as you're turning it, maybe not for each 0.5dB increment, but fast enough that you got reasonable feedback on what you were doing.

I attached my code (rename to .ino). I haven't tested it completely yet as I'm waiting for parts, but I did test the volume up function. Mute and the volume output display (driving an analog panel meter) are untested.
Attachments:
The administrator has disabled public write access.

Readout of Volume 2 years 4 months ago #31651

  • foyus
  • foyus's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 2
  • Karma: 0
Hi,

Good work here !

Look at this shop : waveflex.myshopify.com/

Arduino based product too
The administrator has disabled public write access.
The following user(s) said Thank You: Richard, DNM

Readout of Volume 2 years 4 months ago #31695

  • Richard
  • Richard's Avatar
  • Offline
  • Expert Boarder
  • Posts: 126
  • Thank you received: 68
  • Karma: 13
Wow!!!!
That's exactly what I've wanted for years. Wish MiniDSP would make something like that themselves.



waveflex.myshopify.com/products/minidsp-opendrc-upgrade-kit
The administrator has disabled public write access.
The following user(s) said Thank You: DNM

Readout of Volume 2 years 3 months ago #31917

  • DNM
  • DNM's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 18
  • Thank you received: 4
  • Karma: 0
Thanks to Foyus I contacted Pierre at WaveFlex about a volume display for my 4x10HD. He was very helpful and supplied a dual controller and replacement face plate. Easy to fit by removing old face plate and vol pot, drilling a few holes and cutting a small piece of the face plate frame for the LED's on the dual controller. Works a treat.






This message has attachments images.
Please log in or register to see it.

Last Edit: 2 years 3 months ago by DNM.
The administrator has disabled public write access.

Readout of Volume 9 months 1 day ago #39661

  • RyanC
  • RyanC's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Wow this looks great...the DIY stuff is amazing too but for me it's great that this is all neat and tidy. Will probably be ordering some of these.
The administrator has disabled public write access.
Moderators: devteam