Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

USB Audio Device - FINALLY WORKS!!


  • Please log in to reply
117 replies to this topic

#81 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 28 April 2012 - 11:57 AM

It seems that spotify can't licence in Australia at the moment. The music powers that be dont want any competition.

That's a pitty because it's a lovely music service. For about USD 14 per month I can listen to most stuff ever produced in modern time.

Most record companies are signed up here and some of the major ones are even part owners and I think they all make money too. This is really the music industry business model upgraded to cope with reality of today.

So what you think about the crystal wave form then?

EDIT: Here's a video showing what happens to the crystal signal when the chip suddenly de-asserts !sspnd. The red LED indicates !sspnd - keep an eye on the crystal when the LED suddenly turns blue:
http://www.youtube.com/watch?v=VWudNDv1NtI&context=C301fe02ADOEgsToPDskLvEzUHp9kyReYAorSKPVbM

#82 Magpie

Magpie

    Advanced Member

  • Members
  • PipPipPip
  • 279 posts
  • LocationAustralia (south island)

Posted 28 April 2012 - 02:06 PM

Sorry Hanzibal

I can't see anything that could be the cause of this problem, that hasn't been mentioned already.

Did you check ALL your ground pins have good contact with ground?

Here is an oscillator that looks similar to yours

My link

The only other thing I can think of is can you move the components on your breadboard to get a similar behaviour? This again would be a lot of effort for little chance of success.
STEFF Shield High Powered Led Driver shield.

#83 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 28 April 2012 - 02:17 PM

I can tell that guy is really proud of his "active FET probe". I'm using a regular passive 1x probe which is probably introducing capacitance to the circuit but behavior is the same even without the probe being attached.

Or maybe I've stumbled across the Heisenberg's principle of uncertainty Posted Image

I'll go over the ground points once more.

#84 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 29 April 2012 - 10:36 PM

Attached an amplifier board over I2S and the board's been working for more than 4 hours straight and counting now. Again, it's a stormy night however no thunder this timePosted Image

If this continues to work over night, I will include 1M pull-down resistors on each of the four I2S lines in the final design of this mid-way board and probably go back to 33pF crystal load caps - but only after having tested that setup thoroughly Posted Image

Hopefully this will mark the end of this trouble shooting story cause it's getting kind of old.

#85 Magpie

Magpie

    Advanced Member

  • Members
  • PipPipPip
  • 279 posts
  • LocationAustralia (south island)

Posted 29 April 2012 - 11:09 PM

Sorry, I must have missed something. You found the problem? Congratulations if it's true.
STEFF Shield High Powered Led Driver shield.

#86 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 29 April 2012 - 11:18 PM

Wise from previous occasions having called out Heureka, I'll save the champagne for later but it seems like I'm very close nowPosted Image

#87 carb

carb

    Advanced Member

  • Members
  • PipPipPip
  • 352 posts
  • LocationCrystal River, Florida

Posted 29 April 2012 - 11:29 PM

Wise from previous occasions having called out Heureka, I'll save the champagne for later but it seems like I'm very close nowPosted Image

IT'S ALIVE! Congratulations.

A good beer sounds better than champagne anyway.

I'll keep my fingers crossed, :huh:

Chuck

#88 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 30 April 2012 - 12:01 AM

Like I said, hold yer horses there na boys, cuz it aint over til the fat lady singsPosted Image

EDIT: Still, so far I've pretty much only managed to create a simple USB sound card with IR remote and headphone jack, i.e. similar to the kind of stuff you can get on the street for 10 bucksPosted Image The real challenge probably comes in designing the amplifier board to go with it. Currently I'm sending I2S to a Texas EVM and I have an LPF connected to an active subwoofer. Sounds great though Posted Image

Thanks guys!

#89 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 30 April 2012 - 07:49 AM

The board's been playing all night long so I think it's now safe to say that it works Posted Image

Lesson learned: Never leave any pins floating!

Finally some love from this board!

#90 Magpie

Magpie

    Advanced Member

  • Members
  • PipPipPip
  • 279 posts
  • LocationAustralia (south island)

Posted 30 April 2012 - 08:25 AM

Good work Hanzibal I guess the music must sound even better after all the trouble and effort it's caused.
STEFF Shield High Powered Led Driver shield.

#91 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 30 April 2012 - 11:32 PM

You bet it does! Posted Image

#92 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 05 May 2012 - 09:21 PM

