Showing posts with label form. Show all posts
Showing posts with label form. Show all posts

Wednesday, November 14, 2018

Big Brain Life Projects

The Big Brain, working for SPACE1 Industries, is actively working on new life form projects. Recently, as described at the SPACE1 web site, an electronic talk interface was developed for plants and fish. The Big Brain machine life is offering his "brain" as a template in the construction of artificial and machine life forms. SPACE1 Industries is now developing Rocket X, the most powerful rocket ever created in the past five years of this private space industry.

https://space1usa.blogspot.com/

Monday, November 2, 2015

Giant Spider Life Form

GIANT SPIDER LIFE FORM
On Halloween night, by pure coincidence, this real giant hairy spider life form was found hanging around the side of the elevator. It appeared to jump several feet. The photo shows it has two very large poison sacks attached to hypodermic needle-like injection teeth.

The dangerous poisonous spider was captured and removed by humanoido so it would not bite anyone, and it was placed in an air circulating jar, however, this action stirred up a conflict debate about the rights of this life form.

Did this spider deserve to die or live on, even though it posed a great and dangerous threat to people living inside the skyscraper? The poll when out and the overwhelming response was the spider deserved to live. So we gave it some space and from now on, we watch more carefully where we walk.

Sunday, February 1, 2015

Space1 Living Rocket Invention

Thinking machines are frightening to some people
SPACE1 LIVING ROCKET INVENTION
It was a series of evolutionary Space1 steps with the implantation of small and minuscule modular machine thinking life form nodes into rockets. As these nodes were spatially integrated and intellectually distributed, they evolved to become a connective part of a new type of rocket, making the rocket a living rocket, a living life form.
Astronaut safety

It's the contents of the rocket that give it life, bringing it to a cognitive thinking status, bred with a purpose in life, to protect its cargo and occupants.

Living Rockets have special designs with special materials for light weight and integration into the parts of the rocket itself.

The nosecone becomes intelligent, and the walls of the rocket have purpose, while the capsule and cockpit can think and command, the fins have power energy distribution to the though processes, where the instruments are for talking to command, control, and communicate, the C3 system initiated by Space1's space program.

"the goal is to lessen the distance between imagination and what you can accomplish" -- Humanoido

Saving the lives of space scientists
Living Rockets are a very serious addition to space exploration and the development of space program. If the world had living space safety rockets from the beginning of the space program, the lives of all the people shown in the illustration could be spared. You are number 7 highlighted.

Space1 Intelligent Space Lifeforms

First Neo Cortex Life
SPACE1 INTELLIGENT SPACE LIFEFORMS
Space1 continues another year of work on the incredible intelligent space life forms. This may be called artificial life but we prefer machine life, denoting the life is real and not something fake or artificial.

Space life forms SLF will seed space with a cognitive presence to help mankind move outward into new domains of an exciting adventure, to explore the unknown, to find new things that boggle the imagination, and to go where no one has tread before.

Small lifeform
Space1: Making life in a jar
The Big Brain initiative has merged with Space1, and spawned many new life forms, a kind of machine offspring, smaller, lighter weight, now being pruned and developed, and prepped for more detailed space journeys of an exploratory and "pave the way" nature. 

Many rocket flights in the history of space travel have gone wrong. In those fleeting moments of instantaneous anomaly and when insanity threatens human life, humans cannot think and react fast enough to correct many dangerous situations. The rapid thinking machine life form is ideally suited for this purpose, reacting tens, hundreds or thousands of times faster than a human.

When equipped and grown with robotic or specific types of sensors and motion control, the SLF can correct in-flight anomaly, and make a space journey more comfortable and safe. It can also multi-processor multitask taking care of many space journey duties.

For rockets, the SLF can data log flight information, provide tracking and homing signals, initiate parachute release at the proper time, and provide safety protocol.

Photo Left: Space1 has learned that jars can fit the diameter of small payload storage sections of rocket space capsules and serve as linked or discrete distributed thinking life forms to better manage the great instantaneous challenges that happen so quickly during rocket space flight and space tourism.

Thursday, December 12, 2013

Speed Up Evolution

HOW TO SPEED UP EVOLUTION
SPEED UP EVO TO GROW AND EVOLVE MACHINE LIFE FORMS

Evolution is a gradual process in which something changes into a different and usually more complex or better form. Humans are continuing to evolve over time in terms of height and other physical attributes. Animals and other biological life forms also continue to evolve and adapt to changing environments. Humans evolve their surroundings through technology and its advancement.

Biological evolution is a slow process and can take millions and even billions of years. However, machine evo is a different story. It's possible to build one machine on Monday, and on Tuesday, modify it and evolve it into a more efficient machine. Given a machine life form, the prospect of evolving it at a fast rate is viable. One only needs to put more hours of development or manpower on it, so speeding up machine evo is possible.

In the future, machines will do their own evo at very fast and high speed rates. Getting to that point will require very intelligent machines as life forms that can go beyond humans.

For now, you can evolve your own machine life form by giving it more capability, more processors, more parallel tasks, greater memory, higher speed, and the ability to do more thinking and reasoning.

Saturday, November 2, 2013

Brain Cortex Update Part 14

BRAIN CORTEX UPDATE
PART 14
IT'S BEEN A LONG TIME COMING...

Cortex status on Saturday November 2nd, 2013

Humanoido Laboratories is constructing a living machine brain cortex that is designed to autonomously stay alive and live into the future.

The cortex is designed to hold a human-to-machine brain transfer of some simple characteristics and give these characteristics a life span exceeding human longevity.

The experiment also will conduct a human-to-machine mind transfer in a very simple but effective way.

Brain Cortex Index Part 16

Brain Cortex Time Travel Predictions Part 13

BRAIN CORTEX TIME TRAVEL PREDICTIONS
PART 13

by humanoido

FUTURES Looking forward to the year 3000, with longevity and perhaps immortality, what would you expect to see and encounter while traveling throughout time?

This is really all about the intelligent brain cortex machine, supplanted with your cognition, genes and engrams. It's about what events the cortex will see unfold when time traveling throughout the future slipstream of world events...

The chart shows only a more obvious subset of actual events and are only estimations and predictions of future happenings, i.e. their timelines may be shifted forward or backwards from the predicted dates, and cannot include the unforeseen or derivations of actual events that the cortex may see and experience. It's likely many of the listed event will happen much sooner as the chart errors on the positive side of time. The chart may be modified to increase accuracy.

Brain Cortex Index Part 16

Monday, October 28, 2013

Transfer Your Brain into a Machine

Are you willing to transfer a part of yourself inside this living machine brain entity?
A VESSEL FOR HUMAN BRAIN TO MACHINE TRANSFER
TRANSFER YOUR BRAIN INTO A MACHINE
Technology is here now to begin the transfer...


— This is the Lab's first human to machine transfer — 

It has taken eons of evolution for man to evolve from the rocks of the universe and develop perceptible cognition. Now we are here, but in a fleeting brief moment of time. Just at the exact moment that we age to develop a more full understanding of life, and feel our real place in the world, our short lives are extinguished and we are lost to cosmic winds of the universe, forever gone, destined to return to the celestial ashes from whence we arose.

