# SparkFun Forums

Where electronics enthusiasts find answers.

### Need help determining a circuit

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!

### Need help determining a circuit#199077

By dkruitz
#199077
OK, so I haven't taken an electricity class since 1979 and need some help with a circuit design.

I'm trying to come up with a switchable circuit where depending on the setting of a "mode" switch and a momentary on-on "user" switch either a red light and/or green light is lit. Switching the mode switch, reverses the results from the "user" switch.

The combinations for the "user" switch and "mode" switches would be:
user A, mode A = RED & GREEN
user B, mode A = NONE LIT
user A, mode B = RED ONLY
user B, mode B = GREEN ONLY

I've only been able to sketch a rudimentary drawing, more of a concept, than an actual circuit to show. Though I think I need to use a diode in it which I put in the drawing. Does this diagram make sense, am I in the ballpark for getting the combinations I want?

### Re: Need help determining a circuit#199079

By n1ist
#199079
Capture2.JPG
Based on the table you gave, this will work (actually, mode could be an SPDT as user A lights the red light regardless of the position of the mode switch)
/mike
You do not have the required permissions to view the files attached to this post.

### Re: Need help determining a circuit#199081

By dkruitz
#199081
Thank-you so much for that - I have never worked with DPDT switches, and your design is simpler and more elegant!
###### long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

###### Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

###### Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

###### Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]