Monthly Archives: September 2008

Multiple time stamp checks on a microcontroller

Sometimes you need to manage multiple events with a microcontroller that all require different timing.  For example, you might want to control a servomotor (which requires a 20 millisecond delay), blink an LED once a second, and read some sensors … Continue reading

Posted in arduino/wiring | Tagged , , , , | Leave a comment

Fading an LED from a switch

This example uses a digital input to control a fading LED. The LED turns on when the switch goes from off to on, then fades slowly to black.  It illustrates two principles:  the idea of edge detection or state change … Continue reading

Posted in arduino/wiring | Leave a comment

Using an Accelerometer to Sense Which Way Is Up

ITP just got some nifty flat panel mounts that can rotate 360 degrees. They’re very easy to move, it takes only one hand. When I saw them, I thought, “what good is a rotating mount if the content on the … Continue reading

Posted in arduino/wiring, circuits | Tagged , , , , | 5 Comments

Lantronix Analog Sender

Here’s a short Wiring/Arduino program that waits for a connection to the microcontroller via a Lantronix device, and sends out an analog reading when it’s got a connection. The Lantronix device is in connectMode D4, and the TX is connected … Continue reading

Posted in Lantronix, arduino/wiring | Tagged | Leave a comment