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 »

Analog Output

 Arduino/Wiring, etech2008  Comments Off on Analog Output
Mar 012008
 
/*
 Analog output
 Language: Wiring/Arduino
 
 Reads an analog input and uses its value to dim an LED output
 Connections:
 analog sensor on analog input pins 0
 LED on digital pin 3
 */

Continue reading »

Simple Sensor Reader

 Arduino/Wiring, etech2008  Comments Off on Simple Sensor Reader
Mar 012008
 

This program reads two analog sensors and one digital sensor and prints them out. Use it for testing your sensors.

Continue reading »

Reading a Switch

 etech2008  Comments Off on Reading a Switch
Mar 012008
 

This program reads a switch (i.e. a digital input) and changes an LED only when the switch changes from off to on. You can modify it to count switch presses as well. There’s a digital input connected to Digital I/O pin 2, and an LED attached to digital I/O pin 3. I refer to this method of detecting when the switch has changed as edge detection on a switch

Continue reading »

pong server

 Chapter 5, etech2008, Processing  Comments Off on pong server
Oct 072007
 
/*
  pong server
  Language:  Processing
  version 0002

  This program listens for TCP socket connections and uses the
  data from the incoming connections in a networked multiplayer
  version of pong.
  Version 2 fixes a bug with the delayCounter.  NEw lines are shown in bold below.
  Modified 12 Dec. 2008

*/

Continue reading »

pong client (seesaw)

 Arduino/Wiring, Chapter 5, etech2008  Comments Off on pong client (seesaw)
Oct 072007
 

This is the version of the pong client from Chapter 5 that’s used with the seesaw client.

Continue reading »

© 2012 Making Things Talk Suffusion theme by Sayontan Sinha