About admin

Posts by admin:

 
0

Raspberry Pi Hifi

on Apr 14, 2015 in Uncategorized

For Christmas I was given a Raspberry Pi as a Kris Kringle gift. It is a model A+ with no network interface card and 1 USB port. It took me a while to decide what to do with it.

After looking at a few projects, I decided to set up a streaming music server for streaming my music collection that lives on a Windows 7 server to my HiFi in another room. The first real obstacles I found were that a wifi dongle would be needed and the audio out through the headphone jack of the RPi is poor quality. I could either scrap the project or buy a digital to analogue converter and wifi.

I bought an “Audiophonics DAC Sabre ES9023 I2S” on eBay for $18 since the picture showed it connected to a RPi. My A+ however does not have the 8 pin “P5” connector so I had to work out what pins to connect up to the 40 pin GPIO and use the newest kernel 3.18.7+. I also bought a “ralink rt5370 based dongle” for $8.

At this stage I should say that I am using the Volumio 1.55 software image. After wiring it up it worked first time and the sound is brilliant. The DAC lacks a hardware volume control so the volume is either max or controlled by software.

Basic wiring is below;

I2S DAC wire -> GPIO Pin
LRCK (red) -> 35
GND (yellow) -> 39
DATA (white) -> 40
BCK (black) -> 12
MCLK (orange) not used
+5v (red) -> 4
0v (black) -> 6

Closeup of the RPi showing DAC and wifi

IMG_20150405_091925

 

 

 

 

 

 

 

I wasn’t completely happy with the software because I wanted to be able to control the HiFi with my Android phone or tablet. There are some good apps to control Volumio such as MPDroid but I wanted more.

Next, I have installed the free Logitech Music Server on my Windows 7 server and squeezelite-armv6hf (Logitech LMS client) on my RPi. I think this is a better solution as the RPi is now a lightweight client instead of a music server.

As a controller I am using OrangeSqueeze app on my tablet. This is not free but is very user friendly and works nicely.

Finally, I have installed the “Triode” third party Spotify app in the Logitech Music Server and now can play Spotify using OrangeSqueeze.

OrangeSqueeze Album View
Screenshot_2015-04-05-09-13-50

 

 

 

 

 

 

 

 

 

 

 

OrangeSqueeze Spotify View
Screenshot_2015-04-05-09-13-04

 
0

Hiding Indexes

on Nov 25, 2013 in Database, Oracle

I just found out that its possible to hide indexes rather than making them unusable. alter session set ddl_lock_timeout = 10; alter index INDEX_START_DATE_TIME invisible; This is beneficial because the index does not have to be rebuilt it it is made visible again.

 
0

Media Portal Online Videos Tweak

on Sep 16, 2013 in MediaPortal

Its possible to use VLC as an alternative player using the context menu. Its also possible to change the default by editing the OnlineVideoSites.xml and adding player=”VLC” (or player=”WMP”)

 
0

MySQL variables for 5.6

on Jul 23, 2013 in Database

After upgrading MySQL Cluster from 7.2 to 7.3 (5.6.11) performance was poor. My workload is not typical OLTP or OLAP but a mixture of both and some real-time updating. Also I have 2 MySQL instances running on different ports and the disk subsystem is quiet slow. The following parameters got the databases back to normal […]

 
0

Accessing Hulu, The Daily Show etc using DD-WRT

on Nov 2, 2012 in Uncategorized

DNS redirection can be easily set up on a DD-WRT enabled router such as my D-Link DIR-815. Under the services tab there is a setting for DNSMasq : Additional DNSMasq Options local=/local/ server=/tunlr.net/184.82.222.5 server=/hulu.com/184.82.222.5 server=/mtv.com/mtvnservices.com/fwmrm.net/google-analytics.com/imrworldwide.com/demdex.net/scorecardresearch.com/quantserve.com/doubleclick.net/chartbeat.com/184.82.222.5 These IP addresses point back to tunlr.net. An additional benefit is that I can VPN into the router and then […]

 
0

StreamedMP Tweaks

on May 22, 2012 in HTPC, MediaPortal, Uncategorized

My preferred skin for MediaPortals is StreamedMP and these tweaks make it slightly more user friendly. 1. Fonts The Avalon skin has a nicer font “AvalonType Light” and this can be downloaded and installed in the windows fonts directory and added to the fonts.xml file instead of the current fonts. Install the font by installing […]

 
0

Tuning DD-WRT

on Apr 24, 2012 in Uncategorized

echo 0 > /proc/sys/net/ipv4/tcp_westwood (default 1) echo 1 > /proc/sys/net/ipv4/tcp_vegas_cong_avoid echo 3 > /proc/sys/net/ipv4/tcp_vegas_alpha echo 3 > /proc/sys/net/ipv4/tcp_vegas_beta TCP Vegas tunes the network performance based on packet delay instead of packet loss.

 
0

Microsoft Remote Debounce

on Apr 13, 2012 in HTPC, MediaPortal

The MCE remote implements something called “debounce”, which means that with each button press the remote alternates the signal code it sends, I think to limit accidental double button presses. Hence, when you program your universal remote it only has one of the codes, so it will work the first time you press it but […]

 
0

replace into

on Apr 10, 2012 in Database

I had been using mysql’s replace into syntax until I read this article http://code.openark.org/blog/mysql/replace-into-think-twice which makes a lot of sense. I have mostly changed statements to use insert .. on duplicate key instead. For example insert into currentusage ( userid, anytimebytesuploaded, anytimebytesdownloaded, peakbytesuploaded, peakbytesdownloaded, offpeakbytesuploaded, offpeakbytesdownloaded, bytesexcluded) select userid, sum(case when timing = ‘ANYTIME’ then […]

 
0

Upscaling Xvid using Avisynth

on Mar 16, 2012 in HTPC, MediaPortal

I knew that ffdshow could use avisynth for complex scaling and sharpening but only recently had the time to play around with it. I’m pretty happy with the results. This tutorial was the basis of my experimentation – http://www.homecinema-hd.com/ffdshow-video-avisynth_en.html There are a number of software versions of all the associated plugins so these are the […]

Copyright © 2008-2018 Brinsmead Data Services All rights reserved.