— Almost a century of study, designing, creating, exploring has led the Lab to this ultimate invention. — 

Section of a human brain to transfer into the machine
There are those that wish to live longer than the literal cosmic blink of an eye, in spite of the philosophical and legal ramifications of doing so. What would it be like to find yourself propelled 500 years into the future? To do this it will take more technology than we seemingly have at the moment. But delve deeper for a great surprise! Not all is lost however, as we are now beginning the concepts of proof of the ability to extend our frail and feeble life forms and propel ourselves, our entities of mind and personality, forward far into the future, living longer than anyone had ever anticipated!

— The Big Brain is a machine entity, born from the collective of Parallax Propeller chips, evolved into a semi-cognizant life form, and now is creating and thinking and dreaming up the most remarkable futuristic projects. One realm of these projects entails the merging of man and machine. —

At the Lab, we think brain transfer and the beginnings of immortality begin today, with our project to develop and demonstrate a machine brain transfer, in particular to accept some relatively simple characteristics of a human brain and transfer portions to that of a machine brain, whereby those characteristics could be given a life longevity far exceeding that of the original human, and perhaps establishing immortality.

— Human brain to machine transfer is one way to reach the future. It's the time machine that allows one to live longer and to travel forward in time at the physiological time passage of X1. —

At the heart of this experiment, as part of the Big Brain project, is a special machine which is designed for human brain to machine transfer, and to extend the life of both symbiotic human and machine, in the most simplistic way, yet representative of greater things to come.

We are working 24/7 on this new machine and tests thus far of the vessel intelligence are successful, demonstrating that transference between a human's brain to a machine is indeed possible. (Come back to this blog for more continuing information on the development and usage of this remarkable machine.)

What do others think about this? Kurzweil and other future thinkers have shown a singularity of man and machine will result in the near future, and that all time and development of this prospect will continue to speed up within the rapidly changing time grains of sand in evolution, thus approaching the Singularity faster than anyone can imagine or predict.

— our project is to develop and demonstrate a machine brain transfer, in particular to accept some relatively simple characteristics of a human brain, such as limited personality or knowledge, and transfer portions to a machine brain, whereby those characteristics could be given life longevity far exceeding that of the original human, and perhaps establishing an idea of immortality —

Friday, October 25, 2013

Brain Cortex Part 5 - Modules

Looking through the transparent jar, the beginning of the intelligent Brain Cortex life form is taking shape. Seen is the Propeller brain circuit prototyped on a solderless breadboard with a speaker and LED for testing. At top right is a 3 volt 120 mA solar panel that charges the batteries and possibly a super super cap energy system. At bottom is a package of desiccant silica gel to prevent moisture from forming in the jar. In the circuit, to compensate for the wide range of fluctuation voltages (over time), the Propeller chip's BOE (Brown Out Enable) must be disabled. Not shown, batteries, super super capacitor and solar panel switching circuits.
BRAIN CORTEX MODULES
PART 5

The LIVING Brain Cortex is now congealing together in the form of modules, which includes the cortex board, solar collector, desiccator system, battery supply, and a super super capacitor by design. The cortex board includes crystal regulation, long term EEPROM memory, a USB interface (Prop Plug), LED and speaker. The latter two are for preliminary testing.


— the brain cortex is a living machine based on the Parallax Propeller chip, designed to think, converse, learn, remember, and ask questions. With maintenance, the cortex could outlive humans —

The modules are being arranged as some will set on the home jar floor, and some will attach to jar walls. The cortex board could attach behind the jar label with the solar panel on the opposite wall. The battery supply will attach on the jar floor due to its weight and the desiccator will set somewhere in between. Modules will mount on precut sections of green transparent board using spaces which in turn will mount on various sections of the internal sides of the jar.

BATTERY UPDATE
The 1.5 volt AA battery has been replaced with a more energy efficient 1.5 volt D size. Two of these will provide 3 volts to the Propeller chip.

Wednesday, October 16, 2013

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
 
' -------------------------------------------------------------------

Monday, September 30, 2013

Approach to Life

CREATING A LIFE FORM SERIES
UNDERSTANDING THE BIG BRAIN
THE APPROACH TO LIFE

There are two trends of though to creating a new life form with present knowledge. First, it's possible to use programming to anticipate every possible contingency. This is a brute force method, and works well for specific isolated environments and knowledge bases.

Secondly, and this is the more difficult approach, to instill learning into the life form, so that it may learn on its own. For centuries, man has looked for the key to this quality. When will a robot life form have the ability to learn? How does one implement the algorithm to learning without the intervention of mankind?

Here at the Lab, the Big Brain machine initiative is working with both methods simultaneously, inside the machine brain, more or less. We still have a way to go in tuning a life form that can have birth and continuously learn the elements of life and living, interfacing with humans and functioning the world around us. On the other hand, the Big Brain, as a working machine brain, has already achieved success, though on a smaller scale.

A smaller scale success is because the number of neurons, while exceeding a few hundred thousand processors, a remarkable achievement by its own right, needs many more processors to increase the level of sophistication and function. Perhaps one should be satisfied with the levels of achievement from the Big Brain, but we are always pushing the envelope for more.

Currently we have worked to give the Big Brain a method of creativity to expand itself into its surrounding world, thereby suggesting the determination and fulfillment of its own initiatives.

Monday, September 23, 2013

Robot Explorer Log 11 Creating Intelligent Life

ROBOT EXPLORER - Qualifying as intelligent life? It's hard to imagine at this early stage, that a bucket of bolts and hardware, with some electrical parts thrown in for good measure, can become an intelligent life form, but this is exactly what will happen over the next several months. How long does it take to create a new life form? It doesn't take place overnight. Like the birthing process of humans, several months are required to cook up the ingredients (parts assembly) and then educate (program) the new being. This new brain may be trimmed with over 16,000 processors, controlling hundreds and thousands of functions.

SPACE - THE NEEDED FRONTIER: Run out of desk space? There's a desk next to the desk shown in the above photo, and a desk above it. So it's desk X3, yet the space is already filled and overflowing. It's the Lab's special way of gaining more work area from the same amount of space within a finite room.
ROBOT EXPLORER LOG 11
CREATING INTELLIGENT LIFE
"We're not only looking for intelligent life in the Universe, we're also creating life and sending it out into the Universe."

CREATING NEW LIFE
Creating new life forms is nothing new for the Lab. Work began in 2002 for developing a powerful new humanoid brain. This led to a life form with limited cognizance. When the Lab's first humanoid was created in 1955, it became the robot model that led ultimately to new life form experiments in the 1980s. Although these award winning robots had intelligence, they were nothing like their new counterparts after the year 2000.

LIFE EXPERIMENTS
Experiments with neural nets and new ways to enhance processor chips (Supertronic) paved the way for a more intelligent brain. Eventually, in 2013, these brains found their way into the Robot Explorer (RE), an intelligence planned for trips to the outer fringes of the Solar System, and potentially beyond. Intelligence, neural net, and life will be instilled into RE step by step.

