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.

Arduino based LDR volume and source selection controller
Arduino based LDR volume and source selection controller
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 13th November 2016, 12:33 PM   #541
Morde is offline Morde  Finland
diyAudio Member
 
Join Date: Oct 2014
Arduino based LDR volume and source selection controller
Quote:
Originally Posted by Morde View Post
Something strange is going on with my 8V feed to Nano...
Problem solved. I had the IC2 installed wrong way. Now the voltages are as they should. Now I'll just have to wait for the display to arrive so I can continue this little project.
  Reply With Quote
Old 13th November 2016, 04:54 PM   #542
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
My custom code for OLED and LCD displays is here:

https://drive.google.com/drive/folde...ENmRXNYUEtySVE

It should work out of the box with All-In-One pcb.

If you are using external PCB, you need to swap R5 and R6 in the code. Tested with 5 inputs and 2 outputs only, likely to have bugs in other IO combinations.
__________________
Custom PCBs, BOM and LDR Firmware:
https://sites.google.com/view/dacgear/
  Reply With Quote
Old 13th November 2016, 11:51 PM   #543
rainwalk is offline rainwalk  South Korea
diyAudio Member
 
Join Date: Jun 2007
Quote:
Originally Posted by zdr View Post
My custom code for OLED and LCD displays is here:

https://drive.google.com/drive/folde...ENmRXNYUEtySVE

It should work out of the box with All-In-One pcb.

If you are using external PCB, you need to swap R5 and R6 in the code. Tested with 5 inputs and 2 outputs only, likely to have bugs in other IO combinations.
Thank you VERY Much, zdr.
Isn't it works for original PCB??
  Reply With Quote
Old 14th November 2016, 05:50 AM   #544
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
You need to swap Relay 5 and 6 pins for original pcb.

Sent from my SM-G935F using Tapatalk
__________________
Custom PCBs, BOM and LDR Firmware:
https://sites.google.com/view/dacgear/

Last edited by zdr; 14th November 2016 at 05:58 AM.
  Reply With Quote
Old 15th November 2016, 03:50 PM   #545
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
The code I posted is basically the same as original from OP, with these differences:

1) bugfixes for remote repeat and 0 volume power-on burst from Chris
2) you can choose between 1602 and 2004 displays, also coded by Chris
3) eliminated muting during fast channel switching with left/right buttons (can be easily turned back on, by uncommenting one line of code)
4) menu button direct output switching, for two outputs only
5) Relays 5 and 6 switched places in code. Original code uses Relay 5 to switch outputs, I am using relay 6 for this purpose. Delay relay is not used.

I can also post code without change 5) which should work with controller PCBs attached to original external (balanced) IO PCB variants, but it's easier to simply swap relay 5 and 6 wires.

