If you’re trying to use any of the Ethernet examples or the Wifi example straight from the 2nd edition of Making Things Talk, you’re probably getting some errors related to the definition of Client and Server. Here’s how to fix them.

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 »

MIDI

 Appendix A, Arduino/Wiring  Comments Off on MIDI
Oct 082007
 
/*
     MIDI
    Language: Wiring/Arduino
     
    plays MIDI notes from 30 to 90 (F#-0 to F#-5)
*/

Continue reading »

Blink

 Arduino/Wiring, Chapter 1  Comments Off on Blink
Oct 072007
 
/*
  Blink (aka Hello World! In Arduino/Wiring):
  Language: Arduino/Wiring

  Blinks an LED attached to pin 13 every half second.
  Connections:   
    Pin 13:  + leg of an LED (- leg goes to ground)
*/

Continue reading »

Analog Sensor Reader

 Arduino/Wiring, Chapter 3  Comments Off on Analog Sensor Reader
Oct 072007
 
/*
  Analog sensor reader
  Language: Arduino/Wiring

  Reads an analog input on Analog in 0, prints the result 
  as an ASCII-formatted  decimal value.
  Connections: 
    FSR analog sensor on Analog in 0
*/

Continue reading »

Air Quality Meter

 Arduino/Wiring, Chapter 4  Comments Off on Air Quality Meter
Oct 072007
 
/*
  Air Quality meter
  Language: Wiring/Arduino (pin numbers defined for Arduino)
  
  Microcontroller is connected to a Lantronix serial-to-ethernet device. This program connects to a HTTP server through the Lantronix module, makes a HTTP GET request for a PHP script, and parses the returned string.
  Lantronix device communicates at 9600-8-n-1 non-inverted (true) serial.
  Lantronix serial settings:
  Baudrate 9600, I/F Mode 4C, Flow 00
  Port 10001
  Remote IP Addr: --- none ---, Port 00000  
  Connect Mode : D4
  Disconn Mode : 00
  Flush   Mode : 00
 */

Continue reading »

SoftwareSerial example #1

 Arduino/Wiring, Chapter 4  Comments Off on SoftwareSerial example #1
Oct 072007
 
/*
  SoftwareSerial example
  Language: Wiring/Arduino
  This program uses the SoftwareSerial library to send serial messages 
  on pins 8 and 9.  

  // include the SoftwareSerial library so you can use its functions:
*/

Continue reading »

SoftwareSerial example #2

 Arduino/Wiring, Chapter 4  Comments Off on SoftwareSerial example #2
Oct 072007
 
/*
  SoftwareSerial example
  Language: Wiring/Arduino

  This program is a variation on the networked air quality meter. 
  It uses the SoftwareSerial library to send serial messages 
  on pins 8 and 9.  
*/

Continue reading »

IR Transmitter

 Arduino/Wiring, Chapter 6  Comments Off on IR Transmitter
Oct 072007
 
/*
  IR transmit example
  Language: Wiring/Arduino

  This program reads an analog input on pin 0 and sends 
  the result out as an ASCII-encoded string. The TX line 
  of the microcontroller is connected to a Rentron 
  TX-IRHS IR transmitter which can transmit at 19200 bps.
*/

Continue reading »

© 2012 Making Things Talk Suffusion theme by Sayontan Sinha