and here's the code if anyone wishes to see it.... BEWARE THE ALEXHB CODE
/* "Random Hymn" Picks a random hymn from the "Psalms and Hymns and Spiritual Songs" hymnbook. Displays the number on a LCD wired according to Ladyada's tutorial. Backlight is powered by pin 13. Button is wired to pin 7 with a 10k pulldown resistor. */
#include <LiquidCrystal.h> LiquidCrystal lcd(7, 8, 9, 10, 11, 12); int backlight=13; int button=6; long randomHymn; boolean buttonstate;
Here's a quick project that I put together today... took very little hardware but a lot of programming. It's a Random Hymn Number Generator! I've been getting together with a few friends to call up older housebound folks and play an instrumental hymn or two for them over the phone. The major problem is that we're all very indecisive about what hymn to play next. So I put together this Random Number Generator to give us a boost. It plays a short introductory sequence, then waits for a button press. It displays the random hymn number for ten seconds and then goes back to waiting. The hymnbook that we play out of was compiled by a friend; there's an Appendix in the back for a handful of children's hymns, but the old folks love those too, so I coded those in. The code generates a random number from 1 to 228, (196 hymns in the front, 32 in the back) and then chooses whether to display "in the appendix" by whether the number is over 196 or not. Simple code for most, but challenged me to no end. Anyway, check out the prototype:
I will bring it to our next "jam session" and see if it works well for our application, and then possibly build a finished enclosure for it, using a perfboard arduino instead of the real one. We'll see! ~Alexhb
I'm actually facing the exact same thing... still programming and browsing on a dell inspiron 2200, going on 7 years old! I definitely like the ultrabooks... looking mostly at the toshiba z835 because of the full-pin VGA connector that all the others lack. If I'm going to use a 13" screen I want to be able to hook up to a bigger one easily! One major complaint about the toshiba is the flimsy screen though. I'm always super careful with my possessions, so it shouldn't be a problem for me. Go to the nearest Best Buy and poke at the ultrabooks they've got there! you can get a pretty good feel for them there.