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 
 Forum index » DIY Hardware and Software » Lunettas - circuits inspired by Stanley Lunetta
8032 as Lunetta block! (now with sound)
Post new topic   Reply to topic Moderators: mosc
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
droffset



Joined: Feb 02, 2009
Posts: 515
Location: London area
Audio files: 2

PostPosted: Mon Jun 01, 2009 6:51 pm    Post subject: 8032 as Lunetta block! (now with sound)
Subject description: 8032 as Lunetta block!
Reply with quote  Mark this post and the followings unread

Sample 01
http://droffset.com/sound/8032Lunetta_r01a.mp3

I've gotten a hold of some 'classic' microprocessors and support chips from a former technician. Needless to say the first word I thought of was Lunetta. Twisted Evil

I'd like to rig up this 8032AH chip for the purpose of severely misusing it. If you masters of electro magic have any brainstorm ideas I'd love to hear it.

I'm reading the datasheet and I think I have a plan.

I'm not planning to 'program' it at all, just send data into it and see what comes out.

Ideas:
-8032 has a simple 4 port pinout to understand. Each port is an 8 pin group, so that's 4 modules.
-The pins are bidirectional, so might attach multiplexers to them that are funked by shift registers that are fed by NANDed clocks, and also tap into the pins with diodes that go to 4x R/2Rs, then to four VCOs.
-The output of the pins will either go to a DAC or straight to a vco.
-Might be able to switch between 'program' mode and 'verify program' mode because at least in those modes you know when it's reading and sending data out.

Port 3 has a lot of strange options that i need to research further. Maybe use physical switches to turn modes on and off?

I'm hoping for:
-an interesting wierd data stream
-best case would be a melody generator

So there it is, let me know if what you think, here's an image to show the basic idea.

Info:
http://www.datasheetarchive.com/search.php?q=8032AH
http://en.wikipedia.org/wiki/8032
http://www.cpu-world.com/CPUs/8051/MANUF-Intel.html[url][/url]


8032plan.jpg
 Description:
Plan part 1
 Filesize:  92.55 KB
 Viewed:  468 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

8032plan.jpg



Last edited by droffset on Thu Jun 04, 2009 3:52 am; edited 1 time in total
Back to top
View user's profile Send private message
Mikmo



Joined: Dec 01, 2005
Posts: 150
Location: Copenhagen - Denmark

PostPosted: Tue Jun 02, 2009 1:40 am    Post subject: Reply with quote  Mark this post and the followings unread

If it works anyway near the more modren microprocessors that i have a little knowledge about, then i don't think you will get far (anywhere) without programming.

The i/o pins don't "do" anything by themselves. They need to be set or read by the processor. So connecting something to an input pin will result in nothing at all if the processor is not programmed to read the pin and act upon what i reads. The same goes with output pins.

Usually the processor explicitly tells a pin (or an entire port) to be "I" or "O", otherwise the pins (port) will remain in ther
default state, whatever that is.

_________________
Stay Cool
Mikael
http://www.mikmo.dk
Back to top
View user's profile Send private message Visit poster's website
droffset



Joined: Feb 02, 2009
Posts: 515
Location: London area
Audio files: 2

PostPosted: Tue Jun 02, 2009 1:48 am    Post subject: Reply with quote  Mark this post and the followings unread

That's pretty much what I expect also. Razz

The best chance of anything interesting happening might be to set the IC into the mode of accepting input and being programmed, and then switching it to the mode of verifying the program and playing it back. If that can be done with just input signals that is, don't know yet.

Other than that the support chip combinations could be useful salvaged from the experiment. Smile
Back to top
View user's profile Send private message
Mikmo



Joined: Dec 01, 2005
Posts: 150
Location: Copenhagen - Denmark

PostPosted: Tue Jun 02, 2009 11:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well the very reason i kept the powersupply for all my (soon to exist) Lunetta logic at 5 Volts is that i want to try to use a microprocessor to read values from the modules outputs, do something and then set inputs of other modules. Switching things on / of is another possibility.

A sequencer of some sort that could switch stuff and set pins to H / L would be a cool addition. But probably not much in line with the original Lunetta thinking.

_________________
Stay Cool
Mikael
http://www.mikmo.dk
Back to top
View user's profile Send private message Visit poster's website
Rykhaard



Joined: Sep 02, 2007
Posts: 1290
Location: Canada

PostPosted: Tue Jun 02, 2009 11:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

Mikmo wrote:
Well the very reason i kept the powersupply for all my (soon to exist) Lunetta logic at 5 Volts is that i want to try to use a microprocessor to read values from the modules outputs, do something and then set inputs of other modules. Switching things on / of is another possibility.

