Thursday, October 17, 2013

Stamp One News Magazine

STAMP ONE NEWS! MAGAZINE

Welcome to StampOne News! an exciting independent home-spun journal, solely designed by hobbyists for hobbyists. 

 

In particular, we want home experimenter enthusiasts and students to benefit from these project examples and be stimulated into creative thinking with the inspiration to build home circuits, science projects, and unique inventions. The Premier Issue is packed full of exciting and interesting BS1 Stamp ideas, and include the build instructions for the 3DSC, a 3D Basic Stamp Computer. This interesting microcontroller has three stamp cores and some interesting applications.

 

Stamp One News! - Premier Issue 1 - Spring 2009

LEFT: The first galley proof was in black and white as it rolled off the computer printer page by page.



Download here from the PRS Penguin Robot Society
http://95.110.232.70/pdf/SO01.pdf

"Everything about the Parallax BS Micro" Servers are standing by for downloads of the PDF file of this electronic magazine. The magazine can also be downloaded from the Parallax host on the Forum.



http://forums.parallax.com/attachment.php?attachmentid=60052&d=1239624522

Historical Information Tracings
Spring 2009 StampOne News 04-07-2009, 01:58 PM
http://forums.parallax.com/showthread.php/108121-BASIC-Stamp-Supercomputer?p=797764&viewfull=1#post797764

The Spring 2009 StampOne News is almost complete! The feature article for the 3D Stamp Computer is being expanded with some included software. Some extra programs for app demos are a must for this remarkable new project invention. Since the new electronic magazine is all about Stamps, look for it first posted in the Stamp Forum. The 3D Stamp Computer is a spinoff of the Basic Stamp
Supercomputer, so maybe some information will appear here as an announcement update.

As I understand, a web page will be made for StampOne News at the PRS Robot web site, which also includes the Penguin (robot) Tech Magazine. In the future it would be nice to have a posted thread for the 3DSC at the Parallax Forum for questions and answers, and a web page for it here. A link is provided.


StampOne News! Update... 04-10-2009, 04:08 PM

The mag has entered the proofreading stage, all articles are complete.
The feature article is the 3D Stamp Computer, with plans on how to
build your own. Since all the software is included in print, with the
article, I would like to ask the forum if individual files for the same
are necessary? It would save a lot of time if people could copy the
program from the magazine using copy and paste. It would be a
good idea, faster, simple, save on storage, and make more time for
new projects. What do you think? www.robotinfo.net/penguin/


LEFT: Here's a tiny galley proof preview.

MORE LINKS
www.p-robot.com/index.php/stamp-one-news.html












Index to Stamp One News! Issue #1

INDEX TO StampOne NEWS! SPRING 2009
===================================
School & Home Projects with the Parallax Basic Stamp 1
Basic Stamp One Book?
Build Your Own 21st Century 3D Stamp Computer!
-Introducing Space-Time Computing
-Powerful Dimension Engines
-3D Chess
-Overview
-Modify the Dx Board
-Wiring Procedure
-Cost
-Photos Note
-3D Computer Parts List
-PBASIC 3D Code
-Let's Hold a Party - By the Rules
-Multiple Dimensional Core Computing
-Bells & Whistles
-Power Requirements
-Tuning the Piezos
-Waveform Analysis
-Discovery of the 3D Stamp Computer
-Demonstration Code
-Three Dimension Channel Stereo
-(Code for D1, D2, D3))
-Harmonic Oscillator
-Resonation
-Constructive and Destructive Interference
-Beat Frequency 3D Program
-Applications for Beat Frequency
-(Levels 3 and 2 Code)
-Switching Off Dimensions
-Creating a Standby Mode
-Harmonic Additive Synthesis
-Light Effects
-Sensors
-3D Motion Mechanics
-Interdimensional Communications
-(Code for Dim1, Dim2, Dim3)
-Deploying the Network Code
-How to Use the 3D Stamp Computer
-3DSC Tips
-Debug
-Conclusion
-Glossary of 3D Computer Terms
Debug Talk Collection
Which BS1 for Making Your Own Stamp Board?
Add a Serial Port to the Basic Stamp One
Stamp One Specs
The Search For the Smallest Stamp - OEM BS1 History
Two Stamp 1 Project Boards - Can You Spot the Difference?
Simple BS1 Robot Build Ideas Plus Links and Sources
Why Go the BS1 Route?
Does It Make You a Little Crazy?
Quick Reference Guide PBASIC 1 Instructions
Proposed Projects
Features of StampOne News!
Magazine Overview
Basic Stamp One Notes

Behemoth Basic Stamp Supermachine BBSS

