Go Back   Home > Forums > Commercial Sector > Manufacturers > Twisted Pear

Twisted Pear Superior quality electronic kits

Reply
 
Thread Tools Search this Thread
Old 25th August 2012, 06:05 AM   #1141
glt is offline glt  United States
diyAudio Member
 
Join Date: Oct 2004
According to the schematic of the switch, that is the correct behavior. The power is only to power the LEDs and not needed for switching.

The switch basically alternates between open connection and gnd. If you want to mimic this with arduino, then

Open = set the pin as input, write LOW to disable the pull up resistor so that it is basically an open circuit
Gnd = set the pin as output and write LOW

In this case, since you are not applying any voltage to the pins, you might not need the level converter (there are no levels to be converted)

This is how it works:

The inputs are detected by the on-board microprocessor and the microprocessor does the register programming accordingly. If there is no input the local circuitry pulls that input pin High, so the processor would read that input a high or "1", if you ground that input, then the processor would read that input as LOW or "zero"
__________________
www.hifiduino.wordpress.com

Last edited by glt; 25th August 2012 at 06:30 AM.
  Reply With Quote
Old 25th August 2012, 06:36 AM   #1142
DQ828 is offline DQ828  Australia
diyAudio Member
 
DQ828's Avatar
 
Join Date: Mar 2010
Location: Lake Macquarie, East Coast Australia
Quote:
Originally Posted by glt View Post
According to the schematic of the switch, that is the correct behavior. The power is only to power the LEDs and not needed for switching.

The switch basically alternates between open connection and gnd. If you want to mimic this with arduino, then

Open = set the pin as input, write LOW to disable the pull up resistor so that it is basically an open circuit
Gnd = set the pin as output and write LOW

In this case, since you are not applying any voltage to the pins, you might not need the level converter (there are no levels to be converted)
Glt

I had just come to the computer to report the same thing, as I just had the opportunity to test the 6 & 8 pins & as you already know they have 3.3v on them.