A sequencer of some sort that could switch stuff and set pins to H / L would be a cool addition. But probably not much in line with the original Lunetta thinking.


Within my rulebooks though, I still find THAT to be ok in a way. Smile If the program that is writ, is simple, acting simply upon what it's given, returning things that are simple as well, then to me - that's completely ok. Smile

Simple things glued together, can become very complex - just like the machine being patchable, from, simple things. Smile Like the simple Shift Register. We're able to do some amazing things with them! Smile

I'd love to get a simple processor and something to program it with, to do stuff like that. One that understands Basic. Then I could fly away coming up with simple tools to use. Smile

Edit: whilst I think of it - if there're any recommendations for a simple processor that runs from basic; comes with a burner; is cheap and easy to get - I'm wide open to suggestions! Smile At least 8 ports of IN / OUT and I'd be happy. Smile (Cheap meaning - total, under $100 U.S.)
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
droffset



Joined: Feb 02, 2009
Posts: 515
Location: London area
Audio files: 2

PostPosted: Wed Jun 03, 2009 3:44 am    Post subject: Reply with quote  Mark this post and the followings unread

A friend let me borrow this one:
http://www.parallax.com/Store/Microcontrollers/BASICStampProgrammingKits/tabid/136/CategoryID/11/List/0/SortField/0/Level/a/ProductID/294/Default.aspx

I've gone through some documentation and it does seem pretty darn easy to get going, just need to put some time into it.

It would be cool to set up that Basic Stamp to do simple things like divide add, etc from one pin to the next, hmmmm....

**************************************
Going back to the 8032, the reason I chose it over the others (Z80, 8088 etc) is (1) I have several of them and (2) that the pins don't need instruction to be defined as in or out, so apparently they can be written to or read from at any time, and

(3)The 8032 doesn't have internal ROM, just 256k of RAM, so at power up the 8032 will at least make some output signal to request data from external ROM, at which time I'll stuff it with bitz.

Which I guess means it'll be programmed with utter junk.

After that change pin settings on port 3 to get the 8032 to do something....ANYTHING....

Stuff to build:

The general idea is to build these items as separate modules on little perfboards to plug into the port pins. The modules themselves are very Lunetta, straight from these pages, so the hours of labor won't go to waste, i'll just use them for something else if it doesn't work.

****************************************************
For each: Port 0,1 and 2
A clock, probably the 4060 ripple counter with internal oscillator,
Out to a 4011 NAND to mix it up a bit
Through some shift registers to get 8 strange data streams,
Those 8 lines connect to the 8 pins of each port.
Diodes from those pins also go Out to an 8 bit R/2R,
Out to a 40106 YACO VCO.
Out to a 4 input mixer.

So that's three VCOs out to a mixer and one port untouched, port 3.

For Port 3, an 8 pin dip switch for commands to hopefully control the emotional state of the 8032. Maybe a gate in for each as well.

Unsure about blinkys.
****************************************************
Info on Pins and Ports that kinda seem encouraging:

http://www.melektronikos.com/en/books/8051book/ch2/index.html

http://www.edsim51.com/8051Notes/8051/parallelInputOuput.html
[url]
http://books.google.co.nz/books?id=NHQEUzLiY1MC&pg=PA19&lpg=PA19&dq=8052+random+port+input&source=bl&ots=jf6itJB4xX&sig=Fd42TMN0183GdoVQDzFSaBLwSZg&hl=en&ei=IA8lSrD1DZ7EtAP5yIGXBg&sa=X&oi=book_result&ct=result&resnum=3#PPA48,M1[/url]

**********************************
I'm gonna need a bigger breadboard...
Back to top
View user's profile Send private message
Rykhaard



Joined: Sep 02, 2007
Posts: 1290
Location: Canada

PostPosted: Wed Jun 03, 2009 8:10 am    Post subject: Reply with quote  Mark this post and the followings unread

droffset wrote:
A friend let me borrow this one:
http://www.parallax.com/Store/Microcontrollers/BASICStampProgrammingKits/tabid/136/CategoryID/11/List/0/SortField/0/Level/a/ProductID/294/Default.aspx


Doh! I were quite interested in this one reading everything about it, all the way down to the bottom where individual portions pricings were. (Until then, I were quite happy! Smile ) But more of the chip itself - $72 each. Ouch. That killed that one. Sad

Curious - you've mentioned the 8032 ...... the other links though are are referring to the 8051 / 8052 series. Are the 8031 / 8032 simpler version of the 8051 family?

Anyhoo ...... I may have to go and look in the PIC world again. It's been awhile since I last had. I love the idea of being able to program some simple blocks, for gluing together with switches and / or CV, etc. Smile (Sequencer abilities; clocks depending on other circumstances; bizarre logic; yada yada yada. Wink ) All as long as it's simple. My main desire.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
droffset



