Friday, July 6, 2012

SEED Supercomputer Part 1

PART 1: THE SEED SUPER COMPUTER PROJECT - The World's First Living Stamp Super computer Experiment!



...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...
The supercomputer that has become a life form... How to Build a Parallax Stamp SEED Super computer

PHOTO: The back side of the SEED shows a minimum number of interfacing wires. Each Stamp Project Board includes a very low power piezo speaker which is ideal for large numbers of clustered computers. SEED uses a wiring color code - orange is Pin 7 to the piezo speaker, red is Vdd and green is Vss. SEED is a Self Evolving Enumerating Deterministic Basic Stamp Super computer and A New Evolution in Stamp Supercomputer design

The Stamp SEED Supercomputer is a new concept. This is a ten core, nine month project, with the first AI Stamp software to fit into 256 bytes eeprom - self determinate, evolving, enumerating, dreaming, poetic, noisy, talkative, and downright friendly. It runs on only one program that self evolves differently in each of the ten computers. It's evolutionary - it's revolutionary!
http://forums.parallax.com/showthread.php?p=817126

The First Basic Stamp Supercomputer with Artificial Intelligence SEED Supercomputing - A quantum leap in the programming of Basic Stamp Supercomputers by Humanoido 06.20.09



Schematic for the Basic Stamp SEED Supercomputer 
AI Artificial Intelligence Self Enumerating Evolving Deterministic. For more information and establishing a control panel, see this blog and refer to the new supercomputer manual. Note: there are 2 sets of resistors. The set shown for the piezo speaker is built into the Project Board and not necessary to add to the circuit. C1 was used in COM1 for testing purposes and is not required on the completed supercomputer.

 
New Desktop Stamp Supercomputer!

SEED is a new evolution in Basic Stamp supercomputers and supercomputing software, changing the way we think about Stamp collectives. The new Stamp supercomputer version is a smaller, lighter, stand-alone, lite BS1 version of the original Basic Stamp Super computer (BSS). Its a homemade ten-core collective. Its features include a new Skyscraper design, easy construction, extremely low power consumption, ultra neat wiring, and very low cost. Of course, it’s ten times more than a single Stamp and has the SEED software.


The Stamp SEED supercomputer is born at a time when the Parallax Basic Stamp hobby supercomputers are becoming popular due to the simple way to construct these units with one wire. Programming is in a simple but powerful language (PBASIC). Connecting together two, ten, or dozens of Basic Stamp Processors creates many advantages by amplifying the power over a single processor. These hand-made cores are the gateway to new inventions, education and advancing computing experimentation.


Configuration

The SEED
includes piezo speakers, batteries, portability, power LEDs, a control panel with individual board switches, and is fully perfboarded for wiring, sensors and projects. It uses the famous BS1 stamps and its unique architecture as a ten core processing machine, and includes a Parallax 433 Mhz wireless radio frequency communications feature.

Featured

The project is over eight months in the making and works out details using the Basic Stamp 1 for parallel clustered processing, serial Rx and Tx, one wire interface, and wireless radio communications for talk with other Basic Stamp Supercomputers or individual equipped-Stamps. The developed applications include a new interpreter language for use with any of the collective cores.

Objectives

The objective of creating this project is to have an enjoyable learning experience, expand education, learn more about supercomputers (principles of supercomputing, clustering hardware and parallel programming), and to serve as a platform for some very interesting experiments and demonstration projects. It also promotes the new concept of the Stamp Hobby Supercomputer. The Baby could be the basis of an educational classroom project, a science fair dream, or the fundamental idea in your next exciting Stamp project. The SBS can become an Adjunct to more Stamp supercomputers or any single computer.

Computing Power & Ratings

Comparing Stamps to Stamps, the novel SEED has a powerful cluster of ten BS1s, each in a Project Board that amplifies the power of a single stamp by a factor of ten. It creates a super Basic Stamp. The port count goes upward from 8 to 80. Speed gains escalate from 4 to 40Mhz. Instruction code capacity in EEPROM grows from 80 to 800. Software is transformed from a single linear program to 10 programs running simultaneously in parallel. Program execution speed increases from 2,000 IPS to 20,000 IPS.

