Arduino based LDR volume and source selection controller

After a few more hickups during calibrating and a wrong type TSOP IR receiver (different pinout) it finally is working. Only problem is the vertical streak on the display.
Is this a bug in the software or is it a defective display?
 

Attachments

  • 2017-02-17 18.17.27.jpg
    2017-02-17 18.17.27.jpg
    425.1 KB · Views: 451
Neb, I have just uploaded your new code with the menu adjustments, much more friendly & great work. :up:

My feedback (nothing critical):

  • When clicking through the selections, the screen is fine. However if a change is made while in the line out menu the cursor block is left behind if you press again to return the volume screen rather than letting the selection timeout.
  • Volume bar breakup on fast scrolls
Actually hooked it up for its first basic sound check (iPhone signal generator and a set of PC speakers).


On the volume bump... I think I also have this. My volume range is 50 as your code has preset. Turning the volume up results in an audible jump in volume between 26 & 27. When turning the volume down there is an audible click when going from 27 to 26.


If I observe the DC voltages at R25 & R33 I notice a huge change over R33 (RSH) at the 26/7 crossover point.



With the volume at 26 R25 is at 1.575V and R33 is at 1.024V. With V=27 R25 is 1.593V and R33 is at 4.653V so I guess that validates your code query
 
I just built another VxD with Nichicon low ESR caps at DAC outputs. At first, I could not hear a bump, but I spotted it immediately with pink noise. It seems shorter and smaller, but it's there. Very difficult to hear with music.

And yes, new FET I found works just fine, everything calibrated on first run with SR3s:

https://www.fairchildsemi.com/products/discretes/fets/mosfets/FDV301N.html

I found my oled so I will try to weed out the bugs when time allows it.
 
Neb, I have just uploaded your new code with the menu adjustments, much more friendly & great work. :up:

My feedback (nothing critical):

  • When clicking through the selections, the screen is fine. However if a change is made while in the line out menu the cursor block is left behind if you press again to return the volume screen rather than letting the selection timeout.
  • Volume bar breakup on fast scrolls

All should be fixed now, please check.
 
Hi Neb, I think that is a very good strategy to debug this. I will try to test on the weekend with white noise or tones for the volume bump.

AFAIK I didn't change any params. Do you see this issue with both OLED and LCD?

This is it, confirmed with debug. Audible bump is right at the point where current range is set, setLSH, setLSE, setRSH and setRSE.
 
Could it be the sr3 ldrs?

Don't think so cos I'm using the SR2's with Nebs code. For me the symptoms are at the 26-27 (out of 50) volume steps.

Attached are two scope traces. The Blue line is the voltage over R33 (RSH) and Red over R25 (RSE). The first screen grab is at vol 26 and the second at 27 where yoo can see the jump in RSH which results in the audible bump.

I'm currently using a tool called Meld to compare Nebs code with Vincents V1 code to see if there are any typos etc. I'll let you know if I find anything.
 

Attachments

  • Vol 26.jpg
    Vol 26.jpg
    324.8 KB · Views: 423
  • Vol 27.jpg
    Vol 27.jpg
    319.9 KB · Views: 415
Nope can't see anything obvious in the code. As you might imagine the main differences are in the OLED handling and various Control (Menu) structures.

The calibration and volume routines all see the same. :confused::confused:

I'm wondering if it has been there all the time? Most people will just build as quick as they can to the final result without testing and with music playing it is not that noticable. I tested with a 1kHz signwave and it is obvious