Joined: Feb 02, 2009
Posts: 515
Location: London area
Audio files: 2

PostPosted: Wed Jun 03, 2009 12:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

Same things, 8051 / 8052 has internal ROM and 128K internal RAM, 8031 / 8032 has no internal ROM and 256k internal RAM.

---

Yeah, the price is pretty high, but it's a pretty complete board. Anyway the only reason I have one is that a friend let me borrow it for free. Smile

Arduino is also popular, in a Coke/Pepsi, Dominos/Pizza Hut sort of way.
http://www.robotshop.ca/microcontrollers.html
Back to top
View user's profile Send private message
Mikmo



Joined: Dec 01, 2005
Posts: 150
Location: Copenhagen - Denmark

PostPosted: Wed Jun 03, 2009 12:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

Arduino.

www.arduino.cc

Very affordable hardware based on 16Mhz Atmel micros, but still very capable, free programming environment. Cheapest Arduino clones cost less than 15$. Easy interfacing to PC.

Both HW and SW is open source.

Gigantic base of knowledge on the net and in the forum.
Programming is in C, but not very difficult to pic up, i come from a VB background and have few problems programming Arduino.

_________________
Stay Cool
Mikael
http://www.mikmo.dk
Back to top
View user's profile Send private message Visit poster's website
droffset



Joined: Feb 02, 2009
Posts: 515
Location: London area
Audio files: 2

PostPosted: Thu Jun 04, 2009 2:19 am    Post subject: Reply with quote  Mark this post and the followings unread

Now I want one...

GEE THANKS. Smile
Back to top
View user's profile Send private message
droffset



Joined: Feb 02, 2009
Posts: 515
Location: London area
Audio files: 2

PostPosted: Thu Jun 04, 2009 3:59 am    Post subject: Reply with quote  Mark this post and the followings unread

I needed to feel better about this so just started plugging things in and got some interesting melodies.

Here's what it sounds like so far:
http://droffset.com/sound/8032Lunetta_r01a.mp3

Really simple, a clock goes into the pin a crystal would normally connect to for the oscillator. Power and ground are normal.

Then select some pins and connect resistors from the pin to a single point, which goes into the data of a shift register using the same clock... Lots of semi-random cross connecting between ports going on, and the serial output from the shift register modulating an oscillator. I'll change that to a VCO.

Big finding of the day, changing the CPU's clock speed changes the speed of the output, so that noisey modem like sound at the end gets slowed down to a cool guitar riff. Twisted Evil

It's not much yet but it has potential !
Back to top
View user's profile Send private message
amplex



Joined: May 26, 2008
Posts: 64
Location: sacramento, ca
Audio files: 6

PostPosted: Thu Jun 04, 2009 10:51 am    Post subject: Reply with quote  Mark this post and the followings unread

Great experiment! This makes me want to mess with some of the other chips I have sitting around from my dads old projects and a few I got with a bunch of random electronics stuff I got cheap off ebay a year or so ago.. but they are much more function specific than these very purposeful logic chips which can be applied to quite a few applications.. The microprocessor idea is AWESOME though in the aspect of arranging AI programming to mess with your lunettas 'thought processes' =D This is too far beyond me at the moment, but it is definitely possible to build a machine that, instead of patching things on the lunetta together, you are patching them to the microcontroller which is switching them on its own and sending back 'interesting data' with the possibility of pre-programming or just complete randomness!!!! that doesn't seem like it would really be that hard honestly, just the time taken to write the program for the PIC, i haven't messed with C for about 12 yrs =[ a random switching module would be a cool place to start, thats one thing im desperately missing, cmos switching chips!!
_________________
http://www.soundclick.com/amplex
Back to top
View user's profile Send private message AIM Address
droffset



Joined: Feb 02, 2009
Posts: 515
Location: London area
Audio files: 2

PostPosted: Fri Jun 05, 2009 1:30 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks Amplex Smile

The datasheet for this IC bragged about simplicity and boolean logic so that was a deciding factor.

When this thing powers up it just sends various high and low signals from each pin in an attempt to send a memory address, so it already makes for a good 'data' input for a shift register or multiplexer out of the box, or even as inputs for the slacker melody gen; if you manipulate the special function pins you can get cool results too.

The thing is it's usually pretty repetitive as it is now, will need to keep playing around with connections.

------
Also looking into what code is already available for the basic stamp, might be able to adapt something to mess around with inputs/outputs.

------
Maybe more this weekend with my growing cmos stash.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: mosc
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 » Lunettas - circuits inspired by Stanley Lunetta
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