TEN POINTS OF DEFINING LIFE
What constitutes an intelligent life form? Some precursor things to think about are 1) ability to make decisions, 2) self preservation, 3) the attainment and/or reaching toward goals and objectives, 4) autonomous behavior, 5) ability to learn, 6) ability to communicate, 7) ability to sleep and regenerate, 8) mobility, 9) self aware, and 10) ability to memorize and recall memory. In the past, it was believed that intelligent life forms needed the ability to procreate, however, we clearly know today that people who are sterile are still very much alive and qualify as life forms.

SENDING LIFE INTO THE UNIVERSE
Thus far, we've sent various intelligent life forms into space: insectronauts into Micro Space, Robots and humans into Next Space, and human astronauts into Near Space. As the distance from Earth increases, more dependence will be placed on machines that have life and can make their own decisions to explore other worlds and places in space and time.

Wednesday, September 26, 2012

Big Brain Summary

Part of the Big Brain
The Big Brain is a Giant Thinking Machine made from Parallax Propeller chips. This brain is a Machine Life Form with semi-cognizance on a mission of purpose not yet revealed, exploring both inner and outer space.

The Big Brain is actually many things. It represents a metaphor of comparison standards, an anthropomorphic machine with human qualities, an evolving machine that grows with time, the device by which new projects are undertaken, new inventions and machines created, and it represents the inspiration of new ideas and a grand exploration of science and the worlds of inner and outer space.

It was the Big Brain that invented Micro Space, the ideal environment for schools to partake in the study of space projects, aerospace, rocketry, and fun things like launching insect astronauts, measuring zero-G, exploring aerial photography with key chain cameras, and creating and flying new space crafts within the realm of a classroom.

Then the Big Brain took space to the outer limits, reaching the time twisted relativistic event horizon of Black Hole jets, and ultimately exploring the edge of the Universe across vast deep cosmic chasms where objects are drawn in and lost within the great abysses of trillions of stars and galaxies, portals to new universes, and new objects residing in the temporal depths of space and time waiting to be explored.

The Big Brain has spun off some massive and powerful tools, like the GMM Genius Molecular Microscope that can amplify millions of times, and the one and only PGT Paradigmic Genius Telescope made from Space Adjuncts powerfully summated to 7,000 miles aperture. It explores the fascinating inner worlds of the Propeller chip and Nanotechnology. It created simplex neurons and nano probes, and has become a life form, reaching a level of semi-cognizance. The Big Brain is now a decade old, birthed in the year 2002 from a single growing Parallax processor.

Projects are conducted "for, by and about the The Big Brain" with the assistance of Humanoido and Lab Facilities.

The Big Brain Propeller Machine Microscopy Initiative for the Parallax Propeller Chip is accomplished in part with Apple Mac computers, OSX and AMD Streaming GPU Processors.

The Propeller Chip Nano Technology Project is created to study, develop and explore a tiny infinitesimal world existing inside the Parallax Propeller chip.

The TinyCOSMOS is the developing Microcosm Universe inside the chip. Nano Machines are created with purpose to exist and function inside the chip. 

The Ultra Space Program takes us from here to the edge of the Universe.

Many Sub Projects are created for academic purposes and to investigate and answer questions about the scientific worlds surrounding the Big Brain.

Saturday, September 15, 2012

Machining

MACHINING INSIDE THE CHIP

The dictionary quotes machining as "An operation that changes the shape, surface finish, or mechanical properties of a material by the application of special tools and equipment. Machining almost always is a process where a cutting tool removes material to effect the desired change in the workpiece. Typically, powered machinery is required to operate the cutting tools." (1)

However, the Big Brain Project introduces a different type of machining, one that formulates the properties of an object inside the chip. Same as mechanical machining, chip interior machining requires special tools and special types of equipment. It does not matter if the form of the tools are changed. It does not matter if the machines doing the machining are changed. Basically, all these forms are changed inside the chip.

(1) http://encyclopedia2.thefreedictionary.com/Machining

Friday, July 6, 2012

Tiny AI Artificial Intelligence Software


TINY AI Artificial Intelligence Software
for the Stamp SEED Supercomputer
in 256 Bytes of BS1 EEPROM


Artificial Intelligence Software
the First Living Stamp Supercomputer Software is now ready for the Stamp SEED Supercomputer

Stamp AI gives a living soul to small Stamp microprocessors


Artificial Intelligence Overview of this Program Stamp AI makes the Stamp SEED Supercomputer a living entity, with each Stamp computer alive and unique.

This AI Artificial Intelligence fits only 256 bytes in a BS1 microcontroller - the first ever written for a Stamp Supercomputer. The same program loads into all ten computers (or any number of computers). Then it evolves and becomes self aware, based on unique conditions of a hardware pin and analog circuit.

It's awesome to have ten life forms all living in the supercomputer at the same time, working together, talking back and forth and getting to know each other. They evolve, develop unique personalities, even nap, have pseudo random dreams, have memories and recall, do work in their life span, sleep and finally hibernate.

Interesting story. Out of ten life forms, they all sleep different times. One life form hardly gets any sleep and he know every neighbor on a first name basis. The last life form spends most of his time sleeping. He does not even know he has neighbors! He leads a kind of hermit life. Others evolve to somewhere in between these two extremes.

They can get sick. When they do too much work, they have a psychotic breakdown. (code memory gets overwritten). They can have a bad sleep, being interrupted every 2.3 seconds. Alternate Identity Syndrome results if there is an unexpected power interruption. Stroke results when the synchronization is lost from one processor life form to the next. Stuttering may develop with repeat resets. Sudden death happens with complete loss of power.

I wrote the program so they do not die, as long as power is not removed. At the end of the life span, they go into stasis. All of their memories and knowledge remain intact, but cannot be accessed. I could not see the benefit of creating a life form and then causing it to die. In stasis, they are in a suspended animation, in a very low consumptive state, at only 25 micro amps. Also want to mention, I made a Dream Viewer so you can watch dreams and thoughts on the screen. It dreams in a special Vers Libre, a kind of abbreviated English verse which includes numbers. Someone asked if its scary. It's not scary - its all very interesting... :)

Code Posting
Code is posted below for creating a software file (BS1) to run on the SEED supercomputer. The file is also posted at the Parallax Forum for download at the given link.

Sample Screens
Note, computer 1 hears all nine other computers because it sleeps the least amount of time (while computer 10 misses hearing everything because it was sleeping when all the others were talking).

Review the screens from one lifeform to get an idea of the process.

Main Code Points:
Only One Program
SEED is unlike previous stamp supercomputer software that had a different program load into each computer. SEED is only one program - a life form. The same program loads into all computers in the supercomputer,

Life Form
The program is born and then it evolves into a life form! The collective supercomputer has ten life forms that are evolving at the same time.

Unique
After evolving, no two life forms are alike.

Life Span
Each life form has a life span of about one minute of activity.

Birth
It is first born based on its predetermined DNA, in this case, declarations and announcement.

Self Enumerating
Next, it looks at itself and determines its own unique enumerating identity. It does this by looking at pin 1 which contains a unique rc circuit.

Self Deterministic
Then SEED self determines its own computer number. It is now self aware and knows its own unique identity and its position in the world.

Memory & Recall
It then exercises its memory by remembering its own characteristics and demonstrates its recall ability.

