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: , , , , , , , , ,

Bookmark and Share

Story pulse

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE 1=1 AND post_id = 1867 GROUP BY hit_date' at line 5]
SELECT SUM(hit_count) AS hits, hit_date FROM WHERE 1=1 AND post_id = 1867 GROUP BY hit_date