swan tron dot com

Cool Robot

cool robot Okay…maybe not that cool.

Binary Red/Green Snippet

One step closer… Switch open yields a killer red LED… red Switch closed yields an uber-sexy green LED… green I even tossed in some 1K resistors to keep my LEDs healthy, in addition to my 100 ohm / 10000 ohm pull-down setup. +4 resistorI even managed to comment my code, for a bonus win:

/* * binary red/green led setup * by Joseph Swanson * https://swantron.com */ int led1 = 11; // green LED (pin 11) int led2 = 12; // red LED (pin 12) int swit= 5; // switch (pin 5) int varr; // to read pin on/off (pin 5) void setup() { pinMode(led1, OUTPUT); // output green pinMode(led2, OUTPUT); // output red pinMode(swit, INPUT); // switch input } void loop(){ varr = digitalRead(swit); // store swit to varr if (varr == LOW) { // button = pressed digitalWrite(led1, HIGH); // trigger green digitalWrite(led2, LOW); // ground red } if (varr == HIGH) { // button != pressed digitalWrite(led1, LOW); // ground green digitalWrite(led2, HIGH); // trigger red } } +1 SnippetI’m getting closer to having this thing behave the way I intend. Stay tuned for a while longer. I’ll have a robot up and rolling in no time whatsoever.

Pull Down Switch Arduino *Fun

Maybe Vegas got the best of me, brain-wise. I’m struggling mightily with this pull-down switch prototype on my Arduino. I got it, after far-too-much troubleshooting. pull down Maybe I need another frozen slushy drink. Or alternatively, a supplementary OML to get me through this…the end goal is to get some logic incorporated to ‘read’ the state of the switch, so that I don’t need my finger on the sonofabitch to keep the light lit. Or lighted…getting tired here. Stay tuned. I’ll get this knocked out.

Lou Piniella Retires

This should go on 26outs.com, but, hey, why not throw it here. Sweet Lou is hanging up his manager-cleats at the end of the 2010 season. sweet lou Too bad. I was hoping Piniella would surpass Bobby Cox in the ‘most times sent to the showers early’ category. Sad day in Mudville.

Custom Silverado SS

Here is the end result of my customization. ss Not too shabby, if I say so myself. Kate and I are going to take off and get married. Catch you all in 10 days or so.

Arduino Haiku

I put together a little sketch while I was horsing around with the Arduino serial monitor… boo …pretty stupid, huh? Especially, since it repeats this horrible haiku every five seconds. Forever. This is, oddly enough, the first thing I have taken the required 10 seconds to add comments to my code, which ought to be worth at least a +1

/* * Awful Haiku * * This useless thing prints an aweful haiku * repeatedly, for no particular reason * * courtesy of your friends @ swantron.com * https://swantron.com */ void setup() // reset { Serial.begin(9600); // set serial baud } void loop() // loop area { Serial.println(“Haiku “); // start of haiku crap Serial.println("~~~~~”); Serial.println(” “); Serial.println(“Arduinos are neat.”); Serial.println(“You can do a bunch of crap;”); Serial.println(“Like print a haiku.”); Serial.println(” “); Serial.println(” “); delay(5000); // 5 second delay }

  • 1 Haiku - 1 Awful Haiku + 1 Comments in Code - 1 Useless Program - 1 No LEDs ____________________ -1 Total. Sorry for wasting your time.

Arduino + Ethernet = More Nerd Cred

ethernet My ethernet shield is here…I haven’t talked to it yet. This could be awesome.

How To Stretch a Wedding Band

1) Get this stuff cool 2) Put it like this yep 3) Smash the crap out of the metal thing with the framing hammer, until stuck huuray 4) Remove metal thing and ring with vice grips, awl, 2x4, and framing hammer…throw thumbs up. neat

Hot Dog Sandwich

Worst idea I’ve had in quite some time…hot dog sandwich. Here is how you make a retarded hot dog sandwich, in case you feel a need to wreck your guts, feed a prisoner, lose your job, etc.

  1. Halve some h dogs.
  2. Pan fry said h dogs. eww
  3. Assemble sandwich. ew I went for pickles and spicy brown mustard on my stupid sandwich. Feel free to dump whatever you have in the fridge on that sonofabitch…I don’t think it really matters. Wrap-up: h dog sandwiches taste like fail.

The Great Bozeman Storm of 2010

I snapped this pic from work (in Four Corners) about twenty minutes before hell wrought down fury upon Bozeman, Montana in the form of large hail. storm Hail dents the size of Matzah Balls. Details will follow.