Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Analog Line Level Preamplifiers , Passive Pre-amps, Crossovers, etc.

LDR Pre MkII - LDR volume control and I/O switching
LDR Pre MkII - LDR volume control and I/O switching
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 14th March 2019, 02:10 PM   #1
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
Default LDR Pre MkII - LDR volume control and I/O switching

The list of differences between LDR Pre MkII and original VxD LDR volume controller is so long that I thought it might require a new thread, even though LDR Pre MkII is actually a spin-off of amazing VxD from Vincent:

Arduino based LDR volume and source selection controller

1) Instead of Arduino Nano which runs on Atmega328P, LDR Pre is driven by Atmega328PB which can be found on some Chinese Arduino Nano clones. To utilise however the full power of "PB" which has three native 16 bit timers instead of one, Nano clone boards require hardware modification to expose additional pins on "PB", as well as new bootloader which uses serial1 instead of serial0.
2) LDR Pre has native 16-bit "DAC" capability, instead of 8-bit DAC in VxD. This allows smooth volume changes without impedance range switching which was causing volume bumps due to time constants in RC filters at PWM outputs.
3) LDR Pre supports only OLED with SSD1306/SSD1311, no LCDs any more. OLEDs from Aliexpress running on SSD1309 are not supported - I was not able to make them work over I2C.
4) LDR Pre has firmware which stores all the parameters in EEPROM.
5) LDR Pre fw has ability to change all the parameters from user interface, including: load and nominal impedance, screen brightness, screen saver timeout, welcome message, I/O names and LDR min values, max saved volume level, measured 5V voltage, etc.
6) Entire user interface is accessible by a remote or encoder. You can use only one of them or both to access all functions.
7) Backlight pin is now used to control power amp relay
8) Entire board runs on 5V. Built in Nano 5v regulator is not used any more, so less heat on the controller board. OLED now draws current from power supply directly instead from Nano.
9) Power supply is now delivering 3X5V instead of 2X12+8V.
10) There is no feedback code to maintain constant current in LDRs. I found this routine to cause more instability in impedance than environment temp, so I removed it. This allowed more room for additional code.
11) Since all the parameters are stored in the EEPROM, it's possible to deliver unified, one-size-fits-all precompiled firmware updates without involving Arduino IDE and all the hassles it carries. There is no need to have IDE installed at all to update firmware or change parameters.
12) Calibration routine has been changed and optimized to accommodate 16-bit timers.
13) There is an option in the menu to reset all parameters and names to default values.
14) Firmware is power amp friendly - it can be configured not to save volumes above max value stored in EEPROM. By default this value is 10 (out of 50).
15) Firmware boots into standby mode. Pressing play button on remote for 3 seconds turns on the device and powers up the power amp (if connected). Pressing it again for three seconds puts the device in standby mode again and turns off the power amp stage.
16) Pressing center button on (Apple) remote or encoder for 3 seconds enters the setup menu.
17) The code will be an open source eventually, but bear in mind that list of changes and patches in both IDE and hardware is so extensive, that even I don't remember any more which exact steps I took to setup a working environment, since Atmega328PB is not supported in Arduino IDE.

I will be offering boards for power supply and LDR Pre with modified Nano clones.
BOM is posted here:
LDR Pre MkII BOM - Google Sheets
Attached Images
File Type: jpg IMG_4928.JPG (466.5 KB, 1713 views)
__________________
Custom PCBs, BOM and LDR Firmware:
https://sites.google.com/view/dacgear/

Last edited by zdr; 2nd September 2019 at 11:05 AM.
  Reply With Quote
Old 14th March 2019, 02:18 PM   #2
md_Stryker is offline md_Stryker  United States
diyAudio Member
 
Join Date: Jan 2006
Location: Dundee, MI
LDR Pre MkII - LDR volume control and I/O switching
Awesome work ZDR! I can't wait to get my hands on one. Please add me to your early adopters list.

-Michael
  Reply With Quote
Old 14th March 2019, 02:23 PM   #3
ernesternest is offline ernesternest  Europe
diyAudio Member
 
ernesternest's Avatar
 
Join Date: Oct 2007
Location: Cologne
LDR Pre MkII - LDR volume control and I/O switching
Interested :-)
  Reply With Quote
Old 14th March 2019, 02:50 PM   #4
Theodosis O. is offline Theodosis O.  Greece
diyAudio Member
 
Join Date: Feb 2006
Location: Athens
Hi zdr,

What about to split the board in two ?
One board with relays and LDRs and maybe with I/O connectors
and the other with Arduino and control stuff and maybe with OLED display.

In this way you have the noisy stuff away from signal.

Last edited by Theodosis O.; 14th March 2019 at 02:57 PM.
  Reply With Quote
Old 14th March 2019, 03:40 PM   #5
rpafenberg is offline rpafenberg  United States
diyAudio Member
 
Join Date: Feb 2004
Location: Washington DC
Put me on the list for two as well
  Reply With Quote
Old 14th March 2019, 03:57 PM   #6
Gricko is offline Gricko  Croatia
diyAudio Member
 
Join Date: Apr 2009
Location: Zagreb
I want one please !
  Reply With Quote
Old 14th March 2019, 06:28 PM   #7
nori1000 is offline nori1000  Austria
diyAudio Member
 
Join Date: Dec 2015
Location: Dornbirn
How many inputs have the Board?

the preis is?

Put me on the list for two as well
  Reply With Quote
Old 14th March 2019, 08:23 PM   #8
t-minik is offline t-minik  France
diyAudio Member
 
Join Date: May 2006
Location: Montpellier
Nice évolution.

I had hope you'll make it open source, am I dreaming?
  Reply With Quote
Old 15th March 2019, 01:51 PM   #9
md_Stryker is offline md_Stryker  United States
diyAudio Member
 
Join Date: Jan 2006
Location: Dundee, MI
LDR Pre MkII - LDR volume control and I/O switching
ZDR,
Can you describe the hardware modifications required to the Arduino Nano with Atmega328PB for this project?

-Michael
  Reply With Quote
Old 15th March 2019, 05:21 PM   #10
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
Quote:
Originally Posted by t-minik View Post
Nice évolution.

I had hope you'll make it open source, am I dreaming?
I would at some point, but I had to go through so many customizations to make IDE work with AtmegaPB variant, I cannot replicate it any more - I just don't remember all the right steps. Without the full list of steps, it would be impossible to compile it.
__________________
Custom PCBs, BOM and LDR Firmware:
https://sites.google.com/view/dacgear/
  Reply With Quote

Reply


LDR Pre MkII - LDR volume control and I/O switchingHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
S&B TX 102 MKII Volume Control Transformes wattsman Swap Meet 2 19th November 2018 08:30 PM
Bluetooth switching for stepped volume control? Technical Petting Parts 0 31st January 2018 09:59 PM
Volume control on DVD player remote. Lose resolution at low volume? Circlotron Digital Source 2 10th June 2011 08:20 PM
Replacing broken volume control with digital volume control Gunawan W Solid State 19 15th December 2010 11:46 AM
About volume control and input switching Janne Nivala Solid State 7 15th August 2001 06:50 AM


New To Site? Need Help?

All times are GMT. The time now is 01:17 AM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 14.29%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Copyright ©1999-2019 diyAudio
Wiki