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 9th December 2018, 08:28 AM   #1131
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
I figured out why latest Arduino IDE breaks IR - it's the timing in newPulseIn function:

return clockCyclesToMicroseconds(width * 29 + 16);

this line needs to be changed to:

return clockCyclesToMicroseconds(width * 22 + 16);

Repeat will still not work after this, so further changes to be made are these:

//if (duration == 0) // This is an error no start or end of pulse
// return (255); // Use 255 as Error

if (repeat && (c4 == 2) or repeat && (c4 == 1)) // Only way to verify a repeat from this remote is with the 2 code?

Now we can all switch to latest IDE.
__________________
Neb. [LDR Volume Control OLED firmware:]
https://drive.google.com/open?id=0B7...ENmRXNYUEtySVE
  Reply With Quote
Old 9th December 2018, 04:09 PM   #1132
t-minik is offline t-minik  France
diyAudio Member
 
Join Date: May 2006
Location: Montpellier
You made an awesome work on that project zdr.
Thanks a lot.

I use it for a few month now and I can say it's very convenient to use.
  Reply With Quote
Old 9th December 2018, 04:12 PM   #1133
SpyNet is offline SpyNet  Greece
diyAudio Member
 
Join Date: Nov 2013
Have you corrected at your google drive shared files?
  Reply With Quote
Old 9th December 2018, 04:28 PM   #1134
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
Quote:
Originally Posted by SpyNet View Post
Have you corrected at your google drive shared files?
So far only VxD_OLED1602_4X2 has been corrected.
__________________
Neb. [LDR Volume Control OLED firmware:]
https://drive.google.com/open?id=0B7...ENmRXNYUEtySVE
  Reply With Quote
Old 9th December 2018, 08:43 PM   #1135
wineds is offline wineds  Australia
diyAudio Member
 
Join Date: Apr 2006
Location: Melbourne
Quote:
Originally Posted by zdr View Post
I figured out why latest Arduino IDE breaks IR - it's the timing in newPulseIn function:

return clockCyclesToMicroseconds(width * 29 + 16);

this line needs to be changed to:

return clockCyclesToMicroseconds(width * 22 + 16);

Repeat will still not work after this, so further changes to be made are these:

//if (duration == 0) // This is an error no start or end of pulse
// return (255); // Use 255 as Error

if (repeat && (c4 == 2) or repeat && (c4 == 1)) // Only way to verify a repeat from this remote is with the 2 code?

Now we can all switch to latest IDE.
Looks like some of my hacks @zdr?
  Reply With Quote
Old 9th December 2018, 09:01 PM   #1136
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
Quote:
Originally Posted by wineds View Post
Looks like some of my hacks @zdr?
No idea, did I step on parts of your code?
__________________
Neb. [LDR Volume Control OLED firmware:]
https://drive.google.com/open?id=0B7...ENmRXNYUEtySVE
  Reply With Quote
Old 9th December 2018, 09:31 PM   #1137
wineds is offline wineds  Australia
diyAudio Member
 
Join Date: Apr 2006
Location: Melbourne
Quote:
Originally Posted by zdr View Post
No idea, did I step on parts of your code?
I recall having to hack those bits for a different IDE version when I first built it. I recall using a 1khz square wave to try and recalibrate the software based timing code. The repeat code was also troublesome and was based on codes returned by the remote in debug mode. A weakness of this design is that the remote code is not interrupt driven.
  Reply With Quote
Old 10th December 2018, 07:30 PM   #1138
yurgs is offline yurgs
diyAudio Member
 
Join Date: Jan 2012
Location: Nuremberg, Germany
Hey there,

here is another casing option for the LDR controler, i put it i an old Tuner Case and i think it fits quite well.
might not be for everyone but i like the "classic" look.

The big knob drives the encoder (and still the tuning bar )
The fm mode Button does the same thing as pushing the encoder.


i dont seem to be able to find how to dim the display, i used the latest 4x2s code.


And there is a font included in the file, modern_h which only cosists of numbers, does anyone have the matching (size24x32) letters?



Thanks!
Attached Images
File Type: jpg IMG_20181210_201101.jpg (613.5 KB, 220 views)
__________________
Lenco L75/ Jelco 750L/ Denon DL103 Shibata // Hypnotoad's AD797 Pre // LDR Arduino Controller // chocoholic's Liteamp // Prestigeous 2 Monitor
  Reply With Quote
Old 11th December 2018, 01:08 PM   #1139
zdr is offline zdr  Belgium
diyAudio Member
 
zdr's Avatar
 
Join Date: Nov 2005
Location: Brussels, Beograd
Quote:
Originally Posted by yurgs View Post
Hey there,

here is another casing option for the LDR controler, i put it i an old Tuner Case and i think it fits quite well.
might not be for everyone but i like the "classic" look.

The big knob drives the encoder (and still the tuning bar )
The fm mode Button does the same thing as pushing the encoder.


i dont seem to be able to find how to dim the display, i used the latest 4x2s code.


And there is a font included in the file, modern_h which only cosists of numbers, does anyone have the matching (size24x32) letters?



Thanks!
NICE! No letters, sorry.
__________________
Neb. [LDR Volume Control OLED firmware:]
https://drive.google.com/open?id=0B7...ENmRXNYUEtySVE
  Reply With Quote
Old 11th December 2018, 01:27 PM   #1140
yurgs is offline yurgs
diyAudio Member
 
Join Date: Jan 2012
Location: Nuremberg, Germany
Thanks Neb!
the extra size of the tuner case also allows me to put the crossover and my two Sub-Amps in there.


The Letters are not really that important, just a nice to have...

I wanted to use Kapital letters instead of the input number. like PC,BT,

I also tried to include Fonts from the Adafruit_GFX.h Library, but thats above my skill level with arduino.


Do you have an idea why my Display is not fading?
it always stays lit fully, i used your latest code for Oled_4x2s, the Display is same as the one you posted earlier in this thread. IDE is 1.6.9, but my board is not your newest V3, i got the "previous" Rev.


You put an amzing amout of work into this!

Thanks again for all your help!
J
__________________
Lenco L75/ Jelco 750L/ Denon DL103 Shibata // Hypnotoad's AD797 Pre // LDR Arduino Controller // chocoholic's Liteamp // Prestigeous 2 Monitor
  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
LDR Based Input Selection udailey Analog Line Level 27 8th November 2018 04:37 PM
Passive Preamp: Arduino based, remote control, Relay R2R, input selection maxw Analog Line Level 102 17th October 2017 09:05 AM
Another Modified PGA2311 kit with Arduino for volume control and input selection cjkpkg Analog Line Level 28 15th December 2015 10:21 AM
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 02:25 PM.


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