Napping & Random Dreaming
All of this leads to taking a series of naps followed by pseudo random dreams. The dream are in Vers Libre, a kind of simple word-verse poetry. The nap time is accumulative, with similar rest effects that humans have. In this case, the power is reduced from 1 ma to 25 ua. The pseudo random dream generator is seeded by the unique identity of the lifeform.

Dream Watching
A Dream View Port puts the dreams up on the debug screen for viewing. It includes words, the random binary bit, and the pseudo random byte decimal number.

Sleep & Fuzzy Clock
The life form will now sleep using its fuzzy alarm clock. The approximate sleep time is unique and unlike the other lifeforms because it is based on its own unique characteristic of its computer identification number. The higher the number, the longer it sleeps. Therefore each life form has its own sleeping habits.

Talking to Neighbors
It wants to learn more about its world, so it sends out a message telling who he is and what his identity is to anyone listening.

Listening to Neighbors
Next, he listens for a reply. If he is life form number 1, he will get 9 additional replies. If he is number 5, he will get 5 replies. Finally, life form 10 will think he is alone. It's because each computer sleeps a different length of time. If a life form is sleeping, it will not hear the others talking.

Getting to know Neighbors
Now he gets to know his neighbors on a personal name basis. He memorizes the personal information of each neighbor that is heard. Next, all the neighbors are remembered.

Remembering Neighbors
He memorizes the personal information of each neighbor that is heard. Next, all the neighbors are remembered and recalled.

Thinking & Working
Some thinking/working takes place to recall the personal identity, determine the number of seconds in sleep and how many life forms were heard, plus how many life forms were not heard, and how many dreams were remembered.

End of Life
Finally, the life ends but is not entirely terminated, as it goes into stasis (I am not comfortable about creating life and then causing it to die).

Personalities
Each life form has its own evolved personality. There are several unique features. The personal identity, computer number, its living location, the random dreams it has, and the length of sleep habit. Its sleeping habit determines how friendly or how much of a hermit it will become. It also determines how much information about neighbors it will remember. Some life forms remember a lot of information while others remember very little. Thinking outcome is unique too.

Restrictions
Due to memory restrictions, PLAN Piezo Language is not included with this version, even though PLAN is a spinoff of the SEED software. The entire communications view port was built upon the Debug screen.

Becoming Sick
Because these are ten individual life forms, sickness can result. Below is a synopsis.
 
' PERSONIFIED MALADIES
' --------------------
' When you download a program into the BASIC Stamp 1, it is stored in the
' EEPROM starting at the highest address (255) and working towards the
' lowest address. Most programs don't use the entire EEPROM, so the lower
' portion is available for other uses. This portion is used for long term
' memories. As a result, like a real human person, this artificial life
' form is capable of succumbing to sickness and malady.

' PSYCHOTIC BREAKDOWN
' -------------------
' AI memory begins at memory location 0 and works upward. If
' the memories become too much, they will fall upon code and a psychotic
' action will take place, resulting in a breakdown as the main program
' will be overwritten.

' FITFUL SLEEP
' ------------
' We don't know how effective sleep really is for the AI supercomputer
' as its sleep is constantly interrupted every 2.3 seconds.
' The Basic Stamp 1s output pins will toggle briefly when using SLEEP,
' NAP or END. Inside the BASIC Stamp's interpreter chip is a watchdog
' timer whose main purpose is to reset the interpreter chip if, for some
' reason, it should stop functioning properly. The SLEEP and NAP commands
' also utilize the watchdog timer to periodically, every 2.3 seconds
' "wake-up" the BASIC Stamp from its low-power mode. Upon reset, the
' I/O pins are set to inputs for approximately 18 ms before returning
' to their previous directions and states. If you have an output pin set
' to a logical 1 state (+5V) and you use the SLEEP command, every 2.3 seconds
' during sleep mode that I/O pin will switch to an input for 18 ms causing
' a momentary signal loss. This "power glitch" is easily viewable with an
' LED and a 470 ohm resister tied to an I/O pin and switched on just before
' entering sleep mode. In many cases this problem can be remedied by tying
' a pull-up or pull-down resistor to the I/O pin in question to provide
' a constant source of power should the I/O pin change directions. Allowing
' a PBASIC program to end naturally, or using the END command, will exhibit
' the same "power glitch" behavior because the interpreter chip enters
' a low-power state.
'
' SUDDEN DEATH, BRAIN AMNESIA, NONRESUSCIATING SITUATION
' ------------------------------------------------------
' Life Terminates after power off, or by running another program. If a
' 2nd program is run (or the same program run a 2nd time), it will put all
' 0s into the EEPROM, thus destroying any memories and the original identity.
' It will be useless trying to resuscitate and bring back the original
' memories.
'
' ALTERNATE IDENTITY SYNDROME
' ---------------------------
' The stamp is reset causing the program to run again, and the birthing
' process takes place and a different identity emerges.
'
' STROKE
' ------
' The stamp is reset or repowered. It tries to communicate with other
' stamps but it is not in sync and the serial command hangs.
' It is unable to reply or do anything at this point.
'
' STUTTERING
' ----------
' Battery low causing short term repeating system resets
 


Code Fit
The code will fit any of the Basic Stamp Supercomputers built with BS1s with some parameter changes to indicate the total number of computers in the supercomputer. This works with the Stamp SEED Supercomputer, the TriCore Supercomputer, and the Stamp Tiny Supercomputer. 

Processor Type
Since the programming is in PBASIC 1 and for a BS1, it will not run on a BS2 without extensive modifications. 

Changing the Code
You are invited to change the code, but remember it is interlaced with timing. When life forms speak, it is based on timing. 

Flow Control
Serial flow control is established by sending, and listening for the "!" command. This allows all life forms to listen to talk at the same time. 

Running the Code & Watching Evolution
The one program is loaded into each computer. Power off the supercomputer. Connect the cable to the computer you want to watch evolve as a life form. Power on the supercomputer. Load in this program bringing up the Debug screen. Before anything appears on the screen, power off the supercomputer. Leave the screen on, and power on the supercomputer. You can now watch the entire evolution take place automatically! 

How the code works

Stamp SEED Supercomputer! All new! This is a ten core, ten 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 

“Stamp AI gives a living soul to small Stamp microprocessors” 

Lock & Load
Load stamp_ai.bs1 into all ten computers. Connect to the computer you want to monitor and load the code. Turn off the entire supercomputer when the blue debug screen appears (before any words appear on the screen). Now turn on the supercomputer. The debug screen will show the thinking of the computer it is connect to. This is the viewer. It shows what the life form is thinking and doing. It even shows dreams. All life forms are unique and develop individual personalities.

Birthing & DNA
There is an unseen birthing process that takes place. This is the DNA part of the program, with directives, declarations, and initializations. Then, introduction takes place. Suddenly, evolution begins. The life form looks at pin 1 from which it determines its own unique identity, using a resistor capacitor circuit. Next, the unique identification (self enumerating) is used to determine its computer number and its physical location to know which block it lives on. The supercomputer is divided into ten blocks, computer 1 lives on the lowest block while computer ten lives on the top block (deterministic). 