Breadboard real estate goes up ten times. The addition of both software and hardware programming adds great flexibility. In general, the computing power is in the number of ports, new capabilities of hardware clustering, and revolutionary new software. It is rated not by the speed of conventional supercomputing but rather its comparison to ten times the speed of a single hobby Stamp processor and innovative software.


In the Works

In the works: a complete assembly manual, new code examples, schematic, and applications, to be added in the near future. Below are post areas reserved for these information topics that will be filled when the material is completed.

Summary

Of course the big advantage to this new Stamp supercomputer is the new software that changes the way the supercomputer functions. Originally dubbed the "Hive Algorithm," SEED is the software that feed this supercomputer in a new way.

Unique Experiences

There was an interesting experience that happened when the unit was first powered up, and it was completely unexpected. The construction of the individual Parallax Stamp 1 Project Board is unique. As a result, all bright red power LEDs lit up and began to twinkle like a Christmas tree!!! It was an awesome effect, not intended, but fully explainable. More on this later.
Humanoido


RELATED LINKS
*Stamp SEED Supercomputer

Promotion
A new Stamp Supercomputer is born. The big new addition is AI - Artificial Intelligence.
http://forums.parallax.com/showthread.php?p=817126
Over the next couple weeks, I will post more information, photos, software, schematics, and a "how to build" manual. The SEED is different from the first Stamp supercomputer BSS, because there is no Master. Each Stamp is an individual with unique rights and personalities.

The Power of SEED
"SEED" has some unique power. It can send wireless commands to a cluster of Stamp supercomputers within the range of a full city block. It may communicate with other equipped-Stamp-computers in an office building. This Supercomputer has many new features - smaller, taller (a new Skyscraper design with invisible surrounding ground field blocking EMI, RFI), lighter, ultra low power (only 80 milliamps in full use), very neat wiring, a concealed power distribution bus, a miniature control panel with toggle switches and pushbutton, one wire interface, clustering paralleled code written in Stamp PBASIC 1. Hobbyists and schools can now build one at a very low cost using Stamp 1 Project Boards and piezo speakers, and teach principles of supercomputing! The SBS is surprisingly powerful, and has created some unique surprises. Post Edited (humanoido) : 7/17/2009 9:58:02 PM GMT

The SEED Supercomputer Overview
This is the latest spinoff from the Basic Stamp Supercomputer BSS. Using
all Parallax parts and processors, another Stamp supercomputer is born.
At least eight months in the making, and nicknamed the "SEED," the
Stamp Supercomputer is a significantly different project from the BSS.
Intended for use with a Hive Algorithm, it has no Master, and uses a completely
new tower design called the Skyscraper.

It communicates bidirectionally with the BSS, other supercomputers and Stamps,
and Home Base, using a Parallax 433 Mhz Radio Frequency Transmitter and
Receiver pair. This makes the supercomputer so powerful, it can direct and command an
entire group of computers and supercomputers located in an office building,
given the wireless range over a full city block.

Programming is different too, as the Stamps use another version of PBASIC.
Signal LEDs and the LCD are not needed. The piezo speaker is retained for
signaling, debugging and communicating with the operator in the new
Piezo Language (P-LAN), an interpreter written in PBASIC.

Assembly Details
Basic Stamp 1 Project boards are connected with brass spacer hardware. No fasteners or clips are needed. The Master board is located top most. The spacing of the bottom two boards is slightly less to increase platform stability. A serial display attaches above the master. Wire all the Vss connections together. Wire all the Vdd connections together. Attach P0 port lines per schematic. Install the Piezo speakers, one lead to ground and the other to P1. During assembly with each step, refer to the photos and illustrations.