I'm currently working on a new version which should not be flawed like the current one is. This time I'll send the Gerber layout files to MakePCB and see what their service is like. Here's a demo video of the board that also utilizes an amplifier add-on:

#93 Magpie

Magpie

    Advanced Member

  • Members
  • PipPipPip
  • 279 posts
  • LocationAustralia (south island)

Posted 06 May 2012 - 04:02 AM

Looks great Hanzibal If you can waste an extra bit of time, you might want to put a nicely done graphic on the silkscreen with a picture of a "Frankencat". Maybe something like a cat with bolts in its neck and a bit of lightning nearby. You think I am joking, but I am not.
STEFF Shield High Powered Led Driver shield.

#94 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 12 May 2012 - 09:43 PM

Thanks, sorry for the delay, just got back from a week's vacation in France and Italy. I would love to have a logo of a "Frankencat" and started thinking in line with your suggestion. I'm not much of a router but still considering to maybe integrate the amplifier on the same board, I mean it's kind of scares now plus there's two sides to play with. Could be there's not much room for a logo then even if I go up to 100x80mm which is the limit of the free version of Eagle. What you think?

#95 Magpie

Magpie

    Advanced Member

  • Members
  • PipPipPip
  • 279 posts
  • LocationAustralia (south island)

Posted 13 May 2012 - 11:13 PM

Thanks, sorry for the delay, just got back from a week's vacation in France and Italy.

I would love to have a logo of a "Frankencat" and started thinking in line with your suggestion. I'm not much of a router but still considering to maybe integrate the amplifier on the same board, I mean it's kind of scares now plus there's two sides to play with.

Could be there's not much room for a logo then even if I go up to 100x80mm which is the limit of the free version of Eagle.

What you think?


I guess it wouldn't be good to make the board size bigger just to fit a logo, but maybe just fit whatever you can.

Also I think you should watch the separation of the power stage and the preamp stage, to make sure you don't get inadvertant feedback and hum.
It's been a while since I considered these problems, and sometimes they are not really problems at all.
I am just mentioning the following as a possibility, it is a bit of extra cost and complication.


I think what proved to be the best strategy for noise immunity was to connect the power and common as a star, back to the main power section, and pass the analogue signals around as balanced signals.
Balanced signals are balanced around the common voltage rail.

eg Unbalanced
wire 1. common 0 volts
wire 2 signal 1 sin(wt) volts.

Balanced
wire 1. common 0.5 sin(wt) volts.
wire 2 signal - 0.5 sin(wt) volts.

in either case the signal level is the same but the balanced system has more noise immunity.
I don't think you really need to go this path, but I am sure that most high end equipment uses this type of interconnection whenver possible, between boards and between devices.
STEFF Shield High Powered Led Driver shield.

#96 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 16 May 2012 - 09:44 AM

I totally agree that balanced signal transfers are superior. The only analogue signal path is from the internal DAC of the USB chip to the headphone jack, the rest is purely digital until just before the speaker terminals. The amplifier directly accepts I2S (24 bit @ 192kHz max).

#97 Magpie

Magpie

    Advanced Member

  • Members
  • PipPipPip
  • 279 posts
  • LocationAustralia (south island)

Posted 16 May 2012 - 01:53 PM

I guess I just have my head stuck in old world analogue electronics.
STEFF Shield High Powered Led Driver shield.

#98 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 16 May 2012 - 03:18 PM

Actually, one could say that the sound never becomes analogue but because the speakers act as kind of a physical filter and how the human ear works (energy integral I think), we can't really tell the difference.

Of course there are some other filters before the speakers but it is PWM nevertheless and so basically you yourself are part of the DAC Posted Image

EDIT: I guess any analogue signal can be described as digital one with infinite resolution and infinite sampling frequency.

#99 Magpie

Magpie

    Advanced Member

  • Members
  • PipPipPip
  • 279 posts
  • LocationAustralia (south island)

Posted 04 June 2012 - 02:28 PM

Hi Hanzibal
I saw this video about a few tips for do it yourself production. Might be useful.

I think I might get an oven like his.
Mikes Electric Stuff
STEFF Shield High Powered Led Driver shield.

#100 piwi

piwi

    Advanced Member

  • Members
  • PipPipPip
  • 114 posts
  • LocationGermany

Posted 04 June 2012 - 06:28 PM

Hi There,

would be nice if the vid contains none blocking content. Can't play the video at all !!! :o

can you be so nice and produce one that can play in Germany too !!!!

thanks

Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.