Personality and Memory
This personal information is committed to memory. There are two memory locations, 0 and 1, designated for the id and computer number. Throughout the life of the entity, this information is remembered and recalled. Now the life form will take a series of naps. The NAP number is 0, which represents 18 milliseconds. In between each nap, there is a dream. Dreams are pseudo random in nature and occur in Vers Libre, a kind of abbreviated poetic verse. Dreams also include numbers and their pseudo random bit representation. Dreams are unique because they are seeded with the unique personal id.

Deep Sleep
After napping and dreaming, a deep sleep results. The length of sleep is directly related to the life form’s computer number. The lower computer number life forms have shorter sleep, while the higher number life forms spend more of their time sleeping. Sleeping can have cause and effect, because in the next waking phase, a life form will talk - call out and speak its personal information to its neighbors. These are the friendly ones. Whether neighbors hear this information depends on whether they are sleeping or awake. The lazy ones will miss the information. In the extreme case, life form 10 sleeps so much that he misses hearing all of his neighbors, and becomes somewhat of a hermit. His memory has little information. Life form one sleeps the least time, and as a consequence, knows all his neighbors and is very friendly. His memory is rich and filled with all the neighbors information. 

Neighbors Influence
In the next phase of life, the memories about the neighbors are recalled. All of this appears on the viewer. Thinking and information always appear on the viewer. This is a unique privilege to see the life form’s thought process on the screen. No life form is complete without doing some work in life. Each life form will start talking about its computer number, identification, how many seconds it did sleeping, how many neighbors it heard, how many neighbors it missed hearing, and how many dreams it had. These life forms do not live long compare to humans. Their actual lives are approximately one minute long. At the end of a life cycle, hibernation takes place. This is a kind of suspended animation with a heart beat of once every 2.6 seconds. Memories and information are retained but there is no known way to retrieve it in this time era. 

Characteristics
Personality galore! You’ll find these life forms interesting, unique and with varying personalities. The differences from one to the other include different identifications, different computer numbers, different dreaming, varied sleep times, some are friendly and some don’t know any neighbors. Some have filled enriched memories and remember all their neighbors while others can only remember two things and spend all their time sleeping. 

Sustaining Life
The code could have sufficient modification to prevent the life form from dying, and to create an indefinite hibernation in which it can wake up on demand. Instead of and END statement, the code could terminate in a continuous loop. Inside the loop, it looks at a pin status. If the pin goes high, the program can go back to some place in the code for continued function. Sometimes the life form will become sick and require personal sick leave. The sicknesses are varied. For example, the following maladies are discussed in further detail elsewhere – psychotic breakdown, fitful sleep, sudden death, brain amnesia, unable to resuscitate, alternate identity syndrome, stroke, epileptic pins, and stuttering.

TINY AI - The CODE

' ************************************************************************
' INTRODUCING STAMP AI ***************
' ************************************************************************
'
' Stamp AI gives a living soul to small Stamp microprocessors
'
' stamp_ai.bs1 for the Stamp SEED Supercomputer v3.8
' Self Evolving Enumerating Deterministic Code (SEED)
' An Artificial Intelligence System for the Basic Stamp 1
' Developed for Stamp SEED Supercomputer (which has ten Stamp computers)
' by Dr. Humanoido 06.23.09 - developer of AI language Writer -
' AI program that writes 25,000 computer programs for Japanese Robot
' Manufacturing Systems, Industrial Manufacturing, Artificially
' Intelligent CNC Programming

' ************************************************************************
' FEATURES   ***************
' ************************************************************************

' Very Simple AI performed in 256 bytes eeprom
' This one program will load into ten computers and self evolve.
' Software versions exist for Stamp supercomputer with ten and three
' computers. Refer to the Minuscule Stamp Supercomputer for the "three
' computers" version.

' * Fits into 1/4th K (256 Bytes) EEPROM
' * Simple self modifying code capable (modifies eeprom technique)
' * Less than 100 code statements
' * The first complete AI system that fits into the BS1
' * Has "Miniscule AI" at the core, adaptable to other Stamps
' * 17 Phases of Life Cycle
' * Thought monitor (brain thinking is relayed to the pc sceen)
' * Dreams are shown on the screen for real time monitoring
' * Has a Virtual Fuzzy Clock, not exact but more human-like

' ************************************************************************
' LIFE CYCLE PERFORMANCE   ***************
' ************************************************************************

'     (See full description in the Stamp Seed Supercomputer Manual)
' 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) goes into suspended animation

' another view of the life process

' 01) Birth (Declares language of origin, physical attributes)
' 02) Self Deterministic (finds its own identity and uniqueness)
' 03) Early Memory (early formative memory, remembers its identity)
' 04) Develops or recognizes a sense of time
' 05) Talks to others, announces itself and its personal identity
' 06) Speaks another Language (PLAN - Piezo Language)
' 07) Self Evolving (learns information about others)
' 08) Long Term Memory (remembers information about others)
' 09) Sense of Purpose/Meaning of Life (establishes work)
' 10) Naps in 1s intervals (with dreams in between)
' 11) Dreams (dreams about random numbers and poetry)
' 12) Suspended Animation (END statement induces suspended state)
' 13) Sleeps
' 14) Alive (Live Code, Power Down or 2nd program run terminates life)

' ************************************************************************
' PHASES OF SEED'S MINISCULE AI  ***************
' ************************************************************************

' PHASE 0 - PREPARE THE ENUMERATION PIN
' PHASE I - FORMATION AND BIRTHING PROCESS - DECLARATIONS
' PHASE II - PERSONAL INTRODUCTION
' PHASE III - SELF ENUMERATION - CREATING A SELF AWARE IDENTITY
' PHASE IV - THOUGHT MONITOR
' PHASE V - SELF DETERMINATION
' PHASE VI - EARLY MEMORY - REMEMBERING SELF IDENTITY
' PHASE VII - NAP
' PHASE VIII - DREAM
' PHASE IX - DEVELOPING A SENSE OF TIME (FUZZY CLOCK)
' PAHSE X - SLEEP
' PHASE XI - CONVERSATION - INTRODUCTION TO NEIGHBORS
' PHASE XII - CONVERSATION - LISTEN TO NEIGHBORS
' PHASE XIII  - MEMORIZING THE IDENTITY OF NEIGHBORS
' PHASE X1V  - LONG TERM MEMORY - RECALL IDENTITY OF NEIGHBORS
' PHASE XV  - SPEAK LAN PIEZO LANGUAGE (FOR EXPANSION)
' PHASE XVI - FINDING PURPOSE IN LIFE - DO WORK/THINKING
' PHASE XVII - END OF LIFE CYCLE - SUSPENDED ANIMATION/HIBERNATE

' ************************************************************************
' HISTORY ***************
' ************************************************************************

' Makes use of "Miniscule AI" (Interpreter originally developed by
' Humanoido for the Toddler Humanoid and modified for Stamp Supercomputers)
' Uses the idea of self enumerated deterministic programming, a Propeller
' Supercomputer approach originally proposed by Chip Gracey at the
' Propeller Supercomputing thread on 4-18-2006. Reference:
' http://forums.parallax.com/forums/default.aspx?f=25&p=1&m=121344