My plan was to (because I'm coding challenged) use a couple of tiny solid state relays I have as switches, & trigger them with the code I have already written.

I have no idea how to change an Input to a Output mid code, I thought they where either set as one or the other in the void setup and then left that way.

I am a carpenter so I can read plans, not schematics which is only too evident by my reading of the switch schematic.

Bye the way, thanks for your help.

I may have upset things in the BIII with my little mistake, because after the mishap I reconnected the switch module as before & Input 1 was connecting when the switch module was on Input 1 & 3. Also Input 2 was connecting when the switch module was switched to Input 2 & 4, which means I dont have access to inputs 3 & 4, Input 4 is the one I have been using for the Coaxial SPDIF and it was very stable, where I have my toslink on Input 1 & it has lots of dropouts.

Does the BIII have some sort of Reset function?

Last edited by DQ828; 25th August 2012 at 06:49 AM.
  Reply With Quote
Old 25th August 2012, 06:57 AM   #1143
glt is offline glt  United States
diyAudio Member
 
Join Date: Oct 2004
Carpentry (also known as woodworking) is a fine skill... I wish I had the skill and equipment...

Relays will work too.
You can change a pin from input to output anywhere in the code.

If you want to learn more, you can read my old blog: hifiduino.blogspot.com starting from the beginning. At that time I started learning the Arduino thing...
__________________
www.hifiduino.wordpress.com
  Reply With Quote
Old 25th August 2012, 07:22 AM   #1144
glt is offline glt  United States
diyAudio Member
 
Join Date: Oct 2004
Quote:
Originally Posted by DQ828 View Post
Glt

I may have upset things in the BIII with my little mistake, because after the mishap I reconnected the switch module as before & Input 1 was connecting when the switch module was on Input 1 & 3. Also Input 2 was connecting when the switch module was switched to Input 2 & 4, which means I dont have access to inputs 3 & 4, Input 4 is the one I have been using for the Coaxial SPDIF and it was very stable, where I have my toslink on Input 1 & it has lots of dropouts.

Does the BIII have some sort of Reset function?
Everytime you power cycle the DAC it will reset. That is a strange behavior. There is no way to combine the inputs unless you tell the microprocessor to combine the inputs. Check the other switches especially switch 8 of SW2
__________________
www.hifiduino.wordpress.com
  Reply With Quote
Old 25th August 2012, 08:10 AM   #1145
Corpius is offline Corpius  Netherlands
diyAudio Member
 
Corpius's Avatar
 
Join Date: Jan 2011
Quote:
Originally Posted by DQ828 View Post
Iv'e done a bit of testing on the switch unit, I connected a voltage source to the power inputs of the switch module & then read the output pins that go to pin 6 & 8 on the BIII.

I expected to see the output pins vary from High to Low, I tested between the power ground & the output pins. The pins go low to ground but at no stage does a voltage show on the output pins, the reading I got went like this.


Input 1 No reading & No reading
Input 2 To Ground & No Reading
Input 3 No Reading & To Ground
Input 4 To Ground & To Ground

I haven't had a chance to test the BIII inputs
That is why I wanted you to measure it before connecting it to the EXT_IO at the BIII, so you would not apply a voltage when you should not. I have never worked with the selection switch, so I had now way of knowing that Pin 6 & 8 only go LOW or Break the connection. I did also expect them to go HIGH at a certain point. Sorry I told you to buy the level converter , but you'll need it anyway when you are going for the HiFiDUINO approach.

Quote:
Originally Posted by DQ828 View Post
I have no idea how to change an Input to a Output mid code, I thought they where either set as one or the other in the void setup and then left that way.

I am a carpenter so I can read plans, not schematics which is only too evident by my reading of the switch schematic
To set a pin to an Input: pinMode(pinNumber, INPUT); (where pinNumber is the number of the pin you want to use)
Set it to an output: pinMode(pinNumber, OUTPUT);

You already know how to set the pins HIGH or LOW
  Reply With Quote
Old 25th August 2012, 10:46 AM   #1146
DQ828 is offline DQ828  Australia
diyAudio Member
 
DQ828's Avatar
 
Join Date: Mar 2010
Location: Lake Macquarie, East Coast Australia
Quote:
Originally Posted by Corpius View Post
That is why I wanted you to measure it before connecting it to the EXT_IO at the BIII, so you would not apply a voltage when you should not. I have never worked with the selection switch, so I had now way of knowing that Pin 6 & 8 only go LOW or Break the connection. I did also expect them to go HIGH at a certain point. Sorry I told you to buy the level converter , but you'll need it anyway when you are going for the HiFiDUINO approach.

To set a pin to an Input: pinMode(pinNumber, INPUT); (where pinNumber is the number of the pin you want to use)
Set it to an output: pinMode(pinNumber, OUTPUT);

You already know how to set the pins HIGH or LOW
Your assistance has been all good, I should have followed your instructions more carefully.

Thanks
  Reply With Quote
Old 25th August 2012, 10:47 AM   #1147
DQ828 is offline DQ828  Australia
diyAudio Member
 
DQ828's Avatar
 
Join Date: Mar 2010
Location: Lake Macquarie, East Coast Australia
Quote:
Originally Posted by glt View Post
Everytime you power cycle the DAC it will reset. That is a strange behavior. There is no way to combine the inputs unless you tell the microprocessor to combine the inputs. Check the other switches especially switch 8 of SW2
Thanks for the help, I will get reading.
  Reply With Quote
Old 25th August 2012, 11:02 AM   #1148
diyAudio Member
 
Join Date: Jan 2011
Location: sitting down
Hi all,

So I started testing the regulators feeding CCS 5,.25V

i have 2 that measure between 3.290 and 3.295
i have 1 that measures about 1.19
on the other avcc reg, the D1 does not light up but both output measure about 3.42

Do you think I'm good to power the board?
What does D1 indicate?
  Reply With Quote
Old 25th August 2012, 01:51 PM   #1149
DQ828 is offline DQ828  Australia
diyAudio Member
 
DQ828's Avatar
 
Join Date: Mar 2010
Location: Lake Macquarie, East Coast Australia
Default Success

Glt & Corpius

Thanks again for your help I have installed the relays that I had sitting around doing nothing & now everything works. I can switch between the the sources (must buy more sources or build some sources ) and I am back to the SPDIF Coaxial which appears to be working fine, unlike the toslink.

All that's left to implement is the screen.

I am a bit disappointed with the TP people they had 14 days to offer some advice & didn't even though I asked them directly, then within 2hrs of me suggesting the number of dropouts with the BIII was a bit flaky, I had a response from Russ defending the BIII!
Attached Images
File Type: jpg 12-08-2 Arduino Source Select01_2.JPG (425.1 KB, 162 views)
File Type: jpg 12-08-2 Arduino Source Select01.JPG (371.7 KB, 161 views)
File Type: jpg 12-08-2 Arduino Source Select01_1.JPG (727.7 KB, 151 views)
  Reply With Quote
Old 25th August 2012, 02:38 PM   #1150
Corpius is offline Corpius  Netherlands
diyAudio Member
 
Corpius's Avatar
 
Join Date: Jan 2011
Good to read that you have worked it out! Now it is just the display. If you need some help for displaying the correct volume or something else, let me know.

I noticed your tinkerkit MOSFET modules. What are you switching with these modules?
  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
Legato or IVY III outputs for Buffalo II? natzev_i Twisted Pear 272 21st March 2011 08:08 PM
Buffalo Dac original vs Buffalo II mrtakib Digital Line Level 7 24th August 2010 06:47 AM
How much compromise, small EQ'ed sub audiobomber Subwoofers 10 15th March 2007 09:46 PM
Considering a compromise mashaffer Full Range 7 14th May 2006 11:45 PM
OB subs: Best compromise? MtnBob Subwoofers 13 26th May 2004 02:19 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