Arduino based LDR volume and source selection controller

Hello, after many years I finally get the VxD preamp controller (pcb V1.8z) properly installed on a chassis, now I am learning arduino, I download software 1.8.11 Hourly Build, and opened on it the firmware VxD_OLED_4X2s.ino , since my display is oled SSD1309. Now I am stuck could'nt find on computer serial port to upload correct minimum LDR resistances, just first try, soon or later I will.
My main concern is after calibration I get a warning ERROR 1, even after adjusting the bias. Not only, when plug the micro USB to computer, display warns an ERROR 20.
 

Attachments

  • ldr preamp.jpg
    ldr preamp.jpg
    943 KB · Views: 604
I've seen Neb's google drive, inside readme file, youtube link instructions, then install correct arduino 1.6.9, fixed libraries, etc. now I have drivers and succeed uploading the firmware, as now is nicer display, it fades light down!
But still same warning: ''ERROR 20 LDR/relay power failure''.
Now I performed a calibration cicle and after 5 min, and 47%, it stuck and warns ''ERROR 1 left series could not be calibrated''
 
I've seen Neb's google drive, inside readme file, youtube link instructions, then install correct arduino 1.6.9, fixed libraries, etc. now I have drivers and succeed uploading the firmware, as now is nicer display, it fades light down!
But still same warning: ''ERROR 20 LDR/relay power failure''.
Now I performed a calibration cicle and after 5 min, and 47%, it stuck and warns ''ERROR 1 left series could not be calibrated''
Check relay and soldering, or ldr too low
 
Thanks advice, too late night here europe, tomorrow dissasemble the pcb and check it out if three relays are powered and operate on startup.
By now I measured LDR minimum values, I get: 154, 107, 113 and 123 ohm. I try upload that but my tests on the RCA shokets had same unadjusted values, as if I had not done properly. As seen in pic. attch. I write on all four 'test value' ( PCB 1,2,3,4)
I expected to see more balanced readings after upload.
 

Attachments

  • ldr.jpg
    ldr.jpg
    130.8 KB · Views: 558
Last edited:
Relay test Ok. and soldering seems OK. many calibrations cicles get Error 1, randomly also get Error 2, and one succeed to complete 100%, but after new biasing... again Error. By now it seems another calibration complete, don't wants to measure again anything, I leave it as it is, will try upload some adjustements into some days, before I need to recover from today amusement.
 
Well is a relief at least not only me, by no reason is misbehavior.
I thing, that must be stated in advanced on the thread, despite de warnings Error, and altrough still not completing the calibration routine, my VxD controller is in use, I am happy to say, it outperforms -more dynamic and everything- than my previous LDR (so called Lighter Note). So no complains after all.
By now I concealed the warning error 20, I increased line 115 from "#define LDR_FULL_MAX 200" to "#define LDR_FULL_MAX 5000000".
And then I bought a replacement for a somewhat high LDR at 159 ohm minimum resistance. I will post if that fixes.
 
Could this values I get by now, be considered a properly calibrated volume control?
Pos. RSH LSH RSE LSE
0 180 142 ---- ----
1 181 142 ---- ----
2 116 119 100k 72k
3 167 119 56k 41k8
....
12 178 166 8k9 8k8
13 216 202 8k9 8k8
14 270 245 8k9 8k8
15 330 292 8k7 8k7
16 383 352 8k7 8k7
17 449 412 8k6 8k7
18 522 469 8k5 8k6
19 571 534 8k4 8k6
20 632 589 8k4 8k6
21 702 639 8k4 8k6
22 767 700 8k4 8k6
23 848 772 8k4 8k6
24 911 827 8k4 8k6
25 988 893 8k0 8k2
...
30 1k5 1k4 7k5 7k7
...
35 2k4 2k2 6k8 6k8
...
40 3k7 3k2 5k5 5k6
...
45 5k9 5k1 3k4 3k5
46 6k4 5k6 2k9 2k9
47 7k1 6k2 2k3 2k3
48 8k0 8k7 1k7 2k1
49 18k 20k 1k6 2k1
50 ---- ---- 106 128
 
Last edited: