Xport Pong Emulator

 Chapter 5, etech2008, Processing, Updates  Comments Off on Xport Pong Emulator
Mar 032008
 

This Processing sketch sends the same bytes as the Xport that’s configured for the networked Pong game in Chapter 5. It’s a handy way to connect a microcontroller to the server when you don’t have an Xport, or aren’t sure your Xport is working.

Continue reading »

Serial Server

 Appendix A, Processing  Comments Off on Serial Server
Oct 082007
 
/*
 Serial Server
 language: processing
 
 This program makes a connection between a serial port
 and a network socket.
 
*/

Continue reading »

Triangle Drawing Program

 Chapter 1, Processing  Comments Off on Triangle Drawing Program
Oct 072007
 
/*
  Triangle drawing program
  Language: Processing
  Draws a triangle whenever the mouse button is not pressed. 
  Erases when the mouse button is pressed.
*/

Continue reading »

Cat Graphing Program

 Chapter 3, Processing  Comments Off on Cat Graphing Program
Oct 072007
 
/*
  Cat graphing program
  Language: Processing

  Reads in a string of characters until it gets a linefeed (ASCII 10). 
  Then converts the string into a number. Then graphs it. 
  If the number has changed significantly, and there hasn't been 
  a big change in more than a minute, the program prints a 
  text string in place of an email message.
  
*/

Continue reading »

HTTP Sender

 Chapter 3, Processing  Comments Off on HTTP Sender
Oct 072007
 
/*
  HTTP sender
  Language: Processing
  Uses the Processing net library to make an HTTP request.
*/

Continue reading »

Cat Graphing and Email Program

 Chapter 3, Processing  Comments Off on Cat Graphing and Email Program
Oct 072007
 
/*
  Cat graphing and email program
  Language: Processing

  Reads in a string of characters until it gets a linefeed (ASCII 10). 
  Then converts the string into a number. Then graphs it. If the 
  number has changed significantly, and there hasn't been a big 
  change in more than a minute, the program calls a PHP script 
  to send an email message.
*/

Continue reading »

Lantronix serial-to-ethernet HTTP request tester

 Chapter 4, Processing  Comments Off on Lantronix serial-to-ethernet HTTP request tester
Oct 072007
 
/*
  Lantronix serial-to-ethernet HTTP request tester
  Language: Processing

  This program sends serial messages to a Lantronix 
  serial-to-ethernet device to get it to connect to a 
  remote webserver and make an HTTP request. To use this program, 
  connect your PC to the Lantronix module’s serial port as you 
  did when you were configuring the Lantronix module earlier.
  
*/

Continue reading »

Test Server

 Chapter 4, Processing  Comments Off on Test Server
Oct 072007
 
/*
  Test Server Program
  Language: Processing

  Creates a server that listens for clients and prints 
  what they say.  It also sends the last client anything that's  
  typed on the keyboard.
*/

Continue reading »

RF Receiver

 Chapter 6, Processing  Comments Off on RF Receiver
Oct 072007
 
/*
  RF Receive
  Language: Processing 
 
  This program listens for data coming in through a serial port. 
  It reads a string and throws out any strings that contain 
  values other than ASCII numerals, linefeed, or carriage return, 
  or that are longer than four digits. 
  This program is designed to work with a Laipac RF serial receiver 
  connected to the serial port, operating at 2400 bps.
*/

Continue reading »

XBee terminal

 Chapter 6, Processing  Comments Off on XBee terminal
Oct 072007
 
/*
  XBee terminal
  Language: processing

  This program is a basic serial terminal program.  
  It replaces newline characters from the keyboard 
  with return characters.  It's designed for use with 
  Linux, Unix, and OS X and XBee radios, because the 
  XBees don't send newline characters back.
*/

Continue reading »

© 2012 Making Things Talk Suffusion theme by Sayontan Sinha