BEHEMOTH BASIC STAMP
SUPERMACHINE BBSS
MASSIVE 140 BASIC STAMPS SUPERMACHINE

The end is not here —it's only the beginning. This is a new record for BASIC Stamp Supermachines in the Lab - a 140 Stamps Behemoth BASIC Stamp Supermachine! How, you ask?

The 81 Stamps Giant Stamp Supermachine GSS is transformed through a massive expansion with a lucky surplus of stamp boards and modules from a collection established over the past ten years.

The BASIC Stamp Supermachine
is a demonstration of basic principles to take some characteristics of a supercomputer, in particular the notion of larger multiples of relatively simple processors communicating over a common bus, each doing a portion of a task in parallel. 

We're estimating here but it looks like another 10 BSHBs, 9 OEMs, 12 modules, 7 Stamps from robots, 15 Stamps from Penguins, and 6 miscellaneous boards for a total of 59 more stamps.

This makes a next generation Behemoth Basic Stamp Supermachine BBSS with a total of 140 Stamp processors (81+59) that were accumulated over a decade. The BBST is 40 chips larger than the first Big Brain that had 100 Propeller chips.

Undoubtedly this means recycling some other projects and as we're a little reticent to do that so some thought will take place before any construction. It's likely we'll make the decision to recycle a few robots or simply borrow the Stamp modules and boards. If more hidden cache boxes of stamps are discovered, we'll be sure to include those in the next larger size Stamp machine.

Giant BASIC Stamp Supermachine GSS

ADD TOGETHER ALL BASIC STAMP SUPERCOMPUTERS TO CREATE A SUPERMACHINE
GIANT BASIC STAMP SUPERMACHINE GSS WITH 81 STAMPS


The BASIC Stamp Supermachine
is a demonstration of basic principles to take some characteristics of a supercomputer, in particular the notion of larger multiples of relatively simple processors communicating over a common bus, each doing a portion of a task in parallel.

IF you added together all BASIC Stamp supermachines ever made, how many BASIC Stamps would result in the giant machine?

WE speculated about the next BASIC Stamp Supermachine, what it would contain for cores, and how it would be constructed. Now we know. The new Giant Basic Stamp Supermachine has a sum total of 81 Stamp cores created by networking together other Stamp supermachines. 

— The Giant Basic Stamp Machine has a sum total of 81 Stamps (and 1 Propeller)

Do the math below. (the names have new genre references)

BSS - BASIC Stamp Supermachine, 22 Stamps
http://humanoidolabs.blogspot.tw/2013/06/basic-stamp-supercomputer.html

Penguin with 12 Brains - World's Smartest Penguin Robot, 12 Stamps
http://humanoidolabs.blogspot.tw/2013/10/penguin-with-12-brains-basic-stamp.html


SEED - Baby BASIC Stamp SEED Supermachine, 10 Stamps
http://humanoidolabs.blogspot.tw/2012/07/seed-supercomputer.html
http://humanoidolabs.blogspot.tw/2012/07/seed-supercomputer-part-2.html


TRICORE Stamp Supermachine, 3 Stamps
http://humanoidolabs.blogspot.tw/2013/10/tricore-basic-stamp-supercomputer.html

MSS - MINUSCULE Stamp Supermachine, 2 Stamps
http://humanoidolabs.blogspot.tw/2013/10/minuscule-stamp-supercomputer.html

TSS - Tiny BASIC Stamp Supermachine, 7 Stamps
http://humanoidolabs.blogspot.tw/2013/10/tss-tiny-stamp-supercomputer.html

MOM - Master Offloader Machine, 10 Stamps
http://humanoidolabs.blogspot.tw/2012/01/master-offloader.html

TWO STAMP BSS (BS2sx + BSpx) 2 Stamps
http://humanoidolabs.blogspot.tw/2013/10/2-stamp-bss.html

AM - The Algorithm Machine, 2 Stamps
http://humanoidolabs.blogspot.tw/2010/08/am-algorithm-machine_24.html
http://humanoidolabs.blogspot.tw/2010/09/brain-build-1_13.html

3DSC - Three Dimensional Stamp Supermachine, 3 Stamps
http://humanoidolabs.blogspot.tw/2013/10/3dsc-worlds-1st-3d-stamp-supercomputer.html


4DSC - Four Dimensional Morphing Stamp Supermachine, 3 Stamps
http://forums.parallax.com/showthread.php/112082-World-s-1st-3-Dimensional-Stamp-Computer-(3DSC).-Upgrade-4D-Morphing-Computer?p=801051&viewfull=1#post801051

QUADLYZER - Quantum Analyzer, 4 Stamps
http://humanoidolabs.blogspot.tw/2012/10/quadalyzer-quantum-analyzer.html 