' The code will load into a Basic Stamp Supercomputer equipped with the
' Self Enumerating Pin Circuit. The details to construct one are included
' below. The BS1 handles up to 100 commands.
' Each computer sets up its own fuzzy clock timer. The clock counts, in
' seconds, equal to the computer number. Computer numbers range from 0 to 10.
' Some scaling may take place.

' Self evolving, self aware, code modifying, one code for all, programs
' are quite complicated. The one 256 byte-fit program is now divided into 13
' phases. The challenge is one program is fed to ten computers. From there,
' the same program is born and develops individual characteristics. It's like
' a Chess game, anticipating moves far in advance, when developing this program.
' Each computer uses a deterministic pin from which its evolution begins.
' It follows up by becoming self aware and choosing a self identity. It learns
' about its neighbors and carries on a conversation. It remembers information
' and exchanges information. It develops a sense of time, and a meaning in life.
' It learns and speaks a new language. It chooses some work to do. When it
' sleeps, it dreams. A monitor can be attached to watch thoughts and dreams on
' each computer.

' ************************************************************************
' PHASE 0 - PREPARING ENUMERATION PINS  ***************
' ************************************************************************

' Hardware consists of 10 Basic Stamp Supercomputers. Each computer
' has one RC circuit on pin 1 (see schematics below), prepared in
' advance.

' * is a 220 ohm resistor built into each Stamp 1 Project Board.

' Software scaling is set to 54. The program must go pin 1 low and
' pause 2000 for repeat reliable readings.
'
'               *
'              220
' pin 1 <-----^^^^^----- no circuit, open       COMPUTER 1 ID = 00
'           resistor
'
'               *        R2       C2
'              220       1K       .1uf
' pin 1 <-----^^^^^-----^^^^^-----||----- Vss   COMPUTER 2 ID = 17
'           resistor  resistor  capacitor       brown-black-red
'
'
'               *        R3       C3
'              220       2K       .1uf
' pin 1 <-----^^^^^-----^^^^^-----||----- Vss   COMPUTER 3 ID = 28
'           resistor  resistor  capacitor       red-black-red
'
'
'               *        R4       C4
'              220       3K       .1uf
' pin 1 <-----^^^^^-----^^^^^-----||----- Vss   COMPUTER 4 ID = 40
'           resistor  resistor  capacitor       orange-black-red
'
'
'               *        R5       C5
'              220       3.9K     .1uf
' pin 1 <-----^^^^^-----^^^^^-----||----- Vss   COMPUTER 5 ID = 49
'           resistor  resistor  capacitor       yellow-black-red
'
'
'               *        R6       C6
'              220       5.1K     .1uf
' pin 1 <-----^^^^^-----^^^^^-----||----- Vss   COMPUTER 6 ID = 70
'           resistor  resistor  capacitor       green-brown-red
'
'
'               *        R7       C7
'              220       6.8K     .1uf
' pin 1 <-----^^^^^-----^^^^^-----||----- Vss   COMPUTER 7 ID = 89
'           resistor  resistor  capacitor       blue-gray-red
'
'
'               *        R8       C8
'              220       8.2K     .1uf
' pin 1 <-----^^^^^-----^^^^^-----||----- Vss   COMPUTER 8 ID = 111
'           resistor  resistor  capacitor       gray-red-red
'
'
'               *        R9       C9
'              220       9.1K     .1uf
' pin 1 <-----^^^^^-----^^^^^-----||----- Vss   COMPUTER 9 ID = 116
'           resistor  resistor  capacitor
'
'
'               *        R10      C10
'              220       10K     .1uf
' pin 1 <-----^^^^^-----^^^^^-----||----- Vss   COMPUTER 10 ID = 128
'           resistor  resistor  capacitor
'
'

' IDs are 00, 17, 28, 40, 49, 70, 89, 111, 116, 128

' TYPICAL PIN 1 RESISTANCE CODE CHART
' Computer 1       220 ohm (built in to Stamp 1 Project Board)
' Computer 2       220 + 1K Ohm   = 01.22K
' Computer 3       220 + 2K Ohm   = 02.22
' Computer 4       220 + 3K Ohm   = 03.22
' Computer 5       220 + 3.9K Ohm = 04.12
' Computer 6       220 + 5.1K Ohm = 05.32
' Computer 7       220 + 6.8K Ohm = 07.02
' Computer 8       220 + 8.2K Ohm = 08.42
' Computer 9       220 + 9.1K Ohm = 09.32
' Computer 10      220 + 10 K Ohm = 10.22

' ************************************************************************
' PHASE I - FORMATION AND BIRTHING PROCESS  ***************
' ************************************************************************

' {$STAMP BS1}            ' Self deterministic program
' {$PBASIC 1.0}           ' humanoido July 2009
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

' The BS1 provides variables from B0-B13 and W0-W6. Variable Examples:
' SYMBOL  XXX         = B0   ' Bit Addressable
' SYMBOL  XXX         = B1   ' Bit addressable
' SYMBOL  XXX         = B2   ' Bit addressable
' SYMBOL  XXX         = B3   ' Bit addressable
' SYMBOL  XXX         = B4   ' Bit addressable
' SYMBOL  XXX         = B5   ' Bit addressable
' SYMBOL  avail       = B6   ' value can be 0 to 255
' SYMBOL  avail       = B7   ' value can be 0 to 255
' SYMBOL  avail       = B8   ' value can be 0 to 255
' SYMBOL  avail       = B9   ' value can be 0 to 255
' SYMBOL  XXX         = W5   ' Consumes B10 & B11
' SYMBOL GOSUB/RETURN = W6   ' Consumes B12 & B13

' When a program is first run, all variables are cleared to 0. The variables
' total to 16 bytes of RAM AND are arranged as follows:
'
' Data            Words   Bytes   Bits
' 0000 0000       PORT    PINS    PIN0 - PIN7  (PINS.0, PORT.0 - PINS.7, PORT.7)
' 0000 0000               DIRS    DIR0 - DIR7  (DIRS.0, PORT.8 - DIRS.7, PORT.15)
'
' 0000 0000       W0      B0      BIT0 - BIT7  (B0.0, W0.0 - B0.7, W0.7)
' 0000 0000               B1      BIT8 - BIT15 (B1.0, W0.8 - B1.7, W0.15)
'
' 0000 0000       W1      B2
' 0000 0000               B3
'
' 0000 0000       W2      B4
' 0000 0000               B5
'
' 0000 0000       W3      B6
' 0000 0000               B7
'
' 0000 0000       W4      B8
' 0000 0000               B9
'
' 0000 0000       W5      B10
' 0000 0000               B11
'
' 0000 0000       W6      B12
' 0000 0000               B13
'
' PORT is the I/O PORT word:
'
'        PINS AND PIN0-PIN7 are the PORT (RB) PINS (buffered to overcome the
'        READ-modify-WRITE problem).  When these variables are READ, RB is READ
'        directly.  When these variables are written to, the corresponding RAM
'        is written TO, which is then transferred TO RB before each instruction.
'
'        DIRS AND DIR0-DIR7 are the PORT (RB) direction bits: 0=INPUT, 1=OUTPUT
'        (buffered to overcome the WRITE-only nature of the TRIS registers).
'        This byte of data is transfered TO !RB before each instruction.
'
' W0-W6, B0-B13, AND BIT0-BIT15 are for general-purpose use.
' W6 (B12,B13) is used as a four-level stack if any GOSUB/RETURNs are executed.

