Projects

Arduino Play a Melody

Play a Melody using the tone() function with Arduino

This example shows how to use the tone() command to generate notes. It plays a little melody you may have heard before. Circuit image developed using Fritzing. For more circuit examples, see the Fritzing project page Connect one terminal of your speaker to digital pin 8 through a 100 ohm resistor. Connect the other terminal to ground.

Play a Melody using the tone() function with Arduino Continue Reading

Arduino watering controller

A watering controller that can be home networked using an Arduino

A couple of weeks ago, I published a great little controller module that provided 6 relays able to be controlled from a computer via a network.  After I published it, I got to thinking that the same basic design, with a couple of changes could be pressed into service as a garden watering system controller. 

A watering controller that can be home networked using an Arduino Continue Reading

Arduino Memsic 2125 Accelerometer

Memsic 2125 Accelerometer using Arduino

The Memsic 2125 (datasheet) is a two-axis accelerometer capable of measuring acceleration up to plus or minus 2g. It has a simple digital interface: two pins (one for each axis) emit pulses whose duration corresponds to the acceleration of that axis. By measuring the length of that pulse, in microseconds, using the Arduino’s pulseIn() function,

Memsic 2125 Accelerometer using Arduino Continue Reading

Scroll to Top