Sunday, June 13, 2010

Making monsters

This morning I had the kids draw monsters for me. Then we cut them out of fabric an while they're "napping" I sewed them up.
My 3.5 yo son drew a big slug. He wanted his monster to be like Roz from Monsters Inc.
My 5 yo daughter drew something simple.

Here are some pictures of the outcome.

Saturday, June 12, 2010

The Kegerator

I'm starting something mildly ambitious for my first real Arduino project. I'll be making a temperature controller for a chest freezer. The net effect will be to be able to switch the freezer on and off based on a "Set temp."

The controller will consist of the following:
  • A temp probe
  • An LCD to show the current and set temperatures
  • Up and Down buttons to set the temp
  • A massive 5vdc/400ma driven 240V/30A relay
  • An Arduino boot-loaded AVR ATMega328
Eventually, I intend to add a lid switch to detect an open lid, an alarm to tell you when the temp is X degrees too high and another temp sensor in the tower to switch on a fan to keep the lines cool when the tower gets too warm.

Pictures and code can be found here:
http://kegeratorcontroller.blogspot.com/

Saturday, March 20, 2010

Push on Push off

I'll test the code in the morning.



#define LED 13
#define BUTTON 7

int val = 0;
int state = 0;

void setup {
pinMode(LED, OUTPUT)
pinMode(BUTTON, INPUT)
}

void loop {
val = digitalRead(BUTTON);

if (val == HIGH && state == 0) {
digitalWrite(LED, HIGH);
pause(500);
state = 1;
}
if ((val == HIGH) && (state == 1)){
digitalWrite(LED, LOW);
pause(500);
state = 0;
}
}

Pushing a button

Next up is pushing a button to turn on a light. I'm going to modify it to a push on - push off setup when I'm done.

#define LED 13
#define BUTTON 7

int val = 0;

void setup {
   pinMode(LED, OUTPUT)
   pinMode(BUTTON, INPUT)
}

void loop {
  val = digitalRead(BUTTON);
  if (val == HIGH) {
     digitalWrite(LED, HIGH);
  }else{
     digitalWrite(LED, LOW);
  }
}

Thursday, March 18, 2010

Driving a servo

I jumped right into a servo driving program. All it does is send the servo all the way to one end of it's rotation, wait, send it all the way to the other end of it's rotation, wait and repeat. Not much, but it's a start.

Arduino - first sketch

Of course I started with the blink one LED on pin 13 standard.

//Example 01 : Blinking LED

#define LED 13

void setup()
{
pinMode(LED, OUTPUT);
}

void loop()
{
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
}