What is AI?
Log Book Entries
Basic Stamp 2P40 Source Code
Basic Stamp 2 Source Code
Visual Basic Source Code
Schematic
Pictures
References


Basic Stamp 2 Source Code

   This was more of a simple code because it served one purpose, take the wireless serial signals from the robot to laptop, or from the laptop to the robot. The basic stamp 2 made it possible to prove that artificial intelligence is not only used to control mechanical devices, but internal electronics as well. In this case, programmable intelligence was used to handle wireless signals. 

 

'{$STAMP BS2}
'{$PBASIC 2.5}
'Stamp Wireless to PC bridge

'-- Serial data variable --
bytSerData VAR BYTE
'--------------

'-- Main Sub --
Main:
     'Read data from other stamp
    
SERIN 1,16468,5000,NoData,[bytSerData]

     'Relay to PC and loop
    
HIGH 15 'Activate LED pin
    
SEROUT 16,16780,[bytSerData]
    
LOW 15 'Deactivate LED pin

'On timed out serial connection, go here...
NoData:
    
HIGH 15 'Activate LED pin
    
LOW 15 'Deactivate LED pin
GOTO Main 
'--------------