Safe Speed Forums

The campaign for genuine road safety
It is currently Thu Jun 11, 2026 02:57

All times are UTC [ DST ]




Post new topic Reply to topic  [ 85 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
PostPosted: Sat Jul 31, 2010 17:19 
Offline
Life Member
Life Member

Joined: Sat Mar 27, 2004 13:50
Posts: 2643
You have five two-way switches (SPDT), two lamps and a battery.
Wire them up so that:
Lamp 1 is on if, and only if, all five switches are up, and,
Lamp 2 is on if, and only if, all five switches are down
You're not allowed to short-circuit the lamps or the battery.

_________________
Only when ideology, prejudice and dogma are set aside does the truth emerge - Kepler


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 18:16 
Offline
Gold Member
Gold Member
User avatar

Joined: Mon Mar 26, 2007 16:34
Posts: 4923
Location: Somewhere between a rock and a hard place
What nomenclature do we use for the relays and terminals?

Ah, never mind, I'm scribbling on paper. It's just a question of who gets there first.

My money is on Steve or Botach but it depends who is watching, so it's unfair really :D

Off the top of my head, the number of relays is irrelevant here, you tinker... ;)

PS. I think I need to take a picture of my drawing and post it here via Photobucket :P

Are the relays from RS, Farnell, DigiKey or Maplin? :lol:

_________________
The views expressed in this post are personal opinions and do not necessarily represent the views of Safe Speed.
You will be branded a threat to society by going over a speed limit where it is safe to do so, and suffer the consequences of your actions in a way criminals do not, more so than someone who is a real threat to our society.


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 18:47 
Offline
Life Member
Life Member

Joined: Sat Mar 27, 2004 13:50
Posts: 2643
Big Tone wrote:
Are the relays from RS, Farnell, DigiKey or Maplin? :lol:


Who said anything about relays?

_________________
Only when ideology, prejudice and dogma are set aside does the truth emerge - Kepler


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 18:51 
Offline
Life Member
Life Member

Joined: Sat Mar 27, 2004 13:50
Posts: 2643
No need to post your solutions, you'll know when you solve it.

For the record, it took me all of about 10 minutes to solve - there were others in my group who, to my knowledge, still haven't solved it several decades later

_________________
Only when ideology, prejudice and dogma are set aside does the truth emerge - Kepler


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 18:54 
Offline
Gold Member
Gold Member
User avatar

Joined: Mon Mar 26, 2007 16:34
Posts: 4923
Location: Somewhere between a rock and a hard place
Pete317 wrote:
Big Tone wrote:
Are the relays from RS, Farnell, DigiKey or Maplin? :lol:


Who said anything about relays?
:oops: Sorry, I meant switches but I was thinking of relays because I just used one to hook a second 120db horn on my motorbike :twisted:

Apologies. My paper wot I wrote on shows switches, not relays - honestly.


Silly Tone :oops:

_________________
The views expressed in this post are personal opinions and do not necessarily represent the views of Safe Speed.
You will be branded a threat to society by going over a speed limit where it is safe to do so, and suffer the consequences of your actions in a way criminals do not, more so than someone who is a real threat to our society.


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 18:58 
Offline
Life Member
Life Member

Joined: Sat Mar 27, 2004 13:50
Posts: 2643
Big Tone wrote:
Silly Tone :oops:


Is that a 120dB silly tone? :lol:

_________________
Only when ideology, prejudice and dogma are set aside does the truth emerge - Kepler


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 19:03 
Offline
Life Member
Life Member

Joined: Sat Mar 27, 2004 13:50
Posts: 2643
..or a silly tone implant? :lol:

..silly tone boob?

..now this is getting silly, Tone :lol:

_________________
Only when ideology, prejudice and dogma are set aside does the truth emerge - Kepler


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 19:05 
Offline
Gold Member
Gold Member
User avatar

Joined: Mon Mar 26, 2007 16:34
Posts: 4923
Location: Somewhere between a rock and a hard place
Pete317 wrote:
Big Tone wrote:
Silly Tone :oops:


Is that a 120dB silly tone? :lol:

Cut me some slack Pete. :D

Yes, 120 megabells or something :P

I'm going to stick my 50 ohm head in a book now. That's Green, Black, Black, and I'll go for gold on the last one, (from the old days), because I'm worth it :D