SUPERSTAMP - 1 Stamp, 1 Propeller
http://humanoidolabs.blogspot.tw/2013/10/superstamp.html

THE GSS
The GSS, with 81 Stamps, functions in deterministic parallel thinking. Each Supermachine hosts to the others. The entire machine can comprise partitions and sections. Power consumption is minimal. The average BS2 is quoted by Parallax as drawing 3 mA when running. The full machine based on the BS2 would draw about 243 mA and can run from a single lab bench regulated power supply. The actual supermachine consists of a mix of Stamps models, some drawing more power like the BS2px (55 mA) and some less like the BS1 (1 mA).

Another BSS Basic Stamp Supercomputer?

ANOTHER BSS BASIC STAMP SUPERCOMPUTER?
The Grapevine Speculation
Will there be another BSS? Considering that the BSS family and its spinoffs now encompass almost all BASIC Stamp boards and modules, is it possible that the torch may pass on to the Propeller chip? ... or will we see more of the integration of the Stamp + Propeller, or clever new Stamp-only inventions?


The question is, are there any new Stamp boards or modules that could be utilized in future projects that would show some new features? The answer is yes, and as a result, the "super stamp" is now born, made from both a BASIC Stamp and Propeller chip boards.

The Super Stamp has the extra memory and speed (+cogs) of the prop, yet programs in BASIC and has PBASIC functions, and a similar module form factor. There is some discussion about using the SPIN Stamp for such purposes.

A newer QuadLyzer functions as a BASIC Stamp Quantum Analyzer, and is a member of the BASIC Stamp Supercomputer family.

One idea is moving towards more cost effective multiplicities. The propeller chip is about $1 per computer (Cog) and this remains highly competitive. So what is coming up? You will begin to see some enhancements for modules and chips that can be applied to the BASIC Stamp and the Propeller chip, as well as dedicated supercharged machines.

Tentative New UT Basic Stamp Supercomputer
http://humanoidolabs.blogspot.tw/2013/10/ut-basic-stamp-supercomputer.html

QuadLyzer
http://humanoidolabs.blogspot.tw/2012/10/quadalyzer-quantum-analyzer.html

SuperStamp
http://humanoidolabs.blogspot.tw/2013/10/superstamp.html

Basic Stamp Discovery


STAMP DISCOVERY MAKES WAY FOR NEW SUPERMACHINES
GIANT BASIC STAMP DISCOVERY
While organizing space after several times of moving from lab to lab and home to home, some hidden dusty boxes were discovered way up inside the dark poorly illuminated back country of elevated storage land. When opened, the boxes held the greatest treasures of dozens of BASIC Stamps, chips, modules, boards, and parts! This opens the pathway for the construction of new Stamp supermachines.

— Halloween special true story

These treasured boxed caches of Stamp modules and parts were collected over the past ten years, and were located up in the tiny dark elevated loft, a place where no human dare go, especially in the month of October, when spirits, goblins, ghosts, vampires, and unmentionable creepy crawlies make their appearances...

It's the place where there's no space to stand up. On your hands and knees, you crawl around with other things that also crawl. They seek the warmth of your pants, and once they get inside, they love to bite.

If you're brave enough to temporary withstand the horrendous heat and fling your face into the dimly illuminated dusty dark creepy crawly realm, or suddenly encounter a sticky spider cobweb of immense proportions flapped abrubtly into your face along with its large ugly black furry resident inhabitant, or endure any scarey small spaces closing in on you creating confining claustrophobic tendencies, this is surely the place to go, explore and realize the full peak of your greatest fears!

Treasure hunters are often brave souls, willing to temporarily endure such challenges, with the thought of treasured discovery in mind. Suddenly, a treasure cache of boxes was discovered, filled with dozens of BASIC Stamps, modules, chips, boards, kits, and parts, enough to design and build the next generation massive and powerful Stamp supermachine! The cache discovered will undoubtedly lead to greater, larger, and considerably more powerful BASIC Stamp supermachines!

Wednesday, October 16, 2013

Penguin with 12 Brains - BASIC Stamp Supercomputer

PENGUIN 12 BRAINS
BASIC STAMP SUPERCOMPUTER

In a kind of Brain Cortex collective extension, Penguin's brain was made into a parallel cluster of processing power, rewiring the original thought processes, creating a hive or gang of Synaptic Regio, more closer to mimicking a human's brain. Overall, the operation was a great success!

THE EXPERIMENT
As a recent experiment, the brain of Penguin Robot was disembodied by tapping into and connecting it to the BSS Supercomputer. The brain surgery was simple and accomplished by hand. Connect 3 wires, + to Vdd, - to Vss and S to P2 on Master Computer MC, as can be seen in the photos. The power of Penguin's brain became so fantastic, that accessing all the power and all the sensors and all the peripherals from 12 computers made it "THE BRAIN" of all brains! 

