Hi,
I am still at home because of inflammation. So no op this week.
I am doing a little work on my model train layout, at some point I will have access to a special board with integrated codec etc for speech synthesis, however at the moment I need some information for something slightly different.
I am NOT looking for chip solution's, I am looking for some information on an experiment I am wanting to do. I have googled and I have watched the excellent tutorial on DAC's from Alan from here. Most of it I am ok with, I do however have a few question's that I would be grateful if you could answer or if you have any decent links (pdf's would be great).
What I would like to is a kind of sound synthesizing, the following is the set up and what I would like to try, I am not really looking at single chip just plug this in kind of thing though.
On my model layout I have some of the Loco's and other parts fitted with controller chip's, mainly 32 bit micro's but there is also some 8 & 16 bit pics and DSP's, I want to be able to synthesize some sounds, these are to be stored in some cases on chip, but in other cases will stored elsewhere and called up over my coms network.
In an ideal world I would get say a WAV or other sound file, play this through matlab or maybe some other software and sample with say a 12 or 16 bit ADC, some of the sounds will be generated by spread sheet or other way's (this dosnt matter for now), what I need to do is take a sound and turn it into a digital code, this can then be manipulated if needed and then played back via a DAC.
I would like to build the DAC myself, size wise I was thinking maybe 16 bits, I have some precision smd 50R resistor that are 0.01%, but I dont have many and they are expensive! So my plan is to use some smd 1% resistor's, I have all kinds of values and most are nearly full reels, so the plan would be to measure them on the bench meter and get them as closely matched as I can (the meter is 6 digits).
Any sugestion's on the best resistor value? I will use two in series for the 2R part. The other problem is power supply, for most of the DAC's I need to use 12V or lower, I have seen some designs for DAC's that use a opamp on the output and would prefer to use this method, I can get opamps but some of the micro's I am using have opamps built in.
This is the tricky bit. Do I need a dual supply? I have to take the supply for most of it from the track, this is a constant 12V or 14V depending on section, I have heard of a way of making a dual supply with a opamp as virtual ground?? If I have to use a -supply how is this done with the Opamp?
Any other comments etc welcome. I understand there are probably better ways to do this, however I am kind of fixed on doing it the hard way
. If I can get over this hurdle I will explain the other part of what all this is for.
SOUND SAMPLING
On the sound sampling side I mentioned using sound files for the initial samples, bu some of the sounds I might need to sample myself. I have some micro's that will sample 12 bit at 1Msps, obviously I dont need that amount as such, so what frequency would you sample a sand at, and what resolution would you suggest? We are not talking concert hall sound quality, I do however need to manipulate the sounds once sampled, some of this will be on the fly.
Other Info
I intend to store some of the sounds temporary on the micro's in there flash memory area (program area), some of the chips have upto 1Mb of memory so I have some room. Also most of the sounds will be passed to the chips just before it's needed.
DAC Opamp
Any suggestions for the TYPE of opamp I need (rail to rail etc).
OUTPUT
Some sounds will be output via small 8 ohm speaker, and some via a piezo type speaker, I will where needed use a small amplifier for the sound output.
Thanks for helping
LG
I am still at home because of inflammation. So no op this week.
I am doing a little work on my model train layout, at some point I will have access to a special board with integrated codec etc for speech synthesis, however at the moment I need some information for something slightly different.
I am NOT looking for chip solution's, I am looking for some information on an experiment I am wanting to do. I have googled and I have watched the excellent tutorial on DAC's from Alan from here. Most of it I am ok with, I do however have a few question's that I would be grateful if you could answer or if you have any decent links (pdf's would be great).
What I would like to is a kind of sound synthesizing, the following is the set up and what I would like to try, I am not really looking at single chip just plug this in kind of thing though.
On my model layout I have some of the Loco's and other parts fitted with controller chip's, mainly 32 bit micro's but there is also some 8 & 16 bit pics and DSP's, I want to be able to synthesize some sounds, these are to be stored in some cases on chip, but in other cases will stored elsewhere and called up over my coms network.
In an ideal world I would get say a WAV or other sound file, play this through matlab or maybe some other software and sample with say a 12 or 16 bit ADC, some of the sounds will be generated by spread sheet or other way's (this dosnt matter for now), what I need to do is take a sound and turn it into a digital code, this can then be manipulated if needed and then played back via a DAC.
I would like to build the DAC myself, size wise I was thinking maybe 16 bits, I have some precision smd 50R resistor that are 0.01%, but I dont have many and they are expensive! So my plan is to use some smd 1% resistor's, I have all kinds of values and most are nearly full reels, so the plan would be to measure them on the bench meter and get them as closely matched as I can (the meter is 6 digits).
Any sugestion's on the best resistor value? I will use two in series for the 2R part. The other problem is power supply, for most of the DAC's I need to use 12V or lower, I have seen some designs for DAC's that use a opamp on the output and would prefer to use this method, I can get opamps but some of the micro's I am using have opamps built in.
This is the tricky bit. Do I need a dual supply? I have to take the supply for most of it from the track, this is a constant 12V or 14V depending on section, I have heard of a way of making a dual supply with a opamp as virtual ground?? If I have to use a -supply how is this done with the Opamp?
Any other comments etc welcome. I understand there are probably better ways to do this, however I am kind of fixed on doing it the hard way
SOUND SAMPLING
On the sound sampling side I mentioned using sound files for the initial samples, bu some of the sounds I might need to sample myself. I have some micro's that will sample 12 bit at 1Msps, obviously I dont need that amount as such, so what frequency would you sample a sand at, and what resolution would you suggest? We are not talking concert hall sound quality, I do however need to manipulate the sounds once sampled, some of this will be on the fly.
Other Info
I intend to store some of the sounds temporary on the micro's in there flash memory area (program area), some of the chips have upto 1Mb of memory so I have some room. Also most of the sounds will be passed to the chips just before it's needed.
DAC Opamp
Any suggestions for the TYPE of opamp I need (rail to rail etc).
OUTPUT
Some sounds will be output via small 8 ohm speaker, and some via a piezo type speaker, I will where needed use a small amplifier for the sound output.
Thanks for helping
LG