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
 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 »

Monski Pong Server error

 Chapter 5, Errata  Comments Off on Monski Pong Server error
Feb 122008

There is an error in the Monski Pong code in chapter 5. An update has been posted to the original post. The delayCounter variable should have been a long, not a float, and it should have been initialized in the setup(), not before, so that it gets an initial value that’s very low.

Negotiating in Bluetooth

 Chapter 2, Errata  Comments Off on Negotiating in Bluetooth
Jan 072008

In the first edition of the book, there is no code for Project 3, Negotiating in Bluetooth. The project just describes how to use the blueSMiRF radio. With the BlueSMiRF v.2 radios from Spark Fun, the principles are the same, but the commands are different, because the BlueSMiRF v.2 is based on a different Bluetooth Radio (see this post for more). The full list of AT commands for this radio is online here. What follows is an update to Project 3, Negotiating in Bluetooth”

Continue reading »

Wireless Monski Pong

 Chapter 2, Errata  Comments Off on Wireless Monski Pong
Jan 072008

In the first edition of the book, there is no additional code for Wireless Monski Pong. The project just describes how to set up the project using the blueSMiRF radio. With the BlueSMiRF v.2 radios from Spark Fun, the wiring is the same as it was with the original blueSMiRF. Configuration is virtually the same as well. The only changes are as follows:

The device name for the BlueSMiRF v.2 radio is SparkFun-BT.

These radios don’t use a passcode, so when you search for the device, you want to choose not to use a passkey. For OSX users, this means that after you’ve selected the device type as “Any Device”, you’ll get the device discovery screen. Click the Passkey Options… button and select “Do not use a passkey with this device”. Then select the SparkFun-BT device.

For Windows users, the process should be the same. Unfortunately I don’t have a Windows machine to test with at the moment, I’ll update this post when I have one.

Once you’ve paired with the BlueSMiRF v.2, the instructions in the book will work just as they did with the original BlueSMiRF. The BlueSMiRF v.2 will not send out a CONNECT message when your computer connects to it, however.

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.

Doing the Projects Blog

 Updates  Comments Off on Doing the Projects Blog
Dec 102007

A reader’s blog on trying to do the projects. Hope it works out well! Thanks to Brian Jepson for the link.

Table of Contents error

 Errata  Comments Off on Table of Contents error
Oct 092007

On the second last page of the table of contents, Chapter 7 is labeled “The Tools”. It should be labeled “Sessionless Networks”.

© 2012 Making Things Talk Suffusion theme by Sayontan Sinha