This Processing code connects one BlueSMiRF radio from Sparkfun to another blueSMiRF.
Continue reading “Bluetooth-to-Bluetooth connection using blueSMiRF”
code and fabrication resources for physical computing and networking
This Processing code connects one BlueSMiRF radio from Sparkfun to another blueSMiRF.
Continue reading “Bluetooth-to-Bluetooth connection using blueSMiRF”
This Processing sketch controls the playback of a Quicktime movie using serial data. To use it, send a serial value from 0 – 255. The movie position will be set based on that value. 0 = beginning of movie, 255 = end of movie. It doesn’t matter what’s sending the serial data, as long as the value is between 0 and 255.
This is a very simple program to test the serial-to-ethernet connections of a Lantronix device connected to an Arduino or Wiring board.
Technorati Tags: networked objects, networks
Hans Steiner, God of PD/USB and a darn nice guy, has released PDuino. In his words:
“Here’s the first test release of Pduino, a Pd firmware for Arduinoand a matching Pd object, . This allows you get data from the digital and analog inputs, and send data to the PWM and digital outputs. It also allows you to change the digital pins from input, output, or PWM. And you can choose how many analog inputs and turn on/off digital input.
“Keep in mind its a test release, the only thing I am not sure about right now is digitalInput, everything else seems to work fine. In the future, I’d like to figure out how to add the pulseIn feature.
“This firmware would work well with Processing, Max/MSP, Flash, whatever. Then the Arduino becomes a dead simple, cheap sensor box for the newbies, but still open for playing later.”
This program reads a serial string from a GPS reader. It parses the sentence and returns latitude and longitude.
It’s also a simple example of how to read an ASCII-formatted, comma-delimited serial protocol.
This code reads three sensors and sends them out serially when prompted by another computer. It works with this Processing example. Arduino/Wiring, PicBasic Pro, and BX-24 versions are shown.
Continue reading “Serial Call-and-Response (Microcontroller side)”
This is a test server. I use it any time I have a client that needs to connect to a web server or chat server, and I want to see what the client is sending, byte for byte. You can modify it to send and receive whatever you need.
Technorati Tags: networked objects, networks
This program shows how to make a HTTP request in Processing.
Technorati Tags: networked objects, networks
This program connects a Wiring or Arduino module to the internet through a Lantronix serial-to-ethernet converter (Xport, WiPort, or Micro). The microcontroller makes a TCP connection to a web server first. Once it’s got a connection, it sends an HTTP request for a web page. When the web page comes back, it parses the page for < and > symbols, and takes the string between them. Then it converts the string to an integer. It assumes the string is made only of numeric ASCII characters (0 – 9).
This program couldn’t parse an entire web page very easily, so it’s best used in conjunction with a web scraper PHP script like this one, which reads the AIRNow site and extracts the Air Quality Index into a single string like this:
< AQI: 54>
This program was written to make an air quality index meter out of an analog voltmeter.
The electrical connections to the microcontroller are as follows:
The web scraper is written in PHP. Its code follows below the Arduino code.
Technorati Tags: networked objects, networks
Below are two designs for Arduino prototyping shields. They’re designed as generic boards on which you can develop any small circuit to connect to the Arduino board. One has a breadboard mounted on it, and the other has a simple PCB grid of holes.
Both of these are based on David Cuartielles’ shield design.