Arduino library for MMA7260Q (Tilt Sensor)

In the past days I published a couple of arduino libraries. All coming from by XBee sensor development. I’m still waiting for the MAX756 to arrive from Futurlec, I need the MAX756 to power the xbee sensor with batteries and mount it in its final position. So in the meanwhile I’m cleaning a little bit the code, moving thing to libraries, etc. Now it’s the turn of the MMA7260Q, (see other posts about MMA7260q) . I created an Arduino library to use MMA7260Q as a Tilt Sensor that does autozero calibration. ...

March 21, 2009 · Rubén Laguna

DS1620 temperature sensor library for Arduino

I talked about the DS1620 in a previous post. Now I created a DS1620 library for Arduino that has a more object oriented interface. The library has to be unpacked in the $arduino_home/hardware/libraries directory. After unzipping the library you should end up with a $ARDUINO_HOME/hardware/libraries/ds1620 directory. The library contains an example that can be accessed through the File ⇒ Sketchbook ⇒ Examples ⇒ Library-ds1620 ⇒ ds1620. ...

March 18, 2009 · Rubén Laguna

Arduino tilt sensor using MMA7260Q accelerometer

I’ve playing with the MMA7260Q accelerometer. Following the indications in Measuring Tilt with Low-g accelerometers. Implementing Auto-zero calibration technique for accelerometers. AN3461 Tilt Sensing Using Linear Accelerometers. I connected X,Y and Z of the MMA7260Q breakout to A0, A1 and A2 of the Arduino. Then, GS1 and GS2 connected to ground to set the range to 1.5g. Ah, and of course, I connected ^SLEEP to VCC. I managed to put together this piece of code that ouputs the tilt angles ρ(rho) , φ(phi); and Θ(theta) in degrees. I does automatic autozero calibration so before getting sensible results you should tilt the sensor around +/-90 degrees in every axis. ...

November 3, 2008 · Rubén Laguna

Arduino and DS1620 digital temperature sensor

I received a couple of Arduinos Diecimilla that I bought from Libelium. My first project with Arduino has been interfacing with DS1620 digital temperature sensor. It was really easy it just a matter of connecting pin 3, 4 and 5 on the Arduino to RST, CLK and DQ on the DS1620. The source code in this post will read the temperature from the DS1620 using the 3 wire interface and it will output the result to the serial interface in the Arduino. ...

August 31, 2008 · Rubén Laguna

Wireless Power Meters

I’ve been trying to find power meters for home. My criteria is that it has to support several sensors (because I want to know how much energy my computer and home cinema is spending) and it has to be wireless (because it more convinient this way). After researching a couple of hours, it doesn’t lok good. The number of choices is very small. The Voltcraft option is in doubt because all the information I can find is in german. And the only other working option that I found is Plogg. ...

July 18, 2008 · Rubén Laguna