Ruben Laguna's blog

Nov 3, 2008 - 1 minute read - Comments - accelerometer arduino electronics mma7260q sensor tilt

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.

Oct 20, 2008 - 1 minute read - Comments - dropbox failure syncing troubleshooting Uncategorized

dropbox not syncing files

Today I fixed my dropbox installation on mac os x . It was not updating (sending) files from the Mac to the Dropbox servers. In fact it was sending new files to dropbox servers but some old files that were supposed to be on dropbox account were not synchonized and I couldn’t get Dropbox to notice that, until today. I found this post and it seems that if you close dropbox, delete the ~/.

Oct 15, 2008 - 4 minute read - Comments - arduino atmega168 electronics serial sleep usart

Arduino sleep mode - Waking up when receiving data on the USART

I’ve been playing with the Arduino sleep modes and i wanted to be able to wake up from the sleep when receiving data on the serial port. Mainly, because in my project I’m using the XBee in the API mode and the tricks exposed in http://www.arduino.cc/playground/Learning/ArduinoSleepCode and http://www.libelium.com/squidbee/index.php?title=Save_power_in_SquidBee_-_sleep_mode involve putting Arduino in SLEEP_MODE_PWR_DOWN and using an extra pin on the arduino to monitor the RX pin and detecting LOW. I didn’t like that much that solution so I started to look into other ways of doing it without using an extra pin and without risk of losing data in the serial interface.

Sep 6, 2008 - 2 minute read - Comments - arduino electronics firmware shield upgrade xbee zb zigbee

Upgrading Xbee Series 2 (XbeeShield) to Xbee ZB with Arduino

As stated in this digi page is possible to upgrade/convert a Xbee Series 2.5 to a Xbee ZB (with full standard Zigbee capabilities). Xbee Series 2.5 is just another name for the forme Series 2, so the upgrade procedure is exactly the same. The procedure if fairly straighforward Remove ATmega168 from Arduino board Insert XbeeShield into Arduino Change *both *jumpers in XbeeShield to USB

Aug 31, 2008 - 2 minute read - Comments - arduino digital ds1620 electronics measure measurement sensor temp temperature

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.

Aug 7, 2008 - 1 minute read - Comments - java jnlp netbeans webstart

Java WebStart UnavailableServiceException

If you are getting javax.jnlp.UnavailableServiceException from javax.jnlp.ServiceManager.lookup() or if javax.jnlp.ServiceManager.getServicesNames returns null you must be aware that those call only return useful thing when you run your code from the Java Web Start environment. It’s not enough to include the jnlp.jar or javaws.jar in the classpath. For example to make it work from Netbeans you must enable WebStart in the project and Set Configuration to WebStart.