Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 33
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
No birthdays today

Next birthdays
05/04 Matthew T. (35)
05/04 Amrit Deshmukh (60)
05/05 Alexandre (32)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Computer Science
« Previous topic | Next topic »   

Raspberry Pi and DACs

 1 2 3 4 
Move Thread LAN_403
Steve Conner
Mon Nov 26 2012, 10:39AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Carbon_rod, what are you suggesting, that the snd_bcm2835 driver conflicts with the USB audio driver? My Wheezy image runs snd_bcm2835 at boot by default, but I could try disabling it. The biggest difference I found was by configuring mpd to use "plughw:1,0" instead of "hw:1,0". This was what finally got rid of the glitches at 44.1kHz. I think the plug device must do some additional buffering and run with lower interrupt latency, maybe because it's part of the kernel.

I heard about the Pi power problems, so the first thing I did was hard-wire a 5V power supply to everything, bypassing the polyfuses, protection diodes and so on.

I disabled the CPU speed stepping, but I haven't tried overclocking it yet. I also used apt-get update and apt-get upgrade, I understand that this gets the latest firmware and drivers, however I didn't try running raspi-config again afterwards. Is this needed to enable a new kernel if "apt-get upgrade" delivered one?

I don't see how the Teensy 3.0 is relevant, can it mount a 1TB USB hard disk, read FAT32 and run mpd? What does an oversized picture of a laser have to do with this thread?
Back to top
Carbon_Rod
Tue Nov 27 2012, 08:59AM
Carbon_Rod Registered Member #65 Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
@Steve
Overclocking practically eliminated the USB delay bugs on some devices, and GPIO18 "PWM mode" dma timer interferes with more than just the audio drivers.

@macona
This link may offer some insights:
Link2

wink
Back to top
Ash Small
Tue Nov 27 2012, 10:59AM
Ash Small Registered Member #3414 Joined: Sun Nov 14 2010, 05:05PM
Location: UK
Posts: 4245
Steve Conner wrote ...

a £29 USB DAC from Maplin (order code A14KF)

I think I need to add one of these to my Xmas list smile

What I'd really like to see is an Android app that lets you connect a smartphone to the Pi's USB interface, and use the keyboard and screen on the phone to program the Pi.
Back to top
Steve Conner
Tue Nov 27 2012, 11:09AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Carbon_rod: I'll try overclocking it a bit then and report back smile What is this "GPIO18 PWM mode" of which you speak, does it have anything to do with the onboard audio output?

Ash: You can do this with SSH, if you can get a SSH client for Android... Link2
Back to top
Ash Small
Tue Nov 27 2012, 12:14PM
Ash Small Registered Member #3414 Joined: Sun Nov 14 2010, 05:05PM
Location: UK
Posts: 4245
Steve Conner wrote ...


Ash: You can do this with SSH, if you can get a SSH client for Android... Link2


Looks like that will do the job, Steve.

Just add a USB Wi-Fi or Bluetooth unit to the RPi, and you have wireless control of your RPi based multimedia system from your phone smile
Back to top
Steve Conner
Tue Nov 27 2012, 01:00PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Yup... FWIW, the player application I use, MPD, has dedicated remote control apps for iOS and Android. Off to Maplin to get a USB wi-fi dongle now! smile
Back to top
Steve Conner
Wed Jan 16 2013, 12:25PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Update: I now have this working at 24 bits, 96kHz using the USB-I2S module from QNKTC. smile
Back to top
Ash Small
Wed Jan 16 2013, 04:00PM
Ash Small Registered Member #3414 Joined: Sun Nov 14 2010, 05:05PM
Location: UK
Posts: 4245
Steve, which of the half a dozen or so WiFi dongles dongles that Maplin sell did you use, and why, as I'm also building something similar?

What specs. should I be looking for?
Back to top
Steve Conner
Wed Jan 16 2013, 04:51PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
I got the "Edimax N150" dongle, because it was the cheapest one that anyone had mentioned on the Raspberry Pi forums.

It has a Realtek chip inside, supported by Raspbian out of the box, by the rtl8192cu kernel module. I easily got it to join my home wi-fi after some tinkering with config files. (There is probably an easy tool to configure it in the GUI, but I'm only using the console for this project.)

The only niggle was that it had a power saving mode that sometimes interrupted incoming traffic. It was fine for streaming radio, but the Windows file sharing and mpod remote control randomly failed to work. I disabled power management using the method below and everything worked fine.

wrote ...
As root, create a file /etc/modprobe.d/8192cu.conf with the following contents:
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0

Link2,8618

The R-Pi is the funnest computer toy I've played with in a long time! smile
Back to top
Conundrum
Sat Feb 09 2013, 11:07AM
Conundrum Registered Member #96 Joined: Thu Feb 09 2006, 05:37PM
Location: CI, Earth
Posts: 4059
If you ask me, the RPi model A should have included a second USB port to mount small devices where the network chip used to go.
Back to top
 1 2 3 4 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.