Show Posts
Pages: [1] 2 3 ... 7
1  Community / Exhibition / Gallery / Re: LED Steplight on: April 15, 2013, 09:03:57 am
Beautifully done! This is definitely a dream project of mine... Turns a boring walk up he stairs into an adventure! Very apt music choice too btw.
2  Community / Bar Sport / Re: Your latest purchase on: December 12, 2012, 04:09:06 pm
just picked up some blue copper clad. smiley-lol will be a fun little change!
http://www.ebay.com/itm/9-sht-Copper-Clad-Laminate-CEM-047-4-x-6-SS-BLUE-/310420464500?pt=LH_DefaultDomain_0&hash=item4846806374
3  Community / Exhibition / Gallery / Re: Auxiliary Dashboard for my wife's car on: June 20, 2012, 09:54:46 am
beautiful finished product, but I would leave the PCB laying on the dash it looks so nice  smiley-lol
4  Community / Exhibition / Gallery / Re: Random Hymn Number Generator on: June 06, 2012, 05:40:36 pm
and here's the code if anyone wishes to see it.... BEWARE THE ALEXHB CODE  smiley-eek

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;

byte arrowhead[8] = {
  B01000,
  B01100,
  B11110,
  B11111,
  B11110,
  B01100,
  B01000,
};

byte arrowshaft[8] = {
  B00000,
  B00000,
  B11111,
  B11111,
  B11111,
  B00000,
  B00000,
};

byte black[8] = {
  B11111,
  B11111,
  B11111,
  B11111,
  B11111,
  B11111,
  B11111,
  B11111,
};

void setup() {
  pinMode(backlight, OUTPUT);
  pinMode(button, INPUT);
  digitalWrite(backlight, HIGH);

  lcd.createChar(0, arrowhead);
  lcd.createChar(1, arrowshaft);
  lcd.createChar(2, black);

  lcd.begin(16, 2);
  lcd.setCursor(3,0);
  lcd.print("Welcome to");
  lcd.setCursor(0,1);
  lcd.print("Random Hymn V1.0");
  delay(2000);

  digitalWrite(backlight, LOW);
  lcd.clear();
  delay(500);

  digitalWrite(backlight, HIGH);
  lcd.print("Press the button");
  lcd.setCursor(11,1);
  lcd.write((byte)1);
  lcd.write((byte)1);
  lcd.write((byte)1);
  lcd.write((byte)0);
  lcd.setCursor(0,1);
  lcd.print("to begin.");
  randomSeed(analogRead(0));
}

void loop() {
  buttonstate = digitalRead(button);

  if(buttonstate == HIGH){
    lcd.clear();
    randomHymn = random(1,228);
    digitalWrite(backlight, HIGH);
    lcd.setCursor(3,0);
    lcd.print("Your hymn:");
    delay(1000);
    animation();
    lcd.clear();
    lcd.setCursor(3,0);
    lcd.print("Hymn #");

    if(randomHymn>196)
    {
      randomHymn = randomHymn - 196;
      lcd.print(randomHymn);
      lcd.setCursor(0,1);
      lcd.print("in the Appendix");
    }

    else{   
      lcd.print(randomHymn);
    }

    delay(5000);
    lcd.clear();
    digitalWrite(backlight, LOW);
  }
}


void animation() {
  lcd.setCursor(0,0);
  for(int spot=0; spot<16; spot++)
  {
    lcd.write((byte)2);
    delay(25);
  }

  lcd.setCursor(0,1);
  for(int spot=0; spot<16; spot++)
  {
    lcd.write((byte)2);
    delay(25);
  }
}
5  Community / Exhibition / Gallery / Re: Random Hymn Number Generator on: June 06, 2012, 05:38:29 pm
haha, share your number and I might just start spamming you, april!  smiley-mr-green
6  Community / Exhibition / Gallery / Random Hymn Number Generator on: June 06, 2012, 02:04:37 pm
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. smiley-razz 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

[Edit: Oops! Fixed the video embed]
7  Community / Exhibition / Gallery / Re: Buzz pharase generator on: May 26, 2012, 07:17:35 am
wow, looks like it has total fifth generational capability!
8  Community / Exhibition / Gallery / Re: My first proper Leonardo sketch: Chatbot Revenge (Gibberish Language Generator) on: May 24, 2012, 02:43:25 pm
haha, that's really funny! now just make it randomly generate a phrase as your signature to every forum post/email. That'll confuse 'em good. smiley-wink
9  Community / Bar Sport / Re: Funny Gripe Responses on: May 19, 2012, 08:32:52 pm
ooooooh, I'm all out of breath now... those are great!  smiley-lol
10  Community / Exhibition / Gallery / Re: High speed photography with arduino nano on: April 17, 2012, 03:36:14 pm
wow! amazing results! love the little details, such as the power LED going out and the foot pedal.... looking forward to more of your work!
11  Community / Bar Sport / Re: Laptop - realistic and unrealistic suggestions on what to buy. on: April 17, 2012, 01:48:26 pm
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. smiley-wink 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.
12  Community / Bar Sport / Re: So many members... on: March 16, 2012, 10:07:49 pm
Well, I'm definitely a bit of a lurker myself, doing a ton more soaking in and dreaming than replying. Guess I just don't feel I have anything profound to share all the time.  smiley-roll
13  Community / Exhibition / Gallery / Re: Arduino UNO Birthday Cake! on: March 12, 2012, 03:08:38 pm
Lefty: I sure will! I think she's pretty awesome myself.  smiley-wink

Jantje: Don't know if it will survive tonight... it's chocolate with cherries in the middle.  smiley-eek

Sth77: I think I'll be able to connect to it just fine without one.......  smiley-roll
14  Community / Exhibition / Gallery / Re: Arduino UNO Birthday Cake! on: March 12, 2012, 11:46:06 am
...and a breadboard for eati... er..... prototyping!

15  Community / Exhibition / Gallery / Arduino UNO Birthday Cake! on: March 12, 2012, 10:20:19 am
So my mom made me a surprise birthday cake for today, my 18th.
Anyone for a liquorice 7805?   smiley-grin
How about a KitKat Atmega 328?   smiley-lol



~Alex
Pages: [1] 2 3 ... 7