_________________
The views expressed in this post are personal opinions and do not necessarily represent the views of Safe Speed.
You will be branded a threat to society by going over a speed limit where it is safe to do so, and suffer the consequences of your actions in a way criminals do not, more so than someone who is a real threat to our society.


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 19:53 
Offline
Gold Member
Gold Member

Joined: Fri Sep 24, 2004 23:26
Posts: 9268
Location: Treacletown ( just north of M6 J3),A MILE OR TWO PAST BEDROCK
Big Tone wrote:
Pete317 wrote:
Big Tone wrote:
Silly Tone :oops:


Is that a 120dB silly tone? :lol:

Cut me some slack Pete. :D

Yes, 120 megabells or something :P

I'm going to stick my 50 ohm head in a book now. That's Green, Black, Black, and I'll go for gold on the last one, (from the old days), because I'm worth it :D


I always thought in that context dB was relative to something .( As in transmission of sound ,3dBm etc).An attenuator can be 3dB (AND TO BE PEDANTIC A -3dB attenuator is an amplifier).
Resistor wise -I'm a bit out or touch ,but don't we have another couple of bands on a resistor nowadays .

Bit back to the problem -think AND gates Tone and all becomes clear .

_________________
lets bring sanity back to speed limits.
Drivers are like donkeys -they respond best to a carrot, not a stick .Road safety experts are like Asses - best kept covered up ,or sat on


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 20:53 
Offline
Friend of Safe Speed
Friend of Safe Speed
User avatar

Joined: Sun Sep 25, 2005 10:16
Posts: 7986
Location: Moved to London
Pete317 wrote:
You have five two-way switches (SPDT), two lamps and a battery.
Wire them up so that:
Lamp 1 is on if, and only if, all five switches are up, and,
Lamp 2 is on if, and only if, all five switches are down
You're not allowed to short-circuit the lamps or the battery.

