Show Posts
Pages: [1]
1  Using Arduino / Project Guidance / Re: Power saving in code for extended battery life. on: May 17, 2012, 12:46:51 am
Hey Great project! I have a write up about a similar project posted on my blog that friend just finished. He had the same problems but ended up tackling them in different ways. You might want to take a look since the project is so similar.

We wrote an arduino sleep library that was used in the project. It has both wake from interrupt as well as watchdog sleep. Its here:

I hope this helps someone out!
2  Using Arduino / Project Guidance / Re: Nikon D50 intervalometer on: May 17, 2012, 12:13:53 am
Have you tried Ken Shirriff's fantastic IR library?
 I used it before when writing the code for a sensor and remote camera trigger

If you use his library you can just call the sendRaw() function and input an array of timings. Here is the Nikon code I used in the TriggerTrap

unsigned int MLL3Buffer[] = {2000,27830,390,1580,410,3580,400}; //shutter from:
for (int i = 0; i < 2; ++i) { //send twice
irsend.sendRaw(MLL3Buffer,7,38); //ML-L3 (Nikon), suppose to be 38.4khz

If you look in this file, you can find other IR codes used for Pentax or other cameras, around line 700:
3  Using Arduino / Project Guidance / Re: Advice? - Making Arduino Uno "sleep" & "wake up" on: May 16, 2012, 04:45:28 am
I recently put together a simple sleep library that does exactly what this poster is looking for. You can find it here:

In this library you can set how long the arduino sleeps for by calling the function sleepDelay(milliseconds of sleep). It works pretty much the same as the delay() function but it sleeps the arduino for that time. It works using the watchdog timer so you can even use it in full power down mode. It includes a few examples to get your started. I hope this helps someone out there! Goodluck!
4  Development / Other Software Development / An Arduino Library for compass tilt compensation and hard iron offset on: February 27, 2012, 12:57:40 am

We have been working on a new arduino library for compass tilt compensation and hard iron offset. Its finally complete today, so I thought I would share it with the arduino community.

The three main parts are:

1) Compass Hard Iron Offset Auto-Solver
2) Accelerometer Yaw Pitch & Roll Calculator
3) 360° Compass Tilt Compensation

The auto solver is a Gaussian elimination solver requiring at least 6 datasets, the code included will filter and capture 8 datasets around the sphere and compute the best solution possible. Tilt compensation is not angle limited, it will compensate in any orientation. All the calculations that need to be done in the loop() are using fixed point integer math. The library has 3 examples that use the Honeywell HMC5883L 3 axis compass and the Freescale MMA8453Q 3 axis accelerometer. However any 3 axis compass & accelerometer pair will do.

The library and a more descriptive blog entry can be found here:

Enjoy!  smiley-lol Please give us feedback, so we can improve it.
5  Development / Other Software Development / Arduino Library for the Atmel AT42QT1070 Touch Capacitance chip on: August 01, 2011, 02:19:12 am

So recently I have been developing an arduino based camera trigger device called which uses 4 touch capacitance buttons for its main interface. The device specifically uses the Atmel AT42QT1070 in "Comms" mode (using i2c). So rather then just write some one off code for the project, I decided to transform the touch capacitance code into an Arduino Library.

You can download it here:

I made a small write up on my blog of how to use it here:

Just to get you started though, here is the code in loop() from one of the examples

if(touch.hit() == true) //checks if the hit flag has been triggered by the interrupt
hitKeyNum = touch.readActiveKey();

   if(hitKeyNum == 9) //key #9 is end of key press signal (key up)
       Serial.print("button #");
       Serial.println(" Down");

Other then that loop() code you just need to instantiate the object, and declare your variables. Dead simple. There is also an example included in the library that shows how to detect press and hold.

If you have any feed back on the library (things to change, etc) please let me know! I hope some people find this useful!
6  Forum 2005-2010 (read only) / Troubleshooting / new Arduino Skin on: October 08, 2005, 05:21:54 am
not sure if this is the right category...for this...but.

Yesterday, Tom Igoe was demonstrating Arduino for ITP, and he mixed up Wiring, and Arduino accidentally pasting some Wiring code into Arduino...In response to that, I decided to throw together a quick "skin" for Arduino. Basically its the same, but I made it have a nice blueish tint to match with the icon.

here are the links:
( least in the preview of this message...if you click one of the following links it say file not found 404...but if you reload that page...suddenly it shows up...??? )

screen shot:

the preferences file:

the icons file:

if you just place the "icon" images in the Arduino/lib folder
replacing the ones there, and the prefences.txt in the
Users/yourusername/library/Arduino folder, you should be all set.

I have never tested this on the pc...but I bet its not
that different...

Have fun!
Maybe someone can make this official? I don't know the process for submitting something to the development team...

Pages: [1]