I made a 4 bit digital to analog converter to use with my calculator. It runs off a 9 v battery regulated down to 5v for the TTL logic.

I made this device to be able to make playing sound samples over the I/O port less cpu intensive. I have not succeeded to play decent sounding samples fetched from my computer yet. The conversion process is very long and the quality of the sample must have degraded along the way.

Some video's of the thing still on breadboards:
It plays nice sawtooth waves.


The first failed attempt to play samples. (well it plays the samples, but the samples are messed up)


I used AXE code to send data to the DAC, but you can use ASM too of course.

I wrote this document with the building instructions/schematics/code:
download
Cool stuff, and cool demo. What sort of protocol to you use to communicate? Can I safely assume you have a microcontroller, send it a frequency and duration, and that it controls the DAC?
KermMartian wrote:
Cool stuff, and cool demo. What sort of protocol to you use to communicate? Can I safely assume you have a microcontroller, send it a frequency and duration, and that it controls the DAC?

At the moment I'm just streaming nibbles to it plus two sync bits. Data is sent in like this:
1ddddx
in which 1 is for writing the value from the shiftregister to the quad d-flip flop and resetting the shiftregister and x is just for pushing the data. I might add a microcontroller, but if so I could as well just attach a R2R dac directly to its I/O pins.

You should check out the instructable I posted as well. It includes the schematics and a description of the layout of my board as well as a code example written in the AXE language.
OK, I'll check it out. Out of curiosity, have you had any success in fixing the sounds output to be a bit more correct and clean?
Oh the sound output was just perfect, but the sample data was a mess Sad
keoni29 wrote:
Oh the sound output was just perfect, but the sample data was a mess Sad
Ohhh, I see. So it's an issue with the particular converter? In that case, any luck with the converter?
There is no such thing as ONE converter. I used audacity to convert audio to 8 bit raw pcm. Then I used some python code written by jimbauwen to convert it to 4 bits. This data was copied to sourcecoder and converted to an appvar in wabbitemu using axe. There are a ton of things that could have gone wrong Razz
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
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

 

Advertisement