( ) Collect together all parts & supplies and line up on a clear table
( ) Connect ten Stamp 1 Project Boards with spacers to form a Skyscraper (see photos)
( ) Disassemble one clipboard and use the plastic clip for the Control Panel
( ) Drill Control Panel with holes for 2 mounting bolts, five switches and two banana jacks
( ) Install the switches, banana jacks, and connect the panel using two angle brackets & hardware
( ) Drill clipboard base to accept the Skyscraper base
( ) Mount Skyscraper with spacers, washers, bolts. Insert two angle iron in the front with cable clamps.
( ) Assemble Cage at top of structure, two spacers on each side.
( ) Add angle iron to the top of the front spacers.
( ) Cutout cardboard to fit the cage top and front. Printout the banner and tape to the front of the cage
( ) Install the battery clips onto Stamp 1 Project Boards
( ) Wire together, in parallel with wire twists, all reds together, all blacks together
( ) From the battery clip wiring, connect a lead red wire long enough to reach the black banana jack
( ) From the battery clip wiring, connect a lead black wire long enough to reach the red banana jack
( ) Warning!!! Battery clip red wire is negative, black wire is positive, opposite of standard color code
( ) Attach soda straw wire clamp/concealing agents to front left side rail wiring harness
( ) Attach five wire straps to hold the battery clips wiring in place
( ) From the back, install all piezo speakers
( ) Install a red short jumper lead from P0 to breadboard on computers 2 through 10
( ) Install a red short jumper lead from Vss to breadboard on computer 10
( ) Attach 1K ohm resistor from Vss to P0 on computer 10
( ) Lead orange wire from + piezo to P7 on all boards
( ) Attach green wire to – piezo from board to board
( ) Attach red wire from board to board as shown
( ) Attach yellow wire from P0 on bottom board to every board
( ) Make 5 wire leads with a push pin on one side, and solder end on the other
( ) Solder wire leads to 5 switches on Control Panel
( ) Solder wire leads from wiring harness to banana jacks on Control Panel

Note: Red banana jack goes to the battery clip cables plus side. Black banana jack goes to the battery clip cables minus/ground side.

( ) Connect switch wire leads to Computer 1. Toggles go to P1, P2, P3, P4. Pushbutton goes to P5.
( ) re: non-pin side of each switch, connect to a resistor (820 ohm), connect resistor to Vss
( ) Install and wire the Transmitter on Computer 10
( ) Install and wire the Receiver on Computer 10
( ) Do not turn on the supercomputer until testing is complete
( ) Cut out fiberboard to fit the top and front cage (the cage consists of the top-most four spacers)
( ) Print out the banner and affix it with tape to the cage top

Testing
( ) Check and verify all wiring with the schematic
( ) Set slide switch to “on” for all boards
( ) Connect a bench lab power supply, switch on and confirm that all ten computers have their red LED on
( ) Load and run designated test programs in each computer
( ) Test the piezo speakers, pushbutton, four toggle switches, transmitter and receiver
( ) You are now ready to begin Basic Stamp Supercomputing!

Parts List with Suggested Pricing

Parts List & Cost Guide (2009) - Basic SBS
10 #27112 Parallax Stamp 1 Project Board (HVW Technologies $14.95) $149.50
60 Jumper Wire, 4-inch (black, yellow, green, orange) $ 5.00
9 Jumper Lead, from a solderless breadboard wiring kit .02 $ .18
40 2.5-inch Brass Spacers $.10 $ 4.00
10 Battery Clips, 9-V $.02 $ .20
4 Wire Twists $.05 $ .20
4 Spacer Cage Bolts, Washers $ .16
4 Spacer Base Nuts, Washers $ .16
2 Control Panel Clamp Bolts, Nuts, Washers .02 $ .12
1 R1 Resistor 1K ohm (pin 0 to ground on C10) .02 $ .02
8 Angle Brackets .10 $ .80
16 Washers .02 $ .32
1 SW5 Pushbutton $ .30
1 Clipboard (half size)for Base .50 $ .50
2 Nylon Cable Clamps .02 $ .04
4 Wire Straps .05 $ .20
3 Soda Straw Large Blue n/c
1 Rubber Band n/c
2 Fiberboard Section n/c
6 Rubber Bumpers (leftover from Stamp 1 Project Boards) n/a
1 Printed Banner (see text) n/a
1 Clipboard Clip for Skyscraper Crown n/a