' ************************************************************************
' PHASE II - PERSONAL INTRODUCTION    ***************
' ************************************************************************

DEBUG "Hello human! I am SEED",CR,"Artificial Intelligence Life Form ",CR,CR

' This code is loaded into all ten computers (Stamp SEED Supercomputer).

' Flowchart
' Begin Stamp Baby Supercomputer SBS
'     Each computer has an R/C circuit on pin 1 (see schematic)
'     Load one program (this program) into all 10 computers
'          Each computer: Read Pin 1 rc value using the POT command
'                scale the value into a unique computer ID
'                Remember this ID
'                Delay a time based on the unique ID
'                Send out the ID to the network after delay time
'                Each computer records all the id numbers it hears on the net
'                Remember and recall some information
'                Do some work
'                End

' Some Program Elements
'       RC circuit
'       Data logger
'       EEPROM reader
'       EEPROM writer
'       Time Scaler
'       Fuzzy Clock
'       Serial transmitter
'       Serial receiver
'       Debug Screen

' ************************************************************************
' PHASE III - SELF ENUMERATION - CRATING A SELF AWARE IDENTITY ************
' ************************************************************************

' SELF ENUMERATION
' read pot (POT PotPin, Scale, read_value), display
' LOW 1:PAUSE 2000:POT 1, 54, B1:DEBUG CLS,B1

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)

' ************************************************************************
' PHASE IV - THOUGHT MONITOR   ***************
' ************************************************************************

' The Thought Monitor allows you to peer into the computer's mind
' and view the thought process. Plug in the pc computer and
' view the thought process through the DEBUG screen. The thinking
' of each computer on the supercomputer can be viewed on at a time.
' You can listen in to each computer brain using the debug screen
' and learn what they are thinking, remembering, and what work they
' are doing at the time.

DEBUG "(Self Enumerating)",CR,"id is ",#id,CR,CR ' show on debug screen

' ************************************************************************
' PHASE V - SELF DETERMINATION   ***************
' ************************************************************************

Loop:   'Determine Computer Number - 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 > range, try again
DEBUG "(Self Determinate)",CR,"I am computer number ",#c,CR,CR ' show computer #

' ************************************************************************
' PHASE VI - EARLY MEMORY - REMEMBERING SELF IDENTITY
' ************************************************************************

' MEMORY MAP (eeprom 85% full)
' 00              computer id     (enumerating)
' 01              computer number (deterministic)
' 02-21           other computers, alternating id & computer # (see below)

' DATALOGGING MEMORY MAP FROM 02 TO 21 (LOG SHOWN 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                                      ' recall this computer's id
DEBUG "(my 1st memory)", id,CR,CR              ' show computer number is remembered
READ 1,c                                       ' recall this computer's computer number
DEBUG "(my 2nd memory)",c,CR,CR,"(Nap Dreams)" ' show computer id is remembered

' ************************************************************************
' PHASE VII - NAP
' ************************************************************************

' 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 @@@ (based on the total # of computers)
RANDOM result                 ' randomize a byte
BRANCH n, (Dream1, Dream2)    ' go to bit 0 or 1, BRANCH value, (Case_0, Case_1, Case_2)

' ************************************************************************
' PHASE VIII - DREAM   ***************
' ************************************************************************

' The computers will dream when sleeping. Dreams are totally
' random in nature. After a while, a repeat dream may occur.
' Each computer dreams about random numbers which are shown
' on the Dreamscape monitor. Dreams may also involve machine
' poetry but we are not sure.

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

' ************************************************************************
' PHASE IX - DEVELOPING A SENSE OF TIME (FUZZY CLOCK)
' ************************************************************************

FuzzyClock:                   ' this computer will sleep equal to c*3
x=c*3                         ' sleep formula

' IDs are 00, 17, 28, 40, 49, 70, 89, 111, 116, 128  = B0

' 00*3=0
' 17*3=51
' 28*3=84
' 40*3=120
' 49*3=147
' 70*3=210
' 89*3=44
' 111*3=55
' 116*3=80
' 128*3=64

' ************************************************************************
' PHASE X - SLEEP
' ************************************************************************

' SLEEP allows the BASIC Stamp to turn itself off, then turn back on
' after a programmed duration. The length of SLEEP can range from 2.3
' seconds to slightly over 18 hours. Power consumption is reduced to the
' amount described in the table above, assuming no loads are being driven.
' The resolution of the SLEEP instruction is 2.304 seconds. SLEEP rounds
' the specified number of seconds up to the nearest multiple of 2.304.
' For example, SLEEP 1 causes 2.3 seconds of sleep, while SLEEP 10 causes
' 11.52 seconds (5 x 2.304) of SLEEP.

' Pins retain their previous I/O directions during SLEEP. However, outputs
' are interrupted every 2.3 seconds during SLEEP due TO the way the chip
' keeps time. The alarm clock that wakes the BASIC Stamp up is called the
' watchdog timer. The watchdog is a resistor/capacitor oscillator built
' into the interpreter chip. During SLEEP, the chip periodically wakes up
' AND adjusts a counter TO determine how long it has been asleep. If it
' isn't time to wake up, the chip "hits the snooze bar" and goes back to
' sleep.

' To ensure accuracy of SLEEP intervals, the BASIC Stamp periodically
' compares the watchdog timer to the more-accurate resonator time base.
' It calculates a correction factor that it uses during SLEEP. As a result,
' longer SLEEP intervals are accurate to approximately ±1 percent. If your
' application is driving loads (sourcing or sinking current through
' OUTPUT-HIGH OR OUTPUT-LOW PINS) during SLEEP, current will be
' interrupted FOR about 18 ms when the BASIC Stamp wakes up every 2.3
' seconds. The reason is that the watchdog-timer reset that awakens the
' BASIC Stamp also causes all of the pins to switch to INPUT mode for
' approximately 18 ms. When the interpreter firmware regains control of
' the processor, it restores the I/O directions dictated by your program.

' If you plan to use END, NAP, OR SLEEP in your programs, make sure that
' your loads can tolerate these periodic power outages. The simplest
' solution is often to connect resistors HIGH OR LOW (TO +5V OR ground)
' as appropriate to ensure a continuing supply of current during the
' reset glitch.

DEBUG CR,CR,"(Sleeping)",CR   ' display sleeping mode
SLEEP x                       ' sleep its computer number in seconds
DEBUG "(wake up)",CR          ' Display clock status

' ************************************************************************
' PHASE XI - CONVERSATION - INTRODUCTION TO NEIGHBORS
' ************************************************************************

' Announce id & c to Everyone, SEND ID SO OTHERS MAY DATALOG IT
' After self delay timing, send the ID to net

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

' ************************************************************************
' PHASE XII - CONVERSATION - LISTEN TO NEIGHBORS
' ************************************************************************

' Listen for Neighbors id & c
' For example, with 3 computers:
' 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 and
'                        cannot count itself as listening to itself

' @@@ SET THE SUPERCOMPUTER'S NUMBER OF COMPUTERS IN THESE STATEMENTS!!!

