electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
  host / artist show at your time
today> Modulator ESP Adventures In Sound
 Forum index » DIY Hardware and Software
DIY 8-BIT SAMPLER - ADVICE NEEDED
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [13 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
heinzer



Joined: Aug 11, 2018
Posts: 12
Location: brooklyn
Audio files: 2

PostPosted: Wed Nov 10, 2021 10:58 pm    Post subject: DIY 8-BIT SAMPLER - ADVICE NEEDED Reply with quote  Mark this post and the followings unread

Hey folks - this is going to be my first post/question (though I am a longtime fan and reader of this incredible useful forum)

the idea: a simple 8 bit voltage controlled sampler using S-RAM for sample storage…audio/synth signal into ADC -> S-RAM -> DAC - mixer -> audio out…

control mechanisms:
1. voltage controlled clock (4046) timing the counters / ADC / S-RAM / DAC…
2. RD/WR switch using a d-flip flop to align the switch timing with the clock

I got most of the device working…almost 20sec of relatively clean audio looping

the issue: whenever I use the RD/WR switch to insert / record audio, there’s an audible pop in the sample (1x press/start + 1x release/end)…it is only audible in quiet passages, but just too annoying…

the whole device is build on protoboard (mostly soldered) and has many long overlapping wires between the ICs…see photo…(I assume this could be an issue, but everything else works fine) it runs on 5V provided by a 9V wall wart (high quality) through a voltage regulator (1A)…all the ICs have bypass caps…

I read about timing issues in the nanoseconds between the ICs…I still have to make a timing diagram (was hoping it wouldn’t be necessary)…I first thought the S-RAM is switching the WR ON too early and OFF too late so that the data from the ADC is not valid yet…but there might be something else wrong…

I tried the following:

1. tested ADC audio input while switching -> no pop there (but on the sample)
2. delayed the clock to the S-RAM while keeping the ADC/DAC clock original…(I used different numbers of gates)…still popping, though some gate combinations seem to make it less audible…
3. used jk-flip flop before the RD/WR switch (to avoid grounding the d-flip flop directly)…still popping
4. used NO flip flop to switch RD/WR directly -> still popping
5. took the ADC off…basically no signal into S-RAM…still popping!!! (that is the strangest thing…maybe something related to power source?)
6. I looked at all the logic signals on the oscilloscope…they all have a spike of about +0.6V at the beginning and -0.6V at the end of the square waveform…I tried to filter this out (simple RC filter) -> still popping

any advice would be extremely helpful!!!

the simplified schematics obliterate audio in/out opamps, detailed connections bet counters and S-RAM, voltage control, etc…the 5th counter has 2 unused output pins…should I ground them?

ICs are:
clock - CD4046
ADC - TL0820a
S-RAM - AS6C4008 (512k x 8b)
DAC - TLC7524
Counters (5x) 74HC193
d-flip flop
jk-flip flop


DSC00710 new.jpg
 Description:
 Filesize:  890.2 KB
 Viewed:  151 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

DSC00710 new.jpg



dschemdrw.jpg
 Description:
 Filesize:  943.05 KB
 Viewed:  158 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

dschemdrw.jpg


Back to top
View user's profile Send private message
analogmonster



Joined: May 30, 2011
Posts: 93
Location: Germany

PostPosted: Thu Nov 11, 2021 12:05 am    Post subject: Reply with quote  Mark this post and the followings unread

Not knowing the detailed circuit my first suspect in those cases are triggers without plop filters / capacitors / debouncing.
_________________
Analogmonster: https://www.analog-monster.de/index_en.html
YouTube: https://www.youtube.com/user/TheAnalogmonster
SoundCloud: https://soundcloud.com/analogmonster-1
Back to top
View user's profile Send private message Send e-mail Visit poster's website
elektrouwe



Joined: May 27, 2012
Posts: 146
Location: Germany

PostPosted: Thu Nov 11, 2021 1:44 am    Post subject: Re: DIY 8-BIT SAMPLER - ADVICE NEEDED Reply with quote  Mark this post and the followings unread

heinzer wrote:
...
5. took the ADC off…basically no signal into S-RAM…still popping!!! (that is the strangest thing…maybe something related to power source?)...


Do you have a decoupling cap (100n cerco) in every chip socket ?
Did you route seperate digital and analog power lines for 5V and GND ?
Analog GND (DAC,ADC...) connected to digital GND @ a single point ?
Is there a 100uF + 100n were digital and analog power lines connect ?
Back to top
View user's profile Send private message
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24488
Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320

PostPosted: Thu Nov 11, 2021 4:49 am    Post subject: Reply with quote  Mark this post and the followings unread

is it plopping also when you record silence?
_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
Grumble



Joined: Nov 23, 2015
Posts: 1319
Location: Netherlands
Audio files: 30

PostPosted: Thu Nov 11, 2021 3:32 pm    Post subject: Reply with quote  Mark this post and the followings unread

I see you use a multiplying DAC, is the Vref stable?
_________________
my synth
Back to top
View user's profile Send private message Visit poster's website
heinzer



Joined: Aug 11, 2018
Posts: 12
Location: brooklyn
Audio files: 2

PostPosted: Thu Nov 11, 2021 11:28 pm    Post subject: Reply with quote  Mark this post and the followings unread

thx everyone for the quick responses!

electrouwe: I was not aware of having to separate the digital (logic) and analog (opamps, etc) power/GND lines...(i.e. the ADC/DAC I am using do not have separate grounds)...this project "grew" over a long time, so its a little messy and will take time to separate...do I need to put the opamp for the CV (for 4046) on digital or analogue power/GND...I also found I forgot a few decoupling caps, but most ICs have one...just to make sure, I attached a drawing of the power/GND lines...

blue hell: yes, also when I record silence

grumble: I am using a separate 5V Vref (looks like a transistor) for the ADC/DAC...for the 4046 I am just using a simple voltage divider (plus 10u electro) to provide 2.5V for the VCO in...


power drw.jpg
 Description:
 Filesize:  746.86 KB
 Viewed:  151 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

power drw.jpg


Back to top
View user's profile Send private message
elektrouwe



Joined: May 27, 2012
Posts: 146
Location: Germany

PostPosted: Fri Nov 12, 2021 2:23 am    Post subject: Reply with quote  Mark this post and the followings unread

heinzer wrote:
...
electrouwe: I was not aware of having to separate the digital (logic) and analog (opamps, etc) power/GND lines...


google for "star ground" and you will find lots of information, why separate GNDs and VCCs are important and how to do it.
Your RAM will probably draw >100mA spikes when switching modes/access.
If these fast current spikes turn into voltage when flowing through a inductance ( which your GND wiring is) , you will have it everywhere on your board. So please take your time and do the right power line routing.
And yes, opamp GND must be analog GND.
Back to top
View user's profile Send private message
heinzer



Joined: Aug 11, 2018
Posts: 12
Location: brooklyn
Audio files: 2

PostPosted: Sat Nov 13, 2021 8:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

thx electrouwe for the "star ground" idea...I did a lot of reading on this but still have a few questions (pros/cons of star ground vs. separate ground planes)

1. ADC/DAC are considered analogue, right?
2. the voltage reference for the 4046 should connect to digital ground, right? do you suggest using a voltage reference IC too? (instead of a simple voltage divider)
3. a star ground would implement routing EVERY ground connection to a central point? OR combining all analogue and all digital grounds and then letting those meet at a central point (isn't this like having 2 ground planes?)
4. what about the power lines? they should just be linked separately (1x combined analogue / 1x combined digital) right?
5. some designers even suggested having 2 separate power supplies for analgogue / digital (1 voltage converter for each?) like dividing the power input (9V) to 2 voltage converters (and then having basically 2 grounds)?

any advice would be highly appreciated....thx
Back to top
View user's profile Send private message
elektrouwe



Joined: May 27, 2012
Posts: 146
Location: Germany

PostPosted: Sun Nov 14, 2021 5:16 am    Post subject: Reply with quote  Mark this post and the followings unread

heinzer wrote:
1. ADC/DAC are considered analogue, right?

yes. But because both are also digital and produce current glitches on GND, I would route them separatly to the star GND point to avoid coupling this noise into other analog parts

heinzer wrote:
2. the voltage reference for the 4046 should connect to digital ground, right? do you suggest using a voltage reference IC too?

need detailed schematics to answer more specific.

heinzer wrote:
3. a star ground would implement routing EVERY ground connection to a central point?

that would be an overkill - we talk about 8bit electronics. I guess you can use serial VCC and DGND wiring for the digital glue logic, which is then routed to the star ground point with a single wire. Same applies for analog "reference" GND, like noninverting opamp inputs. If analog components don't draw excessive current , which would cause DC offset voltages on GND or they don't produce switching noise, I would route them from point to point and then route this AGND to star ground.

heinzer wrote:
4. what about the power lines? they should just be linked separately

Loops in general should be avoided, which means that VCC and GND nets should be routed as close as possible minimize the loop area.
I would try to "copy" the DGND wiring topology also for VSS, and also route analog VSS close to AGND wires.


heinzer wrote:
5. some designers even suggested having 2 separate power supplies for analgogue / digital (1 voltage converter for each?) like dividing the power input (9V) to 2 voltage converters (and then having basically 2 grounds)?

I would consider 2 power supplies, or do extra LC filtering for critical parts with single supply, for a 12 or 16bit design. But it woulde be easy to add a 2nd voltage regulator later , because you should have separate analog and digital VCC routing anyway
Back to top
View user's profile Send private message
heinzer



Joined: Aug 11, 2018
Posts: 12
Location: brooklyn
Audio files: 2

PostPosted: Mon Nov 15, 2021 11:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

thx for the info...I just wanted to mention that I am only using a single sided supply (no +/- voltages)...I have a few more questions regarding your answers:

1. ADC/DAC: do you recommend routing the VCC separately too?

2. the "voltage reference" is a little IC looking like a transistor...I use it for the reference voltage (5V) for the ADC/DAC

5. is it making sense to use 2x +5V voltage converters (to separate digital from analog)? see picture (can you check if the routing makes sense? I intentionally left out all the caps)

new question: should I also route the S-RAM separately, since it seems to be the source of the popping issue


drawing.jpg
 Description:
 Filesize:  990.79 KB
 Viewed:  152 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

drawing.jpg


Back to top
View user's profile Send private message
elektrouwe



Joined: May 27, 2012
Posts: 146
Location: Germany

PostPosted: Tue Nov 16, 2021 2:23 am    Post subject: Reply with quote  Mark this post and the followings unread

heinzer wrote:

1. ADC/DAC: do you recommend routing the VCC separately too?

give it a try, soldering 1 wire takes less time than our discussion Wink
You will gain design experience if you check out different ideas. Take advantage of having a breadboard and not a PCB !

heinzer wrote:
2. the "voltage reference" is a little IC looking like a transistor...I use it for the reference voltage (5V) for the ADC/DAC

I doubt that you need a TL431 or similar for an 8 bit audio design. We talk about 5V/256 = 20mV/bit. Your analog 7805 should have much less than 20mV noise, so it should be fine. 5V temperature drift is also not an issue here, because long time drifts will appear as inaudible "milli dB" amplitude drifts.
Same for the 4046 reference: good filtering keeps VCO Jitter low, but there is no need for high absolute precision

heinzer wrote:
5. is it making sense to use 2x +5V voltage converters (to separate digital from analog)? see picture (can you check if the routing makes sense? I intentionally left out all the caps)

see 1. Smile

heinzer wrote:
new question: should I also route the S-RAM separately, since it seems to be the source of the popping issue

I would do it; but again - see 1.

now warm up your solder iron and tell us about your findings !
Back to top
View user's profile Send private message
heinzer



Joined: Aug 11, 2018
Posts: 12
Location: brooklyn
Audio files: 2

PostPosted: Wed Nov 17, 2021 10:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

thx again...irons will be warmed up shortly... Very Happy

will share my findings soon!!! (probably in a couple of weeks)
Back to top
View user's profile Send private message
der Warst



Joined: Apr 09, 2010
Posts: 10
Location: Leipzig

PostPosted: Sun Oct 05, 2025 6:36 am    Post subject: Reply with quote  Mark this post and the followings unread

Hey, sorry for digging this up, but I'm more or less building the same thing right now (my schematic is ~90% the same as yours), and I was wondering: Did you ever figure out your popping problem? Also, what became of the project in general?

Also, thanks for the useful info here. It's probably gonna come in handy once I've built my version.

_________________
http://www.warstware.der-warst.de
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [13 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use