Show Posts
Pages: [1]
1  Using Arduino / Networking, Protocols, and Devices / DS3231.h --- Library for DS3231 (or DS3232) real-time clock on: April 05, 2011, 10:31:52 am
I've written a header file/library/examples for the DS3231 clock: it's available here:
    http://hacks.ayars.org/2011/04/ds3231-real-time-clock.html

I wrote it for the DS3231, but the timekeeping registers are identical on the DS3232 so it'll work for that also.

This forum has been incredibly helpful to me over the years, and I hope this is a start on repayment. Drop me an email if you use it, and let me know if you find bugs so I can fix them right away.

-Eric Ayars
<firstname at lastname.org>
2  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Suggested new Arduino: Arduino Piccolo? on: November 23, 2010, 05:54:57 pm
You're right -- my bad. My Mac helpfully opened the outer folder for me, so I ended up installing the inner "attiny45_85" folder in my hardware folder, rather than the outer one.

Still standing by the mailbox, waiting for a package of ATtiny85s...

-ea
3  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Suggested new Arduino: Arduino Piccolo? on: November 21, 2010, 07:48:31 pm
Oh, I do fairly well, considering my physics "handicap".  smiley-wink
http://hacks.ayars.org/2010/01/alarm-clock-overkill.html
http://physics.csuchico.edu/~eayars/publications/ajpcoverJuly.png

I had a spot of trouble with the directions on the website that Rusty suggested, though. The .zip file has a folder (attiny45_85) and a text file (boards.txt), and in order to make the arduino program list the ATtiny45 and ATtiny85 as board options that file has to go inside the folder. At least that was what I found to be the case on a Mac. It works now, I'm just saying if anyone else has this problem, give that a try.

And thanks again. If anyone needs me I'll be standing by the mailbox waiting for a package from Digikey.
4  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Suggested new Arduino: Arduino Piccolo? on: November 19, 2010, 10:47:34 pm
Why? Unfamiliarity. Thanks for the suggestion, I'll look into it right away!

I'm a physicist, not an engineer, and all this stuff is new to me and self-taught besides. It's fun learning new things: thanks for the helpful link.

-ea
5  Forum 2005-2010 (read only) / Bugs & Suggestions / Suggested new Arduino: Arduino Piccolo? on: November 19, 2010, 01:15:50 am
I really like the increasing capabilities of the Arduino. They keep getting better, with more memory and more speed and what's not to like about that?

But for a lot of what I do with Arduini, I don't need so much. For many projects, I need maybe 2-4 i/o lines, 1-2 PWM at most, and only rarely an ADC. It offends my sense of efficiency to take a microcontroller with 32k of memory and 20 i/o lines and, for example, build it into a carved pumpkin to turn on glowing red eyes (1 output) for two minutes any time the PIR sensor (1 input) trips.

I sometimes find myself using a PICAXE-08M for this sort of thing. It's smaller, lighter, cheaper, and has a built-in resonator that's accurate enough for timing pumpkin functions. But I don't like using the PICAXE. I dislike programming in BASIC in the first place, the PICAXE implementation of BASIC is annoyingly inconsistent, the supporting software (on a Mac, at least) is buggy as a cheap New York hotel, it's not open-source, and the user community is nowhere near as vibrant and helpful as this one.

Would it be possible to make a minimalist "Piccolo" platform from an ATtiny or some similar chip? Something with a removable (not surface-mounted) 8-pin DIP? Yes, something in direct competition with the PICAXE 8-pin proto-kit; but all open-source and Arduino-y.

I suppose the immediate solution for me would be to get a programmer and start learning how to roll my own ATtiny13 applications; but the ease of programming on the Arduino platform is addictive.

Anyway, it's a suggestion. I'll go back to lurking now.  smiley
6  Forum 2005-2010 (read only) / Interfacing / Re: Troubleshooting LCD4Bit on: March 31, 2009, 01:07:46 pm
Yeah, I'd checked all those, they were fine. I figured out the problem, though. The LCD4Bit copy I was using was initially set up for a different set of pins. I had changed LCD4Bit.cpp to reference the pins I was using, but hadn't deleted LCD4Bit.o so the arduino loader was still using the old setup.

Take-home message: any time you change LCD4Bit.cpp, delete LCD4Bit.o and restart Arduino.
7  Forum 2005-2010 (read only) / Interfacing / Re: Troubleshooting LCD4Bit on: March 31, 2009, 12:54:57 am
I have the same problem with a brand-new SparkFun LCD-00790. This is a 16x2 LCD with HD44780 chipset, and it's not the contrast pot, as I have that working fine. The display just shows one line of 16 all-on squares. Nothing else, no matter what example code I use...

Oh, and the results (or non-results) are the same whether I use the LiquidCrystal or LCD4Bit library.

Very frustrating! Any suggestions? I currently have a Boarduino set up exactly as described in the LadyAda tutorial. The results were the same on a Duemilanove.
Pages: [1]