Archive for September 2008

the arduino project box project has begun

Hey, come check out my arduino project box that I’m working on! That’s what the post about the SPDT switches was all about. )


Arduino Project Box

Hey, check out my fine art blog to see my new arduino project box. Here’s a little preview video:


arduino project box construction timelapse from stevecooley on Vimeo.


Technorati Tags: ,

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

heredocs

Man, i thought heredocs were the weirdest PHP construct. I accept them for what they are and do I use them. I’m not afraid of them, but I thought they were yet another weirdass PHP thing. Nope, turns out they’re not. Learn something new every day. Oh, wait, what the hell is this nowdoc thing? I guess that’s two new things for today.

Technorati Tags: ,

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter

toggle switch wiring problems fixed and explained

I’m working on my arduino project box, specifically the wiring. I ran into a really strange problem. Strange to me until I thought about it, and then I realized how not-strange it is.

I had wired up a lot of mini / micro switches to various things on the panel of a big project I’m working on for fun. The problem is that all of my toggle switches were working backwards to my expectations. (If you’re reading this and have already learned this lesson, you know where we’re going. ) )

1Toggleswitch Problemdescription

I wired things up to what I thought would be a logical way. Wire this to that, just like the slide switches I’d also been using without incident.

2Toggleswitch Diagram

Then I had my epiphany about how these toggle switches work. I tried to imagine cutting one in half to visualize how they worked based on the scientific research that had been forced on me. My slide switches work great, but my toggle switches are all working backwards.

3Toggleswitch Behindthescenes

Aha, so based on what would now make a lot of sense, if I wanted to have my switches indicate directionality on my panel, I would need to switch how they’re wired on the back of the panel in order to emulate the behavior I want!

4Toggleswitch Fixed

And now, look at that. Switching the wires will in fact give me the results I had originally intended, even though it seems like a trick I have to pull on my brain in order to get it to do what I want. Not really, but.. without being able to actually see inside the switch, visually it looks like the opposite of what made sense.

Sooo… yeah, now I have a lot of clean up work to do on my project. Recut and strip a bunch of wires, desolder and remove a bunch of work I’ve already done… sigh… Oh well. Such is the price of Doing It Yourself. ) my hard lesson learned will hopefully translate into less of a mystery for you.

Technorati Tags: , , , , , , , , ,

Palin is a liar

Good golly.

Technorati Tags: , , , , ,

Share this:
Share this page via Email Share this page via Stumble Upon Share this page via Digg this Share this page via Facebook Share this page via Twitter