Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Digital Line Level DACs, Digital Crossovers, Equalizers, etc.

spdif sample rate display, OLED style
spdif sample rate display, OLED style
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 28th June 2015, 08:43 PM   #1
linuxworks is offline linuxworks  United States
diyAudio Member
 
linuxworks's Avatar
 
Join Date: Jul 2008
Location: Santa Clara, CA
Default spdif sample rate display, OLED style

a quickie project that can be integrated into your own DIY dac or even a commercial one. you need 5v, wordclock (from an spdif rx chip's output, for example; can be 3.3v or 5v based) and optionally a lock-on led wire.

the oled display is a $10 part and is pretty common on ebay and other places. controller is the arduino nano, for simplicity (cost of that is $5 or less, including usb interface). the button is to turn the display on/off and is optional.

if there is interest, I can post the arduino source code. maybe even get small boards made (group buy).

here, I have an ebay ak4399 dac with this board added on (clearly its not permanently mounted, lol; but just put there for debug and development). you can pick a .96" or 1.3" oled display, and they come in white or blue. white works well when you put it behind a color plastic filter.

Click the image to open in full size.

its also not hard to convert that button into an input selector button.
__________________
My Photostream:http://www.flickr.com/photos/linux-works/
  Reply With Quote
Old 28th June 2015, 09:22 PM   #2
Nisbeth is offline Nisbeth  Denmark
diyAudio Member
 
Nisbeth's Avatar
 
Join Date: Jan 2001
Location: Denmark
spdif sample rate display, OLED style
Nice! Would be very interested in code and schematics

/U.
__________________
DIY projects blog
  Reply With Quote
Old 28th June 2015, 11:01 PM   #3
linuxworks is offline linuxworks  United States
diyAudio Member
 
linuxworks's Avatar
 
Join Date: Jul 2008
Location: Santa Clara, CA
schematic is simple. I'll describe it since its too simple to even draw

pin5 is the wordclock input; has to be pin5 for the freq counter software lib.

i2c pins go to the clock/data on the oled. on the 328 arduino chip, its the top 2 pins on the dip pkg (28 and 27). match those up with clock and data on oled. add 5v and gnd to oled. on arduino chip, add resonator or xtal as usual. jumper the ground on one side of the chip to gnd on the other (I think the 2nd ground on the 328 chip is the digital vs analog gnd; but I always connect them). I don't connect aref or avcc since I don't need them.

button goes from pin11 (arduino D11, that is) to gnd. there is a pullup in software for that button.

I think that's it. wordclock goes on D5 of the arduino and you may or may not need a 74hc14 or similar chip but I didn't. a 3.3v or 5v wordclock should be enough for the 5v arduino.

be sure your oled is 5v. mine are but some are 3.3v. similarly, be sure the i2c lines on the oled are 5v tolerant.

I just built a 2nd one. I programmed a blank 328 atmega chip on my programmer, moved it to a perf board and wired things up as I described. an hour later, it powers on and says hello. just the resonator, a .1 bypass on 5v/gnd, the button and oled and that's enough to verify the circuit comes on. take a freq generator and make sure its output is NOT over 5v (!) and give it spdif freqs like 32, 44.1, 48khz and so on, and the display should show the nearest standard value.

I'll post a url to the source once I upload it. should be ready to post in a day or two, once I test this out a bit more and make sure I didn't forget anything.

eventually I hope to get this running on a small attiny chip, but the freq counter code I have is meant for the actual 328 atmega and so I continue to 'waste' those, for the time being.
__________________
My Photostream:http://www.flickr.com/photos/linux-works/
  Reply With Quote
Old 29th June 2015, 12:13 AM   #4
linuxworks is offline linuxworks  United States
diyAudio Member
 
linuxworks's Avatar
 
Join Date: Jul 2008
Location: Santa Clara, CA
just built a 2nd one

Click the image to open in full size.

Click the image to open in full size.

this uses discrete atmega 328 chip, 28pin skinny dip with cheap 16mhz resonator. ie, I did not use the convenient nano modules, I used the regular old blank 328 chip. there is really not much to this!

the 3 wires leaving it: red is 5v, brown is gnd and orange is wordclock in.

I bet a custom smd board could be made that would be the same size as the smallest oled display. then, it would fit into even more dac and switch (and maybe avr) panels.

I don't have a coin in there to show scale, but the board is standard .1" holes, so you can figure out how big that board is and how big an opening you'd need for the oled display (the visible part is much less than the whole glass, so your front panel should have a smaller opening than this display would have you think.)
__________________
My Photostream:http://www.flickr.com/photos/linux-works/

Last edited by linuxworks; 29th June 2015 at 12:28 AM.
  Reply With Quote
Old 24th July 2017, 02:35 PM   #5
abza is offline abza  South Africa
diyAudio Member
 
Join Date: May 2014
Hi @linuxworks - could you post/send me the source code to this project? Would love to recreate it!

Thanks!
  Reply With Quote
Old 26th July 2017, 07:57 AM   #6
percival007 is offline percival007  England
diyAudio Member
 
Join Date: Sep 2007
I would be interested in a PCB/finished product.
I am not up to speed with Arduino programming so a finished product would be great.

P.
  Reply With Quote
Old 26th July 2017, 09:05 AM   #7
Dagwood is offline Dagwood  New Zealand
diyAudio Member
 
Dagwood's Avatar
 
Join Date: Feb 2010
Location: North of Auckland
Great project, I'm in

Cheers
__________________
If you keep digging in the garden of failure you will eventually find success
  Reply With Quote
Old 26th July 2017, 04:17 PM   #8
linuxworks is offline linuxworks  United States
diyAudio Member
 
linuxworks's Avatar
 
Join Date: Jul 2008
Location: Santa Clara, CA
let me dig up the code, clean it up a bit and I'll post it.

I recently made a 3d printed box to house an existing spdif transceiver demo board, so you don't have to 'build' a lot to get the sampelrate display:

Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

the case is regular PLA from my 3d printer and its an open source design, too.

on the middle photo, the blue pcb hanging in the air (air wired) is the arduino nano and it is supported by 2 pins (i2c) on the oled display. its a mounting hack to be sure, but it works and it fits inside this small box without taking up any more room. it taps into wordclock on the i2s line on that wolfson repeater board.

the 'circuit' is really simple and I'm thinking of making a very small backpack for the oled display that would hold the arduino (not a nano, but an arduino chip, its xtal and some small parts for support). may not even have to be 2layers, it would be so simple.

the demo board can be found on ebay from 'sure electronics' and if you search on wm8804 (or 8805) it should come up. its around $20 for the board and while its a large board for what it does, it sure does give a fast and easy way to prototype this.

if there is interest, a follow-on board could be made that would have both the arduino and some kind of spdif receiver chip. that would save having to get hold of the Sure brand board and the size of the chassis could be even smaller.

I still like the backpack idea for the samplerate display; so that just the display part could be diy integrated into existing dacs; rather than putting this in its own box.

and the Sure board also is a true pass-thru, so it will show the spdif rate and also reclock the audio from input selected port to BOTH output ports.
__________________
My Photostream:http://www.flickr.com/photos/linux-works/
  Reply With Quote
Old 26th July 2017, 04:29 PM   #9
abza is offline abza  South Africa
diyAudio Member
 
Join Date: May 2014
Ah, amazing! That looks fantastic. I'm also planning on using one of those standard 128x64 OLED displays, so looking forward to the Arduino code. Fantastic - thanks so much!
  Reply With Quote
Old 30th July 2017, 02:36 AM   #10
yngvejos is offline yngvejos  Norway
diyAudio Member
 
yngvejos's Avatar
 
Join Date: May 2015
Cool project, just ordered a few displays and arduino nanos. Can you please send me the code?

Best rgds
Yngve
  Reply With Quote

Reply


spdif sample rate display, OLED styleHide 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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SD-card player with OLED display Tolu Digital Source 3 23rd April 2011 09:14 PM
Sample rate display staki Digital Line Level 12 8th May 2010 12:34 PM
Sample rate into BB PCM1798? Asgard Digital Source 14 22nd July 2006 01:54 PM
New sample rate converters from TI hifiZen Digital Source 3 16th March 2003 12:42 AM


New To Site? Need Help?

All times are GMT. The time now is 02:23 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 14.29%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Copyright ©1999-2019 diyAudio
Wiki