Category Archives: code

Programming a Christmas Tree

As we planned for Christmas this year, my partner suggested that maybe we should replace the lights for the tree. “While we’re at it,” she asked, “is there anything out there that’s more controllable than just the ones that twinkle … Continue reading

Posted in arduino/wiring, AVR, circuits, code | Tagged , , , | Leave a comment

Node.js on the Arduino Yún

Recently, Federico Fissore added node.js to the package repository for the Arduino Yún. Here’s how you get node to communicate with the Arduino processor on the Yún via the Bridge library. To do this, you’ll need an Arduino Yún, a … Continue reading

Posted in arduino/wiring, code, javascript, node.js | Tagged , , , | 1 Comment

BlinkyTape using NeoPixel Library

Blinkinlabs is shipping their product now after their successful KickStarter campaign, and I got mine in the mail a couple days ago. I had a few minutes and thought I’d get a basic example up and running. The Blinkinlabs documentation … Continue reading

Posted in arduino/wiring, code, electronics | Leave a comment

Sending Data Serially To Arduino

One question I get all the time is this: I know how to send data from Arduino to (Processing, OpenFrameworks, etc). But how to I send data from (Processing, OpenFrameworks, etc) to Arduino? Many people don’t seem to know that Arduino has … Continue reading

Posted in arduino/wiring, code | Leave a comment

Using REST as a command protocol for web-to-serial applications

Updated 19 Jan 2014 The address you type into your browser’s address bar is often the location of a particular document on a server. For example, http://tigoe.net/index.html refers to an HTML document living in the main directory of my server, … Continue reading

Posted in arduino/wiring, code, javascript, node.js | 2 Comments

Serial to JSON in Node.js and Arduino

Node.js is great for making web services, and node-serialport makes it very easy to connect to serial devices on your computer. In my last post, I showed how to connect an Arduino microcontroller application to a web page using Node. … Continue reading

Posted in arduino/wiring, code, javascript, node.js | 3 Comments

Serial to Browser using node.js

Updated 28 July 2015 This is a brief introduction to using node.js and websockets to connect a serial device, like an Arduino microcontroller, to a browser. To make this happen you’ll need: An Arduino, and the Arduino IDE an HTML5-capable browser. … Continue reading

Posted in arduino/wiring, code, electronics, javascript, node.js | Leave a comment

Datalogging with Arduino

There are several ways to save data from a sensor attached to an Arduino. If you’re connected to a personal computer, you can simply send the data from the Arduino to the personal computer serially, and save it to a … Continue reading

Posted in arduino/wiring, circuits, code, electronics, Pachube | 2 Comments

SQL RESTian example in PHP

Here’s a PHP script that reads and writes from a SQL database. This example assumes you’ve got a SQL database account on the same machine that the script is running on. It also assumes you’re using a .htaccess file that … Continue reading

Posted in code, PHP | Tagged | Leave a comment

Mr. Data Converter

Mr. Data Converter is your friend. It’s a conversion tool to take tab or comma delimited data and convert it to a variety of formats: XML, JSON, ActionScript, PHP, you name it. Mighty handy if you have to take stuff … Continue reading

Posted in code, Flash/ActionScript, java, PHP, Processing | Leave a comment