Control Panel
4 SW1–SW4 Toggle Switch .30 $ 1.20
1 SW5 Pushbutton Switch .30 $ .30
2 Angle Brackets 90 deg., washers, bolts, nuts $ .40
5 Jumper Wire 6½-inch length Yellow pin on one end $ .10
5 Resistor 1K for Switches .02 $ .10
2 Power Lead Wire, red, black, stranded $ .04
1 Resistor 10K ohm for Pushbutton .02 $ .02
4 Resistor 820K ohm for Toggle Switches .02 $ .08
2 Banana Jack Red, black .10 ea. $ .20
2 Banana Plug Red, black .10 ea. $ .20
1 AC Power Line Cord (to make power cable) n/a
1 Clipboard Clip for Instrumentation Control Panel n/a

Peripherals
1 #27981 Parallax 433Mhz RF Receiver $ 39.99
1 #27980 Parallax 433Mhz RF Transmitter $ 29.99
10 #900-00001 Parallax Piezo Speakers 5v $1.95 $ 19.50
1 Parallax 2x16 Serial LCD (Non-Backlit) # 27976 (Optional)
1 2x16 Parallel LCD (Non-Backlit) #603-00006 (Optional)

Base Station Bstat
1 #27112 Parallax Stamp 1 Project Board (HVW Technologies $14.95) $ 14.95
1 #27981 Parallax 433Mhz RF Receiver $ 39.99
1 #27980 Parallax 433Mhz RF Transmitter $ 29.99
1 Parallax 2x16 Serial LCD (Non-Backlit) # 27976 $ 24.99
1 #900-00001 Parallax Piezo Speakers 5v $1.95 $ 1.95
1 Set Wire Asst. Wire $ .50
1 Cabinet $ 2.00
1 Toggle Switch $ .30

Tools and Supplies
Soldering Iron, Solder, Scissors, Masking Tape, Screwdrivers (+/-), magnifier
Hobby Drill, Drill bit, Cut-off Disk, Needle Nose Pliers, Wire Cutters, Wire Strippers
Cardboard, rubber bands


The Microblogger
note to start adding the PLAN language routine, but decided to add it last, depends on leftover space.

07.12.09 Need to do more advanced testing but with three cores. Invented the
TriCore Stamp Supercomputer. Allows rapid development of SEED Artificial Intelligence.
Details will follow in a posting.

07.13.10 Using TriCore for developing talk code for the Stamp Seed Supercomputer.
In this section of the SEED code, each computer gets to know its neighbors, remembers
some information about each - unless it is sleeping when the neighbors are talking - then
it will miss some information. I actually won't know how these evolve until trying the code
with three computers and that's where the TriCore is especially useful.

07.14.10 Updating the first supercomputer operating manual. There are now 30 project
 applications that are highly useful! - written up for the Stamp Seed Supercomputer and others
in the BS1 line! Developing the next generation supercomputer, which is now a Propeller
supercomputer which is a direct offspring of this project. It is time to evolve not only the
software but the hardware too.

07.15.10 Developed a conversation code, increased reliability, added an attention code
to alert all individuals to spoken messages by other individuals, developed sample codes then
added to the main code. Created 12 programs for various effects and tested each. Produced
combination codes that pair up for communications on the network. Tested the network to see
the limits of serial transmission and reception. Found a way to double reliability with no errors
generated.

07.16.10 Debugged the dreaming subroutine. Increased the random nature of the dreams.
Developed a pseudo random number generator seed that would be unique to each individual
computer. Tested and added to the main program. Debugged main program. Tested the effects
of different seeds in the range of the TriCore. Produced code to format the outputs.

07.17.10 SEED Artificial Intelligence code is now working, fully tested and almost ready
for the first release. A version to fit the TriCore supercomputer is now working and complete. With the TriCore version, some finishing elements will be introduced and the timing will be adjusted. So far it fits into 256 bytes with some room to spare but the debug reporting can eat that space up quickly. Maybe serout commands will work as a substitute?

07.18.10 Serout will not work as a substitute for debug to save memory. See here.
http://forums.parallax.com/showthread.php?p=824287
The program had its first psychotic breakdown as it ran out of memory and into
its higher order brain functions. Had to delete some some of the work it was doing so
it will not break down in the future. The section posted about the software was updated
with many details. The only thing left with the code before posting is to add the comments. There's one draft with comments only, and one draft with code plus comments and the two must be merged.