This photo enlargement shows supercomputing connections made from the BSS Basic Stamp Supercomputer to Penguin robot's single port at the top of the motherboard. Green is ground, red is Vdd, and yellow is signal.

ACCESSING
For one thing, it can access all the data, computational power, sensor information, peripherals such as EMIC text to speech (Penguin is now talking), LCD, uOLED color monitor, PIR, PING))), an entire choir of piezo speakers that run at the same time, dancing lights, and all kinds of just really cool stuff! The human mind cannot begin to imagine all the possibilities of applications. With only a tiny tether, Penguin now has the biggest Brain with 12 computers running simultaneously and ability to use up to 192 ports. So now little Penguin robot has the tools, software, hardware and the power to be even more amazing!

MORE INFORMATION
http://www.p-robot.com/index.php/penguin-supercomputer.html

MORE BRAIN POWER

For even more Brain Power, run the remarkable Big Brain Penguin software written by vrossi. It can increase the number of programs stored in Penguin's Brain whenever the computer is a Basic Stamp with more than one 2K bank of EEPROM (i.e. BS2p24, BS2p40, BS2pe, BS2px, etc.).  For more information about the vrossi Big Brain and to download the software:
http://www.p-robot.com/index.php/other.html http://forums.parallax.com/showthread.php?p=765432


From the PRS web site: Hundreds of programs have already been written for the Penguin; each of them gives him a specific ability. Each time you want to make your Penguin behave in a different way, however, you have to turn your Penguin off, connect him TO a PC, load another program, disconnect him from the PC and finally get him doing what you wanted. Now, instead, you can simply load once this Big Brain program and then enjoy many of the best Penguin behaviors without reconnecting him to the PC. In this way the Penguin is finally free; he is not a slave of the PC anymore. He can autonomously sing, dance, walk, navigate toward the light, migrate North, play a radio station, according to what you ask him.

Download the zip file in a folder on your PC; then load the program Penguin_Big_Brain_v10.bpx in the Basic Stamp Editor. It will automatically load also the 6 Dependent programs. Please follow the instructions contained in this main program.


Download here
http://www.p-robot.com/sources/BigBrain.zip

For more info about the BSS Basic Stamp Supercomputer
http://humanoidolabs.blogspot.tw/2013/06/basic-stamp-supercomputer.html
http://forums.parallax.com/showthread.php?p=765140
For information and plans to build your own BSS Supercomputer, check the latest edition of Penguin Tech Magazine posted in the Parallax Robotics Forum.

3DSC - Worlds 1st 3D Stamp Computer

3DSC - WORLDS FIRST 3D STAMP COMPUTER
 

Basic Stamp Supercomputer Spinoff Technology - A 3D Stamp Computer to Explore a Multidimensional Universe

Note: I’m posting this in the Basic Stamp Supercomputer thread as spinoff technology, though it’s likely such a project can be interfaced the the BSS itself. The line is not a distinctive one, as what can be applied to the 3D Stamp Computer can be applied to the BSS as well. Yet, for the 3DSC, the applications appear totally different and unique. More on this will be described.

I was looking at the Basic Stamp Supercomputer and there in front were multiple platform levels of various stamp computers with incredible power, and the magnitude hit me - thinking should be in three or more dimensions. Up to this point, I was thinking only in terms of quantity, i.e. clusters and paralleled processing.

According to Einstein, a space-time continuum exists in multiple dimensions. So why not have the supercomputer do a kind of demonstration or simulation and recreate the effects of space-time with, say three or more dimensions of choice? (using simple common components) That would be affordable if we used the Basic Stamp One, and the entire project could be completed in a reasonable period of time.

Taking this new BSS spinoff technology one step further, a complete yet simple entity was created which is now called the 3D Stamp Computer or 3DSC. It actually works! Using three driving computational and controlling engines and thinking in three dimensions (not limited to space only), it was programmed with some very interesting ideas, the results of which are absolutely spectacular!

Using light, sound, computation, space, and time, some demonstration programs were written that are absolutely mind blowing. I felt a kind of awesome feeling like back in the university when being introduced to the world of Albert Einstein with time travel, the Universe, dimensional space time concepts and physics that can inspire the mind and the soul into the excitement of expanded thinking on new levels.

Simply put, the project takes you to a place where literally no one has gone before - the power of multidimensional computing is the ability to use time and space in various relationships with hardware, calculation, computation, sound, light, sequence, phase, actuation, waveform, oscillation, harmonics, sensors and inter-dimensional communications to develop new creative concepts.

