Sparkfun BlueSMiRF v.2

 Chapter 2, Chapter 6, Chapter 8, Errata  Comments Off on Sparkfun BlueSMiRF v.2
Jan 072008
 

The bad news: Spark Fun changed the radio on the BlueSMiRF radios. The SMiRFs I used in the first edition of the book used the BlueRadios radios. The new SMiRFs use the Roving Networks radios.

The good news: Spark Fun also released the BlueSMiRF v.2, which is slightly cheaper, and uses the Philips BGB203 radio. The command set for the BGB203 is nice, and can do many things the BlueRadios devices could do, and more. I’ll be updating the code examples here on this site, so you know how to use the new radios.

Sharp GP2D12 Reader

 Arduino/Wiring, Chapter 8  Comments Off on Sharp GP2D12 Reader
Oct 072007
 
/*
  Sharp GP2D12 IR ranger reader
  Language: Wiring/Arduino
  
  Reads the value from a Sharp GP2D12 IR ranger and sends 
  it out serially.
*/

Continue reading »

SRF02 Sensor Reader

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

  Reads data from a Devantech SRF02 ultrasonic sensor. 
  Should also work for the SRF08 and SRF10 sensors as well.
  Sensor connections:
     SDA - Analog pin 4
     SCL - Analog pin 5
*/

Continue reading »

XBee Signal Strength Reader

 Chapter 8, Processing  Comments Off on XBee Signal Strength Reader
Oct 072007
 
/*
   XBee Signal Strength Reader
   Language: Processing
 
   Reads a packet from an XBee radio and parses it.  The packet 
   should be 22 bytes long. It should be made up of the following:
     byte 1:     0x7E, the start byte value
     byte 2-3:   packet size, a 2-byte value  (not used here)
     byte 4:     API identifier value, a code that says what this response is (not used here)
     byte 5-6:   Sender's address
     byte 7:     RSSI, Received Signal Strength Indicator (not used here)
     byte 8:     Broadcast options (not used here)
     byte 9:     Number of samples to follow
     byte 10-11: Active channels indicator (not used here)
     byte 12-21: 5 10-bit values, each ADC samples from the sender 
*/

Continue reading »

GPS Parser

 Chapter 8, Processing  Comments Off on GPS Parser
Oct 072007
 
/*
  GPS parser
  Language: Processing
 
  This program takes in NMEA 0183 serial data and parses 
  out the date, time, latitude, and longitude using the GPRMC sentence.
*/

Continue reading »

CMPS03 Digital Compass Reader

 Arduino/Wiring, Chapter 8  Comments Off on CMPS03 Digital Compass Reader
Oct 072007
 
/*
  CMPS03 compass reader
  Language: Wiring/Arduino
 
  Reads data from a Devantech CMPS03 compass sensor.
  Sensor connections:
     SDA - Analog pin 4
     SCL - Analog pin 5
 */

Continue reading »

Accelerometer Reader

 Arduino/Wiring, Chapter 8  Comments Off on Accelerometer Reader
Oct 072007
 
/*
  Accelerometer reader
  Language: Wiring/Arduino
  Reads 2 axes of an accelerometer and sends the values 
  out the serial port
*/

Continue reading »

Accelerometer Tilt Display

 Chapter 8, Processing  Comments Off on Accelerometer Tilt Display
Oct 072007
 
/*
  Accelerometer Tilt
  Language: Processing
 
  Takes the values in serially from an accelerometer 
  attached to a microcontroller and uses them to set the 
  attitude of a disk on the screen.
*/

Continue reading »

© 2012 Making Things Talk Suffusion theme by Sayontan Sinha