Yet another Volume controlers and source selections - Page 57 - diyAudio
Go Back   Home > Forums > Source & Line > Analog Line Level

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

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 17th August 2011, 05:02 PM   #561
diyAudio Member
 
Join Date: Feb 2010
OK, i will try right now...
  Reply With Quote
Old 17th August 2011, 05:12 PM   #562
diyAudio Member
 
Join Date: Feb 2010
Same thing

Sch : http://vicol-audio.ro/img/volume-con...Shunt_2010.pdf

Last edited by jorgovanko; 17th August 2011 at 05:19 PM.
  Reply With Quote
Old 17th August 2011, 05:57 PM   #563
fotios is offline fotios  Greece
diyAudio Member
 
fotios's Avatar
 
Join Date: Feb 2007
Location: Δραμα - North Greece
Thanks for the help
In schematic is shown that pin1 of encoder is connected at Interrupt pin, while pin3 in Port D.0. In encoders, switch A change state before switch B (close its contact before switch B in CW direction) so usually used as the interrupt source, while switch B is checked to determine the direction of encoder turn. So, your encoder should be connected in the right way on pcb, pin1 left (SwA), pin2 (Com) center, pin3 (SwB) right. No pin inversion.
Have you tried to turn slowly the encoder? Is working in this way?
Fotis
__________________
Best Regards FOTIS ANAGNOSTOU
  Reply With Quote
Old 17th August 2011, 06:10 PM   #564
diyAudio Member
 
Join Date: Feb 2010
Yes, i try to turn it slowly and it work, but only few steps, than atmega again go crazy
  Reply With Quote
Old 17th August 2011, 06:46 PM   #565
fotios is offline fotios  Greece
diyAudio Member
 
fotios's Avatar
 
Join Date: Feb 2007
Location: Δραμα - North Greece
Boban, encoders without detents by 99% can run any of the A and B switch waveform pattern. If the encoder works correctly in slow speed - be it so for a while - that means its connection to the microcontroller ports should also be correct. Then i can think only one thing: inaccurate code of interrupt handler. Are you sure that this project is working? Who has confirmed you for this? ?
In my career, i have seen hundreds supposedly super-duper projects based on incomplete program code.
__________________
Best Regards FOTIS ANAGNOSTOU

Last edited by fotios; 17th August 2011 at 06:56 PM.
  Reply With Quote
Old 17th August 2011, 08:14 PM   #566
fotios is offline fotios  Greece
diyAudio Member
 
fotios's Avatar
 
Join Date: Feb 2007
Location: Δραμα - North Greece
I know few things about Atmel micros, i am in the PIC side but i know that both companies offer similar abilities. Just now i looked on datasheet of Atmega16 due to the debounce (anti-chattering) circuitry around encoder that i can see on the schematic. I don't use this R-C circuit around encoder, is a waste of parts, pcb space etc. Instead this, i have always enabled the internal weak pull-ups of PIC micro Port B. So, the common pin of encoder is tied at 0V node, while A and B terminals are connected directly to PortB inputs. The chattering of encoder is eliminated by the internal Schmitt-Trigger of PIC. I have tried this connection lot of times without problem. To my big surprise, in Atmega16 datasheet i saw that all of its Ports have internal pull-ups!!! Which can be enabled individually! Therefore, C9-C10-C11 and R28 - R29 (forming an anti-chattering filter around encoder) are useless.
Hmmm... This Atmel is really generous compared to Microchip. I think is time to try some Atmega micros.
__________________
Best Regards FOTIS ANAGNOSTOU

Last edited by fotios; 17th August 2011 at 08:19 PM.
  Reply With Quote
Old 18th August 2011, 10:48 AM   #567
danzup is offline danzup  Romania
diyAudio Member
 
danzup's Avatar
 
Join Date: Oct 2007
Location: Bucuresti
Quote:
Originally Posted by jorgovanko View Post
Wait till I reach home and I will provide you with a .bin or .hex for you to test again (it is another variant of firmware than posted on thread) .
Did you write the fusebits necessary ?
The project have been / is in use in more than 250 pieces and is working perfectly , so you made something wrong .
Please check schematics and interconnection as this is a simple project .
I will come again later and i will support you how I can.
Fotios : for sure the project is working !
__________________
There are not better tube than 6P3S and 6N2P for my ears !

Last edited by danzup; 18th August 2011 at 10:52 AM.
  Reply With Quote
Old 18th August 2011, 11:02 AM   #568
diyAudio Member
 
Join Date: Feb 2010
Hi Dunzup, thanks for help. I will check connections later.

Yes, i write the fusebits:

CKSEL 0 = selected
CKSEL 1 = selected
CKSEL 2 = not selected
CKSEL 3 = selected
- Jtag disable
- Internal 8Mhz RC oscillator
  Reply With Quote
Old 18th August 2011, 12:37 PM   #569
danzup is offline danzup  Romania
diyAudio Member
 
danzup's Avatar
 
Join Date: Oct 2007
Location: Bucuresti
Quote:
Originally Posted by jorgovanko View Post
Hi Dunzup, thanks for help. I will check connections later.

Yes, i write the fusebits:

CKSEL 0 = selected
CKSEL 1 = selected
CKSEL 2 = not selected
CKSEL 3 = selected
- Jtag disable
- Internal 8Mhz RC oscillator
- Jtag disable
- Internal 8Mhz RC oscillator (Cksel = 0100 , Sut = 10)
is ok .
I have read your pm and i have seen the video , i will try to think what is wrong there .
I will be back .
-----------------------
Back : it seems you have some type of short circuit between some lines of uC on port where encoder is connected !!!
Pls check ( 3 years ago one user from romanian forum where i have posted first time this firmware
had the same problems and we discover connection in short circuit ) or maybe try programming again as one year ago an user from Germany have some problems that gone after second programming and never reappear .
Either way I will post a new variant for this firmware when I will reach my home (last revision).
__________________
There are not better tube than 6P3S and 6N2P for my ears !

Last edited by danzup; 18th August 2011 at 12:56 PM.
  Reply With Quote
Old 18th August 2011, 12:58 PM   #570
diyAudio Member
 
Join Date: Feb 2010
OK, 'll check when i got home.

I use a AVR-ISP program that has two places to check:

SUT0 Programmed
SUT1 Programmed

SUT0 is deafult. Should i have to check SUT1?

ps: Is it possible to post firmware revision for ATmega32 also? I have few ATmega32 and i would like to verify that they work. Thanks.

Last edited by jorgovanko; 18th August 2011 at 01:01 PM.
  Reply With Quote

Reply


Hide 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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
source selector / volume hum in Aikido cbutterworth Tubes / Valves 1 28th March 2007 07:34 AM
Source for volume knobs? Alois Pass Labs 4 3rd July 2005 05:12 PM
IC Controlers for Class D Power stage frozenpod1 Class D 14 17th May 2005 03:25 PM
Swichable source and volume pot. Whats the best way? sounder Chip Amps 2 22nd September 2003 06:29 PM
detented volume pots... source? Mach_Y Parts 2 1st June 2003 05:23 PM


New To Site? Need Help?

All times are GMT. The time now is 08:44 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2