Historical - From the Beginning - the 3DC (3D Computer)
http://forums.parallax.com/showthread.php/108121-BASIC-Stamp-Supercomputer?p=796273&viewfull=1#post796273
I will probably break off the 3D Stamp Computer into its own thread as it will be developed as a single project for a while. As an update to the 3DC, I'm currently developing application ideas and outlining the software. It appears that once you work with multiple stamps, rather than one, there are many new applications never tried before with stamps.

This opens up all new ideas and programming possibilities. Once it is fully developed, there is great potential for connecting it to the Basic Stamp Supercomputer. It the current state of the 3DC, three computers can attach to the BSS. However, these will need their own space and levels to achieve their programming tasks which are affected by space and proximity. I searched the web for similar proximity apps with basic stamps and didn't find any. This is going to be all new territory for the stamp.

I have also considered working with the BSS in a way to convert it to a multi-dimensional supercomputer, and program it for apps that are designed for 30 dimensions. That may require a rearrangement of the stamps in space time. While I've thought of an abundance of apps for the 3DC, the multiple dimension BSS (MDBSS) is going to take some considerable thought. Exactly what apps are most suited to 30 dimensions? It's definitely new space to trod upon...

3D Stamp Computer Update
http://forums.parallax.com/showthread.php/108121-BASIC-Stamp-Supercomputer?p=798669&viewfull=1#post798669
Programming is now completed on the BSS Spinoff - 3D Stamp Computer, and the article will be included in BasicOne Stamp News Spring 2009 premier issue. The testing went without a hitch, the code works flawlessly, and the apps are all listed in the article. The schematic is fully tested and verified. I wrote 11 programs for the 3DSC, all are now tested and working.


LINKS

http://forums.parallax.com/showthread.php/108121-BASIC-Stamp-Supercomputer?p=799967&viewfull=1#post799967 

http://forums.parallax.com/showthread.php?p=799604

http://forums.parallax.com/showthread.php?p=799964


http://forums.parallax.com/showthread.php/112082-World-s-1st-3-Dimensional-Stamp-Computer-%283DSC%29.-Upgrade-4D-Morphing-Computer?p=799604#post799604  

http://forums.parallax.com/showthread.php/108121-BASIC-Stamp-Supercomputer/page10

to be continued 

2 Stamp BSS

2 STAMP
BSS

You can amplify the power of one Stamp by 2X or more!
 
Per request, this is the initial wiring of a 2-Stamp BSS using a BS2sx and a BS2px.


POWERFUL
The BS2sx and BS2px are two of the most power stamp processors made by Parallax. Their power is unprecedented in the lineup of Basic Stamps. In this example, the BS2sx is from a Parallax BASIC Stamp Super Carrier Board and the BS2px is from a Penguin Robot motherboard. The Penguin board adds additional features - a 7-segment digital display, company, three spare I/O pins (1 free, 2 from disconnected servos), reset pushbutton, IR transmitter, 2 IR receivers, and two CaS light sensors.

INTERFACE

The interface is from P0 on the side of the Basic Stamp Super Carrier Board and P5 on the Penguin Bs2px board. The battery supply will now be connected and Vin is joined together along with Vss ground. With the SCB, a small solderless breadboard is added to make the connections. Resistors used for this setup are 1K. Note, the SCB does not have the inline 220 ohm resistors to port side so resistors will be added to any used port, including P0 to P5. The one wire interface is still maintained.

Piezo Speakers
The SCB is wired with its Piezo Speaker on P15. The Bs2px board has its Piezo Speaker on P12. Change code accordingly.


Software
Change the BSS code to reflect Port P5 on the Bs2px side and input for 2 computers. Download the Master and the Worker codes (computer 1 and computer 2) to run simultaneously. Although it's your choice, here the BS2sx is the Master and the BS2px is the Worker.


Two-Stamp BASIC Stamp Supercomputer Summary
http://forums.parallax.com/showthread.php?p=765140
The wiring for connecting a BS2sx to a BS2px BASIC Stamp processor - how to amplify the power of one Stamp. This is entirely different from the Minuscule Stamp Supercomputer which uses different BASIC Stamp processors.


Discovery Post
http://forums.parallax.com/showthread.php/108121-BASIC-Stamp-Supercomputer?p=772979&viewfull=1#post772979

AI Software for Tricore Basic Stamp Supercomputer

BS1 Specs show 256 bytes program size
AI SOFTWARE FOR TRICORE BASIC STAMP SUPER COMPUTER
This is the lite version of TINY AI. The Tricore version of Tiny AI is now available as TriCore_AI.bs1, for copy (see below) and for download at the provided link. The code sets up a life cycle for three cores using the available resources provided by a Parallax BS1.

