Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
24 May, 2013, 05:35:48 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Serial Linear Digital to Analog converter for use with Calculators -  (Read 848 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Keoni29
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:19:09
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« on: 12 May, 2012, 13:55:42 »
0

I designed this digital to analog converter for use with calculators which lack of sufficient I/O. This is a 4 bit DAC which means that there are 16 possible voltage levels.

What do you think? You just lost the game

Documentation:
Operating voltage: 3,3V-5V
Data has to be sent in like this:
xxxx01
Send data: Least significant first
The 01 at the beginning has to be sent in before the 4 bit word. This is due to the architecture of the "timing" circuit.
Example: Send 5:
0101 01

For use with calculators:
AXE code sample which outputs a sawtooth wave:
Spoiler for Hidden:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.TEST
0->V
Repeat Getkey(15)
DAC(V
If V++ =16
0->V
End
End
0->port
Return
Lbl DAC
2->Port //Sends the first two bits indicating the end of a word
3->Port
1->Port
3->Port
For (4)  //Sends the 4 bit word to the DAC
If r1^2  //Part of the dec->bin conversion
2->Port
Else
1->Port
End
3->Port
r1/2->r1 //Part of the dec->bin conversion
End

I HAVEN'T BUILT ANYTHING YET, SO I DON'T KNOW WHERETHER IT WORKS OR NOT. THIS IS POTENTIALLY HARMFULL FOR YOUR CALCULATOR, SO STAY AWAY FROM IT UNTILL THE OPPOSITE HAS BEEN PROVEN.


Built da thing. Here 's how to make your own:
 http://www.omnimaga.org/index.php?action=dlattach;topic=13542.0;attach=13198
« Last Edit: 10 July, 2012, 21:21:45 by Keoni29 » Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
aeTIos
You got stair'd!
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: Yesterday at 22:55:00
Date Registered: 15 September, 2010, 06:00:00
Location: Netherlands, Overijssel
Posts: 3121


Total Post Ratings: +120

View Profile
« Reply #1 on: 01 June, 2012, 20:45:36 »
0

What should the clock speed be?
Logged

If something above sounds rude, feel free to vote it down, it was not meant to be rude<<lolol
--Always stay relAXEd!--


Spoiler for Hidden:


[







Spoiler for Still Alive:
This was a triumph.
I'm making a note here: HUGE SUCCESS.
It's hard to overstate my satisfaction.

Aperture Science:
We do what we must because we can.
For the good of all of us
Except the ones who are dead.

But there's no sense crying over every mistake
You just keep on trying till you run out of cake
And the science gets done and you make a neat gun
For the people who are still alive.

I'm not even angry.
I'm being so sincere right now.
Even though you broke my heart and killed me.
And tore me to pieces.
And threw every piece into a fire.
As they burned it hurt because
I was so happy for you.

Now these points of data make a beautiful line
And we're out of beta we're releasing on time.
So I'm GLaD I got burned think of all the things we learned
For the people who are still alive.

Go ahead and leave me.
I think I prefer to stay inside.
Maybe you'll find someone else to help you.
Maybe Black Mesa -
THAT WAS A JOKE. HA HA, FAT CHANCE.
Anyway, this cake is great:
It's so delicious and moist.

Look at me still talking when there's science to do.
When I look out there it makes me GLaD I'm not you.
I've experiments to run there is research to be done
On the people who are still alive

And believe me I am still alive.
I'm doing science and I'm still alive.
I feel FANTASTIC and I'm still alive.
While you're dying I'll be still alive.
And when you're dead I will be still alive.

Still alive
Still alive
Keoni29
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:19:09
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #2 on: 03 June, 2012, 09:46:38 »
0

That will depend on the transfer rate of the calculator. As fast as you can get the software to run Smiley
Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
Keoni29
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:19:09
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #3 on: 08 June, 2012, 13:12:42 »
0

I made a new more advanced, but simpeler design which uses less gates Smiley
It's made in Logisim, so I think the only one who can open it atm is aeTIos Tongue

* Calc DAC.circ (6.51 KB - downloaded 13 times.)

* logisim dac.png (12.12 KB, 380x468 - viewed 220 times.)
Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
aeTIos
You got stair'd!
LV12 Extreme Poster (Next: 5000)
************
Offline Offline

Gender: Male
Last Login: Yesterday at 22:55:00
Date Registered: 15 September, 2010, 06:00:00
Location: Netherlands, Overijssel
Posts: 3121


Total Post Ratings: +120

View Profile
« Reply #4 on: 08 June, 2012, 21:57:52 »
0

I guess you're wrong, lotsa ppl here know logisim. In fact, I discovered logisim via omni Tongue
Logged

If something above sounds rude, feel free to vote it down, it was not meant to be rude<<lolol
--Always stay relAXEd!--


Spoiler for Hidden:


[







Spoiler for Still Alive:
This was a triumph.
I'm making a note here: HUGE SUCCESS.
It's hard to overstate my satisfaction.

Aperture Science:
We do what we must because we can.
For the good of all of us
Except the ones who are dead.

But there's no sense crying over every mistake
You just keep on trying till you run out of cake
And the science gets done and you make a neat gun
For the people who are still alive.

I'm not even angry.
I'm being so sincere right now.
Even though you broke my heart and killed me.
And tore me to pieces.
And threw every piece into a fire.
As they burned it hurt because
I was so happy for you.

Now these points of data make a beautiful line
And we're out of beta we're releasing on time.
So I'm GLaD I got burned think of all the things we learned
For the people who are still alive.

Go ahead and leave me.
I think I prefer to stay inside.
Maybe you'll find someone else to help you.
Maybe Black Mesa -
THAT WAS A JOKE. HA HA, FAT CHANCE.
Anyway, this cake is great:
It's so delicious and moist.

Look at me still talking when there's science to do.
When I look out there it makes me GLaD I'm not you.
I've experiments to run there is research to be done
On the people who are still alive

And believe me I am still alive.
I'm doing science and I'm still alive.
I feel FANTASTIC and I'm still alive.
While you're dying I'll be still alive.
And when you're dead I will be still alive.

Still alive
Still alive
Keoni29
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:19:09
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #5 on: 08 June, 2012, 22:01:36 »
0

Oh ok. That's nice!
Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
ralphdspam
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 09:10:11
Date Registered: 01 February, 2011, 07:58:40
Location: California, USA
Posts: 841


Total Post Ratings: +36

View Profile
« Reply #6 on: 09 June, 2012, 02:58:07 »
0

How about multiplexing it with an ADC as well?  I'm not really sure if you want to do that, but it would be nice to have a standardized analog I/O circuit to play with: microphones, light sensors, etc.
Logged

ld a, 0
ld a, a
Keoni29
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:19:09
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #7 on: 09 June, 2012, 09:34:29 »
0

How about multiplexing it with an ADC as well?  I'm not really sure if you want to do that, but it would be nice to have a standardized analog I/O circuit to play with: microphones, light sensors, etc.
That's possible, but more complex than a separate DAC and ADC. I don't think the TI84+ is capable of recording sound and playing it back. The playback is possible, but the recording and processing is pretty much impossible without proper I/O. You could also just hook your calc up to an arduino since it features pwm and ADC.
Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
Keoni29
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:19:09
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #8 on: 25 June, 2012, 11:21:34 »
0

Now building the DAC
Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
Keoni29
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:19:09
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #9 on: 25 June, 2012, 22:05:03 »
0

<a href="http://www.youtube.com/watch?v=DZ9WG73lOXU" target="_blank">http://www.youtube.com/watch?v=DZ9WG73lOXU</a>

Only open this spoiler if you read this:
Replace the 2k2 resistors by 470 resistors.
Spoiler for Hidden:
« Last Edit: 09 July, 2012, 11:08:30 by Keoni29 » Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
Keoni29
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:19:09
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #10 on: 06 July, 2012, 11:13:53 »
0

I'm going to solder this up this weekend. I made it on a solderless breadboard first and it works just fine. If there are other people interested in this device: just let me know. I'll release the source code for the subroutines which drive this thing.
Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
Keoni29
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:19:09
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #11 on: 09 July, 2012, 16:17:59 »
0


I just soldered it up and I got it up and running. Also, I made an instructable which can be found down below.

* Serial input DAC.docx (680.93 KB - downloaded 86 times.)
« Last Edit: 10 July, 2012, 21:22:03 by Keoni29 » Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
Keoni29
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:19:09
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1117


Topic starter
Total Post Ratings: +146

View Profile WWW
« Reply #12 on: 13 May, 2013, 14:07:14 »
0

I featured it on my website:
http://8times8.host56.com/?p=206
Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.27 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.