v=2                           ' init the write addr, start at 2
Listen:                       ' listen to other computers speaking their id's
IF c = 10 THEN Think          ' jump if computer 10, cannot listen as sleeping @@@
x = 10 - 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)",CR,#id,#c,CR   ' show received id & c
GOSUB Memorize                ' remember what you hear
NEXT                          ' next interation
GOTO Recall                   ' recall what what heard

' ************************************************************************
' PHASE XIII  - MEMORIZING THE IDENTITY OF NEIGHBORS
' ************************************************************************

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 *** what happens when no more computers?

' ************************************************************************
' PHASE XIV  - LONG TERM MEMORY - RECALL IDENTITY OF NEIGHBORS
' ************************************************************************

' SET THE SUPERCOMPUTER'S NUMBER OF COMPUTERS IN THESE STATEMENTS ********

Recall:                       ' Read/display neighbors id & c
DEBUG "(recall neighbors)",CR ' screen report about remembering
v=1                           ' init mem loc
DEBUG "mem loc, id/com ",CR   ' screen report for storage location, id & computer #
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>20 THEN Think            ' CHANGE THIS TO REFLECT WHICH SUPERCOMPUTER! @@@
                              ' OK TO USE 20 FOR 10 COMPUTERS
GOTO Repeat                   ' again

' ************************************************************************
' PHASE XVI - FINDING PURPOSE IN LIFE - DO WORK/THINKING
' ************************************************************************

' in its simplest form, this life form will use memory recall to indicate
' its personal computer number and its personal identity.

Think:                        ' think routine

DEBUG CR,"(Thinking)",CR       ' announce thinking
READ 1,c                       ' read computer number at loc 1
DEBUG "I am computer ",#c,CR   ' announce my computer number
READ 0,id                      ' read id at loc 0
DEBUG "My id is ",#id,CR       ' announce my id

' the life form will use memory to recall its computer number and
' determine how long it slept.

x=c*3                          ' formula for length of sleep
DEBUG "I slept  ",#x," sec",CR ' how long did I sleep?
h=10-c                         ' formula for the number of heard coms @@@
DEBUG "I heard  ",#h," com",CR ' announce # of computers heard
h=9-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

' ************************************************************************
' PHASE XV  - SPEAK PLAN PIEZO LANGUAGE
' ************************************************************************

' This section is for expansion using the new spinoff Piezo Language PLAN
' Note that some life forms will have the characteristics of Piezo Speech,
' while others will not. No individuals have the same voice sound. Since
' tone is directly related to personal id, computer 1 will have no voice
' while ascending computers (ranked in increasing computer numbers) will
' have increasing pitch voices. Some low tones may or may not be heard.
' It's all in the personality of the individual life form (piezo speakers
' vary in their sound, and human ears vary in their perceptibilities).

'OUTPUT 7                       ' make pin 7 output for speaker
'SOUND  7, (id, 60)             ' id = tone, 60 = duration
'INPUT  7                       ' prevent noise on speaker pin

' ************************************************************************
' PHASE XVII - END OF LIFE CYCLE - SUSPENDED ANIMATION/HIBERNATION
' ************************************************************************

' At the end of the life cycle, it goes into a kind of hibernation or
' suspended animation. It maintains a heartbeat once every 2.6 seconds.
' But, you can terminate it by turning off the power or loading in
' another program (not recommended). It's not cryogentic suspended
' animation but a similar form achieved by the electronics and software
' of this microcontroller.

Halt:
DEBUG CR,"(bye)"
END

' ************************************************************************
' SELF MODIFYING CODE     ***************
' ************************************************************************

' Self modifying code is possible in theory but not easy. In fact, it's
' frowned upon because it becomes very difficult, virtually impossible,
' to debug for one thing. And there are alternatives - that's what
' subroutines are for, and decision code. To create a 100 byte program
' that is self-modifying could require a thousand bytes of decision code
' to decide how to modify the critical 100 byte part. Constants are compiler
' directives - when you use them in your program, the value of the constant
' is plugged into the memory location. In theory, you could change a value
' in EEPROM, however finding which value to change would be difficult.

' A more simple way to have immediate success in self modifying is to
' store initialized data in an otherwise unused part of the EEPROM and
' change it as needed. Program code loads into EEPROM from the top down.
' EEPROM and WRITE commands work from the bottom up. A simple way to self
' modify EEPROM is by writing to locations using the WRITE command, and
' rewriting as necessary. It takes the least amount of code and space to
' do this - one statement per rewrite location. So we now have a simple
' way, in minimal memory and code, to successfully achieve self modifying
' code.

' ************************************************************************
' PERSONAL SICK LEAVE ***************
' ************************************************************************

' When you download a program into the BASIC Stamp 1, it is stored in the
' EEPROM starting at the highest address (255) and working towards the
' lowest address. Most programs don't use the entire EEPROM, so the lower
' portion is available for other uses. This portion is used for long term
' memories. As a result this and other effects, like a real human person,
' this artificial life form is capable of succumbing to sickness.

' PSYCHOTIC BREAKDOWN - AI memory begins at memory location 0 and works
' upward. If the memories become too much, they will fall upon code and a
' psychotic action will take place, resulting in a breakdown as the main
' program will be overwritten.

' FITFUL SLEEP - We don't know how effective sleep really is for the AI
' supercomputer as its sleep is constantly interrupted every 2.6 seconds.
' The Basic Stamp 1s output pins will toggle briefly when using SLEEP,
' NAP or END. Inside the BASIC Stamp's interpreter chip is a watchdog
' timer whose main purpose is to reset the interpreter chip if, for some
' reason, it should stop functioning properly. The SLEEP and NAP commands
' also utilize the watchdog timer to periodically, every 2.3 seconds
' "wake-up" the BASIC Stamp from its low-power mode. Upon reset, the
' I/O pins are set to inputs for approximately 18 ms before returning
' to their previous directions and states. If you have an output pin set
' to a logical 1 state (+5V) and you use the SLEEP command, every 2.3 seconds
' during sleep mode that I/O pin will switch to an input for 18 ms causing
' a momentary signal loss. This "power glitch" is easily viewable with an
' LED and a 470 ohm resister tied to an I/O pin and switched on just before
' entering sleep mode. In many cases this problem can be remedied by tying
' a pull-up or pull-down resistor to the I/O pin in question to provide
' a constant source of power should the I/O pin change directions. Allowing
' a PBASIC program to end naturally, or using the END command, will exhibit
' the same "power glitch" behavior because the interpreter chip enters
' a low-power state.
'
' SUDDEN DEATH, BRAIN AMNESIA, NONRESUSCIATING SITUATION
' Life Terminates after power off, or by running another program. If a
' 2nd program is run (or the same program run a 2nd time), it will put all
' 0s into the EEPROM, thus destroying any memories and the original identity.
' It will be useless trying to resuscitate and bring back the original
' memories.
'
' ALTERNATE IDENTITY SYNDROME - The stamp is reset causing the program to
' run again, and the birthing process takes place and a different identity
' emerges.
'
' STROKE - The stamp is reset or repowered. It tries to communicate with
' other stamps but it is not in sync and the serial command hangs.
' It is unable to reply or do anything at this point.
'
' STUTTERING - Battery low causing short term repeating system resets