Download the completed software program in PBASIC at the site below, or simply copy and paste the provided code into the BASIC Stamp editor software. Tricore_AI is the smallest AI program for the series of Stamp processors, fitting into a mere 256 bytes EEPROM. The remarkable attributes of the tricore_ai.bs1 software include self enumerating, determinism, memorizing, remember/recall, nap, dream, sleep, wakeup, talk, listen, know what is heard, work, socialize, hibernate and randomization.

tricore_ai.bs1 software is minimized code with minimal comment length.

DOWNLOAD TRICORE_AI.bs1
http://forums.parallax.com/attachment.php?s=9d78fa693110cfab8d93fd0bbf91f082&attachmentid=62393&d=1248147076 


' TriCore_AI.bs1
' TriCore AI Artificial Intelligence v10.0
' Stamp AI for the BS1 TriCore Supercomputer
' by Dr. Humanoido July 20, 2009


' Code fills the BS1's 256 byte EEPROM
' Code number at end of field indicates number of statements

' A total of 93 program statements

' ---------------------- Directives ---------------------------------

' {$STAMP BS1}             ' Self deterministic
' {$PBASIC 1.0}            ' Self enumerating

' ---------------------- Descriptions -------------------------------

'     Performance of Life Cycle
' 1)  read pin 1 and determine id                         (self enumerating)
' 2)  determine computer number based on id range         (deterministic)
' 3)  remember computer id & number                       (memorize)
' 4)  recall memory of computer id & #                    (remember)
' 5)  nap and pseudo random dream in "Vers Libre"         (nap, dream)
' 6)  sleep fuzzy clock - its computer number in seconds  (sleep)
' 7)  wake to send its computer number and id             (wakeup, talk)
' 8)  Listen for others' computer numbers                 (listen)
' 9)  if heard, remember other computer numbers and id's  (know what is heard)
' 10) do some work, retrieve the other ids...             (work)
' 11) go into suspended animation                         (hibernation)

' ---------------------- Declarations -------------------------------

SYMBOL  result  =   B0    ' (random) Nap & Dream - a random number
SYMBOL   n      =   BIT1  ' (random) bit1 number is 0 or 1 from B0 above
SYMBOL   id     =   B1    ' pin read id number of this computer (0-126)
SYMBOL   c      =   B2    ' determined computer number (1-10)
SYMBOL   v      =   B3    ' id range value for each computer, random dreams counter
SYMBOL   h      =   B4    ' no. of heard/missed coms (never heard - was sleeping)
SYMBOL   x      =   B5    ' slush value for thinking, recycled as needed
SYMBOL  epin    =   1     ' Enumerating pin
SYMBOL  ipin    =   0     ' Rx Tx Interface pin for serial in and out
SYMBOL  ppin    =   7     ' Piezo speaker pin
SYMBOL  baud    =   N1200 ' Baud rate, inverted, n81 format



' code 13
 
' ---------------------- Self Enumeration ---------------------------

LOW   epin       ' get id from self enumerate pin, read rc circuit = ID number
PAUSE 2000       ' cap charge & settle time on pin 1
POT   epin,54,id ' pin 1, scale, determine id, read pot (POT PotPin, Scale, read_value)



' code 3
 
' ---------------------- Determine Computer Number ------------------

Loop:                                           ' loop for all ten computer possibilities
LOOKUP c, (12,23,35,45,55,76,95,114,122,134), v ' lookup logged id range values v
c = c + 1                                       ' next range lookup address
IF id >=  v THEN Loop                           ' if id larger than range value, try again
DEBUG "Hello human!",CR,"Me, Artificial Intelligence Life Form ",CR,"computer ", #c,"id ",#id,CR,CR        ' show computer number and id!



' code 5
 
' ---------------------- Memory Exercise ----------------------------

' Memory Map   /eeprom 84% full
' 00              computer id     (enumerating)
' 01              computer number (deterministic)
' 02-21           other computers, alternating id & computer # (see below)

' IDEAL DATALOGGING MEMORY MAP FROM 02 TO 21 (FOR COMPUTER #1 ONLY)
' MEMORY LOCATION  02  03  04  05  06  07  08  09  10  11  12  13  14  15  16  17  18  19  20  21
' DATA STORED      ID1 C1  ID2 C2  ID3 C3  ID4 C4  ID5 C5  ID6 C6  ID7 C7  ID8 C8  ID9 C9  ID10 C10

WRITE 0,id                                       ' memorize id number
WRITE 1,c                                        ' memorize computer number
READ 0,id:DEBUG "(my 1st memory)", c,CR,CR       ' show computer number is remembered
READ 1,c :DEBUG "(my 2nd mem)",id,CR,CR,"(Nap Dreams)" ' show computer id is remembered



