Arduino based LDR volume and source selection controller

Attachments

  • 1.JPG
    1.JPG
    68.7 KB · Views: 993
Last edited:
What do you guys think, is this LDR the correct one for this volume controller?
OPTOCOUPLER, 2KV, RESISTIVE O/P, Part # SILONEX NSL 32. | eBay

I need to use eBay, since Mouser doesn't have these and I don't want to order just the LDRs from Digikey and pay 18€ for delivery. Everything else from the BOM I can find from Mouser.

Nikosokey posted some OLED displays earlier, but those are quite small. I'm sure there are larger (2-3" diagonal) ones available too?
 
What do you guys think, is this LDR the correct one for this volume controller?
OPTOCOUPLER, 2KV, RESISTIVE O/P, Part # SILONEX NSL 32. | eBay

I need to use eBay, since Mouser doesn't have these and I don't want to order just the LDRs from Digikey and pay 18€ for delivery. Everything else from the BOM I can find from Mouser.

Nikosokey posted some OLED displays earlier, but those are quite small. I'm sure there are larger (2-3" diagonal) ones available too?

That's quite expensive. Do you have rs components or farnell nearby?

NSL-32SR3 | Optocoupler; 2.5 V (Max.) @ 16 mA; 25 mA (Max.); 2000 V (Max.); 50 mW (Max.) | Silonex
 
Thanks for your answer Neb, but unfortunately there's no RS Components or Farnell local shops in Finland. So the NSL-32SR3 should also work in this circuit in stead of NSL-32SR2? I read earlier in this thread that you had some problems calibrating with it. Is that a major problem?

ADVANCED PHOTONIX - NSL-32SR3 - OPTOCOUPLER, 2KV, RESISTIVE O/P | eBay

If this optocoupler is ok, I will just order these from eBay and be done with it.
 
There are problems with calibration, but you need to calibrate only once and never again, unless you change number of volume steps. It needs few runs to go through and that's it. But is seems sr3 behaves better in everyday use, ie no volume bump in the middle.

Sent from my Redmi Note 4 using Tapatalk

Neb, Have a look at getAttFromStep (around line 980). There is a potential discontinuity at 40% of the number of steps you have nominated. Also see post #64.
 
Hello.

Propably a noob question, but hey I'm a first time Arduino user. While I'm trying to send the code to the Arduino Nano from Arduino IDE 1.6.1, I get this error message: "firmware_LDR_v1.0_20160524.ino:20:31: fatal error: LiquidCrystal_I2C.h: No such file or directory"
I checked my Arduino libraries and I can see that I have this "LiquidCrystal_I2C.h" file in "C:\Program Files (x86)\Arduino\libraries\LiquidCrystal". What am I doing wrong? Please help.
 
Hello.

Propably a noob question, but hey I'm a first time Arduino user. While I'm trying to send the code to the Arduino Nano from Arduino IDE 1.6.1, I get this error message: "firmware_LDR_v1.0_20160524.ino:20:31: fatal error: LiquidCrystal_I2C.h: No such file or directory"
I checked my Arduino libraries and I can see that I have this "LiquidCrystal_I2C.h" file in "C:\Program Files (x86)\Arduino\libraries\LiquidCrystal". What am I doing wrong? Please help.
Sorry did not see the help you already got
 
Last edited:
Something strange is going on with my 8V feed to Nano. When I connect the 8V supply (with both 12V supplies connected as well) I can hear some relays clicking and the power led on the Nano quite dimmly lits up. At first I can measure 7,9V from the Vin pin on the Nano, but only 0,8V from the 5V pins. After a while the LM7808 heats up a lot and the Vin pin measures below 3V and the resistors next to the LEDs on the Nano board heat up a lot as well. Then I have to unplug the power supply.

I wonder what's going on? Is my Arduino Nano somehow defective or have I made some mistake somewhere (quite possible)? Only the power supply was connected to the board during these initial tests.