"My" all-in-one (AIO) PCB is the same as original, with main difference being single-ended 5X2 IO PCB attached to it, to eliminate the wires between controller and IO. You can still use it as original controller PCB with external IO boards, by simply cutting off (or ignoring) attached IO part. AIO PCB uses non-latching relays which are constantly powered on through darlington array. I could not hear any interference whatsoever from DC powering the relays, but it might make some people nervous, so they would need to opt for separate IO PCB with latching relays (and mess with more wires and longer signal path in the process

To make OLED variant as fast as LCD, I had to resort to SSD1306 ASCII library, which does not contain any graphical commands. All the graphics is printed as font, so some custom fonts needed to be integrated. They are included in the OLED folder. OLED variant is still bigger and cannot be debugged due to mem isssues, unless you turn off some parts of the code (like calibration for example). I maximised space used on the OLED, so that even smallest 0.96" OLEDs are visible from moderate distance. OLED has to be 128X64 SSD1306 based with I2C interface for the code to work. OLED does not have backlight, so it releases backlight pin to be reused for something else in case you need it.

All the modifications I made are extremely minor, and full credit is to be redirected to original designer and OP. Same goes for complaints

I am currently playing with ESP8266, so this project might soon become IoT aware
__________________
Custom PCBs, BOM and LDR Firmware:
https://sites.google.com/view/dacgear/
  Reply With Quote
Old 16th November 2016, 08:20 AM   #546
nikosokey is online now nikosokey  Greece
diyAudio Member
 
nikosokey's Avatar
 
Join Date: Sep 2009
Location: Αrta-Greece
I have made both versions the first and Neb AIO PCB there is ΝΟ acoustic difference at all
the Neb AIO pcb provides all the above conveniences for sure.
__________________
Titan 2000 ,Cressendo Millenium 2000, P3A ,VSSA ΤΟ3 ,B1 Buffer ,Golmund Mimesis 9.2 Clone ,Preamplifier Dispre 2 - JFET, DCB1 SALAS, D-Reflector, BibFet, Buffalo II,ES9018K2M, Arduino LDR Volume, AK4490 Discrete Mirand Audio,SSHV2, 6V6 Salas Preamp.
  Reply With Quote
Old 17th November 2016, 12:02 PM   #547
ghiglie is offline ghiglie  Italy
diyAudio Member
 
Join Date: Mar 2013
Location: Ancona but roaming in Rome, Milan and Turin.
Quote:
Originally Posted by zdr View Post
My custom code for OLED and LCD displays is here:

https://drive.google.com/drive/folde...ENmRXNYUEtySVE

It should work out of the box with All-In-One pcb.

If you are using external PCB, you need to swap R5 and R6 in the code. Tested with 5 inputs and 2 outputs only, likely to have bugs in other IO combinations.
Since zdr/Neb was so kind to share his code, I thought and asked his permission to upload it on GitHub, so it's more a "robust" sharing and it frees him to have it stored on his GDrive.

It's here: https://github.com/ghiglie/diyaudio-...r/tree/develop
{ branch development }

I applied a GNU GPLv3. All credits are to respective actors in this thread.
I'm not the maintainer of code or similar, since my board is still in WIP, but I hope this helps. I'll try to get a good ReadMe for it.
  Reply With Quote
Old 17th November 2016, 01:43 PM   #548
Morde is offline Morde  Finland
diyAudio Member
 
Join Date: Oct 2014
Arduino based LDR volume and source selection controller
Thank You zdr and all others who have made this project available. I managed to get it running by using zdr's AIO board and 1602 LCD display. Haven't tried it with actual music signal yet, but everything seems to be in order after successful calibration and some DMM measurements.

I had to install some special USB drivers for my Arduino Nano, as it is probably some kind of clone version. Also the LCDADDRESS parameter had to be changed to 0x27 with my display. After these trials and errors everything worked ok.
  Reply With Quote
Old 17th November 2016, 03:31 PM   #549
MrSlim is offline MrSlim  Canada
diyAudio Member
 
Join Date: Jun 2009
Location: Ottawa, Ontario
Quote:
Originally Posted by ghiglie View Post
Since zdr/Neb was so kind to share his code, I thought and asked his permission to upload it on GitHub, so it's more a "robust" sharing and it frees him to have it stored on his GDrive.

It's here: https://github.com/ghiglie/diyaudio-...r/tree/develop
{ branch development }

I applied a GNU GPLv3. All credits are to respective actors in this thread.
I'm not the maintainer of code or similar, since my board is still in WIP, but I hope this helps. I'll try to get a good ReadMe for it.
Thanks for doing this. It would be a shame to lose the code.
  Reply With Quote
Old 17th November 2016, 05:00 PM   #550
ghiglie is offline ghiglie  Italy
diyAudio Member
 
Join Date: Mar 2013
Location: Ancona but roaming in Rome, Milan and Turin.
Quote:
Originally Posted by MrSlim View Post
Thanks for doing this. It would be a shame to lose the code.
I did not that much! I was mainly concerned about losing the code too, and after that, have a "notepad" to track interesting modifications.
  Reply With Quote

Reply


Arduino based LDR volume and source selection controllerHide 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
Another Modified PGA2311 kit with Arduino for volume control and input selection cjkpkg Analog Line Level 29 17th September 2019 12:04 PM
Passive Preamp: Arduino based, remote control, Relay R2R, input selection maxw Analog Line Level 104 18th July 2019 10:13 AM
LDR Based Input Selection udailey Analog Line Level 27 8th November 2018 04:37 PM
Source select and passive volume for microcontroller-based preamp? vputz Analog Line Level 3 21st July 2012 11:51 AM
WTB: LDR-based volume control / pre jdubs Swap Meet 7 2nd December 2010 02:50 AM


New To Site? Need Help?

All times are GMT. The time now is 05:48 AM.


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