' code 4
 
' ---------------------- Nap & Random Dream -------------------------

' NAP INFO
' =========
' Nap#  Nap Time
' 0     18    ms
' 1     36    ms
' 2     72    ms
' 3     144   ms
' 4     288   ms
' 5     576   ms
' 6     1.152 s
' 7     2.304 s

v = 0                          ' init a new counter
result = id                    ' seed pseudo random # generator with the id
Again:                         ' loop
v=v+1                          ' count the dreams
IF v=11 THEN FuzzyClock        ' do 10 dreams
RANDOM result                  ' randomize a byte
BRANCH n, (Dream1, Dream2)     ' go to bit 0 or 1, BRANCH value, (Case_0, Case_1, Case_2)
Dream1:                        ' begin 1st dream
NAP 0                          ' nap reduce 1ma to 25us
DEBUG CR, "Sweet ",#n,#result  ' show dream & random number
GOTO Again                     ' next random dream
Dream2:                        ' begin second dream
NAP 0                          ' nap 18ms, reduce 1ma to 25us
DEBUG CR, "Dream ",#n,#result  ' next random dream or end of dream, show rnd numb
GOTO Again                     ' repeat



' code 15
 
' ---------------------- Fuzzy Clock --------------------------------

FuzzyClock:                    ' this computer will sleep equal to c
x=c*3                          ' sleep formula
DEBUG CR,CR,"(Sleeping)",CR    ' display sleeping mode
SLEEP x                        ' its computer number in seconds
DEBUG "(wake up)",CR           ' Display clock status



' code 5
 
' ---------------------- Announce id & c to Everyone ----------------

SEROUT ipin,baud,("!",id,c)    ' wake up, announce this computer's ID and #,
DEBUG "(talk) ",#id,#c,CR      ' show id & c were sent, computer 10 is last to wake



' code 2
 
' ---------------------- Listen for Neighbors id & c ----------------

' Written for the 3 computer TriCore Supercomputer, change for seed supercomputer
' if c = 1   x = 1 to 2  listen for two computers  x = 1 to (3-c)
' if c = 2   x = 1 to 1  listen for one computer
' if c = 3   goto end    do not listen, this is the last computer
' cannot count itself as listening to itself (set for TriCore supercomputer)

v=2                            ' init the write addr, start at 2
Listen:                        ' listen to other computers speaking their id's
IF c = 3 THEN Think            ' jump if computer 3, cannot listen as sleeping
x = 3 - c                      ' equation to determine looping
FOR h = 1 TO x                 ' do the loops
SERIN  ipin,baud,("!"),id,c    ' look at serial pin 1 for incoming id & computer #
DEBUG "(hear) ",#id,#c,CR      ' show received id & c
GOSUB Memorize                 ' remember what you hear
NEXT                           ' next interation
GOTO Recall                    ' recall what what heard



' code 10
 
' ---------------------- Memorize Neighbors id & c ------------------

Memorize:                      ' place heard computer's id and c in memory
DEBUG "(memorizing)",CR,CR     ' memorize the id and c values
WRITE v,id                     ' datalog to eeprom, v is eeprom addr = 2
v=v+1                          ' inc eeprom addr
WRITE v,c                      ' datalog to eeprom
v=v+1                          ' increment memory loc
RETURN                         ' listen again


' code 7


 
' ---------------------- Recall Neighbors ---------------------------

Recall:                        ' Read/display neighbors id & c
DEBUG "(recall neighbors)",CR  ' monitor recall
v=1                            ' init mem loc
DEBUG "mem loc, id/com ",CR    ' display memory location, id, computer number
Repeat:                        ' recall memory subroutine
v = v+1                        ' begin at mem loc 2
READ v,x                       ' recall v and id
DEBUG #v,#x,CR                 ' display mem loc, read val
PAUSE 500                      ' slow to see screen vals
IF v>6 THEN Think              ' CHANGE THIS TO REFLECT WHICH SUPERCOMPUTER!
GOTO Repeat                    ' again



' code 11
 
' ---------------------- Do Some Thinking/Work ----------------------

Think:                         ' think routine
DEBUG CR,"(Thinking)",CR       ' announce thinking
READ 1,c                       ' recall computer number from memory
DEBUG "I am computer ",#c,CR   ' announce my computer number
READ 0,id                      ' recall id from memory
DEBUG "My id is ",#id,CR       ' announce my id
READ 1,c                       ' recall this computer number
x=c*3                          ' formula for length of sleep
DEBUG "I slept  ",#x," sec",CR ' how long did I sleep?
h=3-c                          ' formula for the number of heard coms
DEBUG "I heard  ",#h," com",CR ' announce # of computers heard
h=2-h                          ' formula for the number of missed coms
DEBUG "I missed ",#h," com",CR ' announce computers not heard
DEBUG "I had    10 dreams ",CR ' announce computers not heard
GOTO Halt                      ' end