07.19.10 All focus is on the AI manual and finishing the Stamp AI code. Worked on
the area of maintaining and preserving artificial life after the life cycle is completed.
Mike Green provided key information here:
http://forums.parallax.com/forums/default.aspx?f=5&m=369352
Loaded in approximately 40 programs and did testing debugging. Updated and adding
significant information to the Stamp AI software section of this posting.

07.20.10 As far as maintaining the life form state at life cycle, it will require
additional eeprom code. This rather overloads an already maxed out memory space
so this technique will be either greatly simplified or initiated in a future release. It is
noted that the primary variables are already saved to eeprom by write commands so
much of the work is already completed. More testing debugging. Worked on PLAN
language but could not get it to fit without overloading the eeprom. Code statements
already total near 100. Tried a give and take approach but not enough space. Will
include a code but rem it out for future expansion and code simplification.

07.21.10 Stamp AI is now complete and posted. Also completed and posted
Stamp AI for the Stamp TriCore Supercomputer STS. These two programs give life
to Basic Stamp Supercomputers. Two version available. (TriCore and SEED)
Posted the enumeration pin schematic and circuit preparation details. It's all working
so smoothly. Will begin work on schematics and continue work on the supercomputer
manual/book.

07.22.10 Working on supercomputer project book and schematics
07.23.10 Updated schematics, pin enumeration circuits, transceiver circuits
07.24.10 Completed final schematics and posted, work on manual. Note, this
project has only the manual left to complete, although this is a large part of the
overall project.
07.25.10 Developing the supercomputer handbook
07.26.10 Working on the project applications supercomputer book


Go to Seed Supercomputer Part 2
http://humanoidolabs.blogspot.tw/2012/07/seed-supercomputer-part-2.html 

Historical Baby
http://forums.parallax.com/showthread.php/108121-BASIC-Stamp-Supercomputer?p=814622&viewfull=1#post814622
Announcement - Coming Soon! Stamp Baby Supercomputer!
This is the latest spinoff from the Basic Stamp Supercomputer BSS. Using all Parallax
parts and processors, another Stamp supercomputer is born.

Stamp Baby Supercomputer At least eight months in the making, and nicknamed the "Baby," the Stamp Baby Supercomputer is a significantly different project from the BSS. Intended for use with a Hive Algorithm, it has no Master, and uses a completely new tower design called the Skyscraper. It communicates bidirectionally with the BSS, other supercomputers and Stamps, and Home Base, using a Parallax 433 Mhz Radio Frequency Transmitter and Receiver pair. This makes Baby so powerful, it can direct and command an entire group of computers and supercomputers located in an office building, given the wireless range over a full city block. Programming is different too, as the Stamps use another version of PBASIC. Signal LEDs and the LCD are not needed. The piezo speaker is retained for signaling, debugging and communicating with the operator in the new Piezo Language. humanoido



Baby Stamp Supercomputer Updatehttp://forums.parallax.com/showthread.php/108121-BASIC-Stamp-Supercomputer?p=815801&viewfull=1#post815801
The Baby is currently having a control panel soldered into the Skyscraper. I hope to complete the Crown mounting today. A Taiwan electric hobby tool is used to machine the edges and drill out the mounting holes. The Panel includes switches for an event timer and data input. The wiring harness is complete and the overall unit is very tidy as most wiring is covered. The harness has zero cost wiring sleeves with four twist tie points exposed to check and reconfigure wiring when necessary. Last week, the cage and banner was completed, along with the basic wiring. To reduce topple, a larger base was added. Vacant cable clamps (2) were added at the bottom for host wiring. The first phase software testing was completed. I have written some test software so far, and will work on the main cluster code after completing the wireless radio wiring and radio test software.


Announcement - Stamp SEED Supercomputer!http://forums.parallax.com/showthread.php/108121-BASIC-Stamp-Supercomputer?p=821460&viewfull=1#post821460
 All new! This is a ten core, nine month project, with the 1st Stamp AI software to fit into 256 bytes eeprom - self determinate, evolving, enumerating, dreaming, poetic, noisy, talkative, and downright friendly. It runs on only one program that self evolves differently in each of the ten computers. It's evolutionary - it's revolutionary! http://forums.parallax.com/forums/default.aspx?f=21&m=361377&p=1