J

junanchovy

Hello, everyone!

I actually just needed some help on how to go about creating a circuit consisting of five light bulbs and five buttons.

The way it should operate is, when one of the buttons are pushed, the lightbulb directly across from it as well as the two adjacent lightbulbs should react in some way, and all other lightbulbs should remain unchanged.

So, for example, we'll have buttons A, B, C, D, & E correspond to light bulbs of the same letters.

Suppose lightbulbs A, B, & E are lit up.

Then, pressing button C, lightbulbs C & D turn on, B goes out, and A & E are unchanged (still lit).

Quite honestly, I don't really know anything about this kind of electrical wiring. We were simply tasked to create something like this for a math course, and I have no idea how to even begin.

The prompt is also very keen on using buttons instead of switches, which I presume would have been easier to work with.

Thank you very much, and I apologize if the solution is really obvious. I've just been searching the internet for the past couple of hours and haven't really come up with anything.
 
Sounds like it isn't straight forward, you would more than likely need to make up a programme, is that sequence the only sequence you would like to perform? And why would you want it to do it like that?
 
I presume that this is some sort of project for collage or something?
Are you to actually build this or just designing it?
If you are building it then are you just going to show the principles of it working. The reason why I ask it, can you pick what you use? Are you going to used LED's for the lights and small pushbuttons with a PLC or a toggle circuit of some kind, or has the circuit to be mains power?
 
It actually is for a project. It's primarily just to show how it functions, but we do have to physically build it. We're working a lot with different matrices at this time, and I believe the point of the project is really just to have a physical or tangible representation of what's going on within the circuit (as in the correspondence of button A with the matrix [1 1 0 0 0] button B [1 1 1 0 0] button C [0 1 1 1 0] button D [0 0 1 1 1] and button E [0 0 0 1 1], where each "1" represents the action of turning off/on. As far as we were informed, we could basically go about it any way we want, as long as we are able to reproduce the same results.
 
Hello, everyone!

I actually just needed some help on how to go about creating a circuit consisting of five light bulbs and five buttons.

The way it should operate is, when one of the buttons are pushed, the lightbulb directly across from it as well as the two adjacent lightbulbs should react in some way, and all other lightbulbs should remain unchanged.

So, for example, we'll have buttons A, B, C, D, & E correspond to light bulbs of the same letters.

Suppose lightbulbs A, B, & E are lit up.

Then, pressing button C, lightbulbs C & D turn on, B goes out, and A & E are unchanged (still lit).

Quite honestly, I don't really know anything about this kind of electrical wiring. We were simply tasked to create something like this for a math course, and I have no idea how to even begin.

The prompt is also very keen on using buttons instead of switches, which I presume would have been easier to work with.

Thank you very much, and I apologize if the solution is really obvious. I've just been searching the internet for the past couple of hours and haven't really come up with anything.

First let us understand the problem. To help I have highlighted the key functionality between the buttons (A, B, C, D and E) and their corresponding lamps (P, Q, R, S, T). We are told to design a circuit such that:

a. Only one button is pressed at a time.
b. The button is press to make a contact close and upon release the button's contact is open.
c. The lamps have to react to the button being pressed. A lamp can only react by being lit or extinguished.
d. The pressing of a button affects not only its corresponding lamp but the ones adjacent to it.
e. In my example I have considered the first lamp adjacent to the last one.

Some short hand now. I can represent a button, say A, being pressed by saying A=1. Otherwise, when it is not pressed A=0. Similarly, I can represent a lamp being lit, say P, by saying P=1, Otherwise, when the lamp is extinguished, P=0.

The set of 5 buttons can thus be in only one of the following six states (or conditions if you prefer):

Writing the state of all five buttons in the order A, B, C, D, E the six states are

00000, 00001, 00010, 00100, 01000, 10000. No other states are allowed by the problem statement.

With no button pressed, ie (ABCDE = 00000) we could associate the lamp state (PQRST = 00000) or all extinguished.

Then it becomes simple to write down the change from this state when say button a is pressed - it is PQRST=11001 - (remember I consider lamp 1 adjacent to lamp 5. If I did not, then PQRST would be 11000)

A neat way to write down the required lamp states for a particularly button state is:

P Q R S T

ABCDE
00000 0 0 0 0 0
10000 1 1 0 0 1
01000 1 1 1 0 0
00100 0 1 1 1 0
00010 0 0 1 1 1
00001 1 0 0 1 1

This is called the connection matrix which relates the buttons to the lamps.

Reading across the row where ABCDE = 00100 indicates that button C is connected to lamps Q, R and S. If we look down a column, we can say lamp S is connected to the outputs of buttons C, D and E.

In order to isolate each button from the rest it is necessary to use a diode to make the connection between a button's output and a particular lamp. I leave it for you to work out why. So, Lamp P connects to button A through a diode and to button B through another and button E through yet another.

Connect all the button inputs to one pole of an emf and one side of all the lamps to the other pole.
 
Last edited:
I would build it in minecraft. Not sure if you are allowed. Would put a bit of a slant on the project. You could walk through it pressing the buttons and seeing the light toggle.
It would be easy. 5 lights, each with a T-flop-flop. Wire each button to 3 of the T-flop-flop's. Job done.
 
It's a Virtual Project... Still a project. I bet no one else would be doing it.
 
This is the kind of circuit you'd use with occupancy sensors and multiple lights in a log corridor or tunnel for example where triggering the next sensor changes the state of the lights either side of it or a slight variation of it. Have you had any hands on experience with 556 timer chips? Here's a few circuits you could adapt to your requirements. Model Railroad Signals and here's some info on bistable NAND gates http://www.uq.edu.au/_School_Science_Lessons/UNPh39.html.
 
Last edited by a moderator:
Have a go at studying the connection matrix and then writing down the Boolean expressions for each lamp. (X.Y is X and Y, and X + Y is X or Y. Not X is X') :-)


A, B, C, D & E Switchs (Inputs)
a, b, c, d & e Lights (outputs)

00000 0 0 0 0 0
10000 1 1 0 0 1
01000 1 1 1 0 0
00100 0 1 1 1 0
00010 0 0 1 1 1
00001 1 0 0 1 1

a = (A+B+E)
b = (A+B+C)
c = (B+C+D)
d = (C+D+E)
e = (A+D+E)
 

OFFICIAL SPONSORS

Back
Top