' code 15
 
' ---------------------- Suspended Animation ------------------------

Halt:                          ' heart beat every 2.6 seconds
DEBUG CR,"(bye)"               ' monitor mode
END                            ' maintain state



' code 3
 
' -------------------------------------------------------------------

Tricore Basic Stamp Supercomputer

The TriCore BASIC Stamp Supercomputer
It was discovered that two cores are not enough for fully testing and developing the artificial intelligence features of Stamp SEED software. The TSS was made to provide three static cores for two way serial communications development and AI evolution testing across a one line interface.
Views of the Stamp TriCore Supercomputer. The TriCore is used for testing and more rapid development of SEED. Its wiring is the same as the Stamp Seed Super computer and runs self enumerating deterministic software. One collection of two boards (a USBto232, and a BS1 Serial Adapter) is moved from board to board during code uploads and debugging. At left- the first prototype of SEED AI software is running on the debug screen. Middle- power is connected with two alligator clips delivering ground and +9V DC. Right- green wires are required to connect to pins on the stamps male pin bus.

Construction
To build a TriCore, take three Basic Stamp Rev Dx boards and attach one solderless breadboard with tape. Put two boards together end to end and tape both sides. Set the third board, with solderless breadboard, on top as illustrated. Affix with tape. Wire all vss to vss, vdd to vdd, vin to vin, and pin 0s together.


Parts List
3 Basic Stamp Rev Dx Board
1 Solderless Breadboard
3 Wire Cable Leads Female Ends for 3 Pins
8 Wire Cables Male to Female – Green
1 Roll Tape
1 Resistor 1K ohms
2 Jumper Wires
2 Ceramic Disk Capacitor .1uf
1 Resistor 2K ohms
1 BS1 Serial Adapter
1 USBto232 Adapter



Use this easy schematic to build your own TriCore Stamp Supercomputer. Remember to prepare the enumeration pins as shown below.

Build a TriCore TSS using three BS1 boards on a single wire interface using resistors and three Piezo Speakers. Vss routes to R1 and connects to port 0 of each computer. The TriCore runs the smallest artificial intelligence software available for Basic Stamps.


The deterministic pin circuit is built the same as for the Stamp SEED Supercomputer using the number one pins. The STS is capable of running the SEED Artificial Intelligence program.

Specifications of Tricore
Stamp Type - BS1 
Board Type - BASIC Stamp BS1 Rev D
Number of Stamps - 3 
Number of Processor Cores - 3
Processor Speed - 4MHz x 3 = 12MHz
Program Speed - 2,000 IPS x 3 = 6,000 IPS
RAM Size - 16 bytes x 3 = 48 Bytes
EEPROM - 256 Bytes x 3 = 768 Bytes
Number of IO = 8 x 3 = 24
Current Draw Running @ 5V = 1 mA x 3 = 3 mA
Current Draw Sleeping @ 5V =25 uA x 3 = 75 ua
Source Per I/O - 20 mA x 3 = 60 mA
Source Per Unit - 40 mA x 3 = 120 mA
Sink Per I/O - 25 mA x 3 = 75 mA
Sink Per Unit - 50 mA x 3 = 150 mA
PBASIC Commands - 32
Voltage - 5 to 15 Volts
Software - tricore_AI (Tiny AI)
Real estate - 1 small solderless breadboard

Stamp AI Artificial Intelligent Life Form
for the Stamp Tricore Supercomputer

Attached for download, please find the Tricore AI Artificial Intelligence code. TriCore Stamp AI brings life to this stamp supercomputer. It gives a soul to your Basic Stamp computers. At less than 100 code statements, it fits a BS1 in less than 256 bytes.

New life forms will live inside each computer. Some are friendly, some not. Each develop their own unique personality. Use the thought monitor to follow their progress, birth, evolution, dreams, neighbors, sleep habits, naps, work, memories, and thinking. To run, you will need to prepare hardware on the the enumeration pins on all three computers.


More info at
http://www.p-robot.com/index.php/tricore-stamp-supercomputer.html http://forums.parallax.com/forums/default.aspx?f=21&m=366864

DOWNLOAD TRICORE_AI.bs1
http://forums.parallax.com/attachment.php?s=9d78fa693110cfab8d93fd0bbf91f082&attachmentid=62393&d=1248147076