I thought about it for about 10 minutes (with some scribbling on bits of paper), got distracted for a while (you'll soon know why, keep an eye on the 150mph biker thread); revisited the problem and got it straight away. My solution is surprisingly straightforward :D (well, I think it fits the criteria - just).

_________________
Views expressed are personal opinions and are not necessarily shared by the Safe Speed campaign


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 21:52 
Offline
Gold Member
Gold Member

Joined: Fri Sep 24, 2004 23:26
Posts: 9268
Location: Treacletown ( just north of M6 J3),A MILE OR TWO PAST BEDROCK
Steve wrote:
My solution is surprisingly straightforward :D (well, I think it fits the criteria - just).


I would suggest solution is very simple -as i said -think "AND" gates(which a SPDT switch is)

IMHO-it's more of a question of solving the logic ,and transposing it into a circuit drawing .For the sparkies - who'll know two way light switches well - you don't need to grasp the logics -just expand two switches to five and add the lamps at the end .( Or have I given too much away ,Pete).

_________________
lets bring sanity back to speed limits.
Drivers are like donkeys -they respond best to a carrot, not a stick .Road safety experts are like Asses - best kept covered up ,or sat on


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 22:01 
Offline
Supporter
Supporter
User avatar

Joined: Thu Oct 16, 2008 13:45
Posts: 4042
Location: Near Buxton, Derbyshire
I've spent over forty years earning my crust by solving this kind of problem and I can't get this - even into the second bottle of wine. In fact I would happily write a paper showing why there is no solution - you can't create two independent and gates without having two independent sets of switching elements. And the solution hinted at by Botach (exclusive or gates), which was the first thing I turned to, seems to satisfy the "if" but not the "only if" criteria of the problem. So if you will put me out of my misery I will turn my certificates face to the wall, hang up my soldering iron, and grovel for a full 50mS. I will even sign travis's petition about the firmware of the 20-20 laser. :banghead: :headbash:

_________________
When I see an adult on a bicycle, I do not despair for the future of the human race. H.G. Wells
When I see a youth in a motor car I do d.c.brown


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 22:37 
Offline
Life Member
Life Member

Joined: Sat Mar 27, 2004 13:50
Posts: 2643
dcbwhaley wrote:
In fact I would happily write a paper showing why there is no solution


I can assure you that there is a solution, and there's no trickery involved.

_________________
Only when ideology, prejudice and dogma are set aside does the truth emerge - Kepler


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 22:41 
Offline
Friend of Safe Speed
Friend of Safe Speed
User avatar

Joined: Sun Sep 25, 2005 10:16
Posts: 7986
Location: Moved to London
It appears my solution was wrong, or at least wasn't the desired answer :P Well, my solution was a bit too simple (even simpler than yours Botach)

Pete,

Can the solution ever be allowed to present a short circuit (to the battery) for any other combination of switch positions?
Is it OK to short a lamp if there is no voltage across it?

_________________
Views expressed are personal opinions and are not necessarily shared by the Safe Speed campaign


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 22:49 
Offline
Supporter
Supporter
User avatar

Joined: Thu Oct 16, 2008 13:45
Posts: 4042
Location: Near Buxton, Derbyshire
Pete317 wrote:
I can assure you that there is a solution, and there's no trickery involved.


And the solution really meets the criteria if and only if five switches are in the same position?

_________________
When I see an adult on a bicycle, I do not despair for the future of the human race. H.G. Wells
When I see a youth in a motor car I do d.c.brown


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 22:54 
Offline
Life Member
Life Member

Joined: Sat Mar 27, 2004 13:50
Posts: 2643
Steve wrote:
Can the solution ever be allowed to present a short circuit (to the battery) for any other combination of switch positions?
Is it OK to short a lamp if there is no voltage across it?


No

dcbwhaley wrote:
And the solution really meets the criteria if and only if five switches are in the same position?


Yes

As I said, no trickery, no hidden extras, just wiring it up correctly

_________________
Only when ideology, prejudice and dogma are set aside does the truth emerge - Kepler


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 22:55 
Offline
Supporter
Supporter
User avatar

Joined: Thu Oct 16, 2008 13:45
Posts: 4042
Location: Near Buxton, Derbyshire
Steve wrote:
Can the solution ever be allowed to present a short circuit (to the battery) for any other combination of switch positions?
Is it OK to short a lamp if there is no voltage across it?


I got that one pretty quickly too. Lamps in series between pos and neg. Junction of lamps connected to all switch wipers. Normally open of all switches to pos. Normally closed of all switches to neg. But that is an engineering nonsense.

_________________
When I see an adult on a bicycle, I do not despair for the future of the human race. H.G. Wells
When I see a youth in a motor car I do d.c.brown


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 23:10 
Offline
Life Member
Life Member

Joined: Sat Mar 27, 2004 13:50
Posts: 2643
I'll make it a bit easier - the one side of both lamps are connected to the one side of the battery.

_________________
Only when ideology, prejudice and dogma are set aside does the truth emerge - Kepler


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 23:12 
Offline
Gold Member
Gold Member

Joined: Fri Sep 24, 2004 23:26
Posts: 9268
Location: Treacletown ( just north of M6 J3),A MILE OR TWO PAST BEDROCK
dcbwhaley wrote:
And the solution hinted at by Botach (exclusive or gates), which was the first thing I turned to, seems to satisfy the "if" but not the "only if" criteria of the problem.


I SAID
"IT'S A QUESTION OF "AND "GATES ,and later , an expansion of the two way light switch .


It's really a simple solution .A SPDT has two states .Add them on series( with a twist,and that's the hint), and think of linking the return to the battery from the lamps as a common feed(AS PETE SAID) .Sorry ,Gents - I cheated ,and drew on my past ten years of rail signalling experience - where all things in front of train need to satisfy conditions ,and added my background in logic . I'm working on getting my solution done in EXPRESSPCB to a picture for photobucket .

_________________
lets bring sanity back to speed limits.
Drivers are like donkeys -they respond best to a carrot, not a stick .Road safety experts are like Asses - best kept covered up ,or sat on


Top
 Profile Send private message  
 
PostPosted: Sat Jul 31, 2010 23:15 
Offline
Supporter
Supporter
User avatar

Joined: Thu Oct 16, 2008 13:45
Posts: 4042
Location: Near Buxton, Derbyshire
Is the number of switches significant?

_________________
When I see an adult on a bicycle, I do not despair for the future of the human race. H.G. Wells
When I see a youth in a motor car I do d.c.brown


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 85 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You can post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.020s | 11 Queries | GZIP : Off ]