| Author |
Message |
droffset

Joined: Feb 02, 2009 Posts: 515 Location: London area
Audio files: 2
|
|
|
Back to top
|
|
 |
Mikmo
Joined: Dec 01, 2005 Posts: 150 Location: Copenhagen - Denmark
|
Posted: Tue Jun 02, 2009 1:40 am Post subject:
|
 |
|
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
|
|
 |
droffset

Joined: Feb 02, 2009 Posts: 515 Location: London area
Audio files: 2
|
Posted: Tue Jun 02, 2009 1:48 am Post subject:
|
 |
|
That's pretty much what I expect also.
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.  |
|
|
Back to top
|
|
 |
Mikmo
Joined: Dec 01, 2005 Posts: 150 Location: Copenhagen - Denmark
|
Posted: Tue Jun 02, 2009 11:03 pm Post subject:
|
 |
|
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
|
|
 |
Rykhaard
Joined: Sep 02, 2007 Posts: 1290 Location: Canada
|
Posted: Tue Jun 02, 2009 11:17 pm Post subject:
|
 |
|
| 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. 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.
Simple things glued together, can become very complex - just like the machine being patchable, from, simple things. Like the simple Shift Register. We're able to do some amazing things with them!
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.
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! At least 8 ports of IN / OUT and I'd be happy. (Cheap meaning - total, under $100 U.S.) |
|
|
Back to top
|
|
 |
droffset

Joined: Feb 02, 2009 Posts: 515 Location: London area
Audio files: 2
|
Posted: Wed Jun 03, 2009 3:44 am Post subject:
|
 |
|
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
|
|
 |
Rykhaard
Joined: Sep 02, 2007 Posts: 1290 Location: Canada
|
Posted: Wed Jun 03, 2009 8:10 am Post subject:
|
 |
|
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! ) But more of the chip itself - $72 each. Ouch. That killed that one.
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. (Sequencer abilities; clocks depending on other circumstances; bizarre logic; yada yada yada. ) All as long as it's simple. My main desire. |
|
|
Back to top
|
|
 |
droffset

Joined: Feb 02, 2009 Posts: 515 Location: London area
Audio files: 2
|
Posted: Wed Jun 03, 2009 12:08 pm Post subject:
|
 |
|
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.
Arduino is also popular, in a Coke/Pepsi, Dominos/Pizza Hut sort of way.
http://www.robotshop.ca/microcontrollers.html |
|
|
Back to top
|
|
 |
Mikmo
Joined: Dec 01, 2005 Posts: 150 Location: Copenhagen - Denmark
|
Posted: Wed Jun 03, 2009 12:37 pm Post subject:
|
 |
|
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
|
|
 |
droffset

Joined: Feb 02, 2009 Posts: 515 Location: London area
Audio files: 2
|
Posted: Thu Jun 04, 2009 2:19 am Post subject:
|
 |
|
Now I want one...
GEE THANKS.  |
|
|
Back to top
|
|
 |
droffset

Joined: Feb 02, 2009 Posts: 515 Location: London area
Audio files: 2
|
Posted: Thu Jun 04, 2009 3:59 am Post subject:
|
 |
|
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.
It's not much yet but it has potential ! |
|
|
Back to top
|
|
 |
amplex

Joined: May 26, 2008 Posts: 64 Location: sacramento, ca
Audio files: 6
|
Posted: Thu Jun 04, 2009 10:51 am Post subject:
|
 |
|
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
|
|
 |
droffset

Joined: Feb 02, 2009 Posts: 515 Location: London area
Audio files: 2
|
Posted: Fri Jun 05, 2009 1:30 am Post subject:
|
 |
|
Thanks Amplex
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
|
|
 |
|