Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Newbie needs some help

Status
Not open for further replies.

Garry34

Newbie level 3
Joined
Jun 19, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Upwey, Victoria, Australia
Activity points
1,315
Howdy guys,

I am not sure I am doing this correctly, in the right place, or even if my question is dumb, but here is my problem. I work part-time travelling to schools doing lectures on the archaeology and history of the ancient world; I transport a travelling exhibition of artefacts, replicas, and models with me.

I am building a new archaeological showcase to take to schools and in it is a sculpted 3D model of the Valley of the Kings in Egypt. At the location of each Egyptian tomb is a red LED.

My idea is this: using a 9V battery and a row of press-button switches each labelled with the name of an individual (Pharaoh or other individual) buried in the Valley of the Kings, I wish students to be able to press a switch and the appropriate LED to light up for say 20 seconds or so and then switch OFF.

If another button is pressed while any LED is ON it should switch the lit LED OFF immediately and the new LED light up with the timing restarting. The CCT should draw minimal (or preferably zero) current when all LEDs are OFF to conserve battery power supplied by a 9V battery. How can I do this with a minimum of components and minimum current drain?

Perhaps one of you guys could propose a CCT for my addled brain? There are 36 LEDs on the model.

Thank you,

Garry
 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
14,367
Helped
4,727
Reputation
9,469
Reaction score
4,495
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
122,595
What you are asking for is an exclusive latch, one that updates with each new key press and releases any previous selection.
There are several ways to do this, the classic method is to use 8-bit static latches but you would need five of them and some extra circuitry to create the 'release' signal and turn off delay. You would likely have a circuit board with as many as 10 ICs on it.
The alternative is to use a microprocessor and multiplex the LEDs. This might drop the IC count down to just one and very considerably reduce the amount of wiring but you would have to write some relatively simple software to operate it. The multiplexing principle relies on persistence of vision, you pulse the LEDs very quickly rather than leaving them on the whole 20 seconds, because we can not see flashes faster than about 50 per second, the LED appears to be on all the time. Although it sounds a bit complicated, it actually makes a much simpler design and the person viewing it sees exactly as they would with the 10 IC solution.

Brian.
 

mister_rf

Advanced Member level 5
Joined
Feb 26, 2008
Messages
1,874
Helped
1,039
Reputation
2,086
Reaction score
953
Trophy points
1,393
Location
Romania
Activity points
11,528
:-D
And just to illustrate how complex may be a schematics using standard ICs, here's a demo version that uses five MC14508 and one CD4093 circuit.
 

Attachments

Last edited:

kak111

Advanced Member level 4
Joined
Mar 30, 2011
Messages
1,366
Helped
933
Reputation
1,868
Reaction score
907
Trophy points
1,413
Location
Finland
Activity points
10,942
I got an idea , here is the principle ............

If someone has time to check and simulate, is this working circuit , so please do it.

N_Leds_Sw_Delay_01.jpg

KAK
 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
14,367
Helped
4,727
Reputation
9,469
Reaction score
4,495
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
122,595
Easiest is to use a micro controller. Arrange the LEDs in a 6 x 6 matrix and also connect the drive signals to a matrix of keys. That gives you 36 switches, 36 LEDs and only 18 connections to the processor. The 20 second delay can easily be created in software. It's much easier to wire up 18 connections than the 74 demonstrated in mister_rf's example!


Brian.
 

Garry34

Newbie level 3
Joined
Jun 19, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Upwey, Victoria, Australia
Activity points
1,315
Thanks Betwixt,

I had thought of programming a microprocessor to do this, but my knowledge is very rusty!

Thank you

Garry34

---------- Post added at 12:04 ---------- Previous post was at 12:03 ----------

Thank you kak111,

I will give this a go and let you know.

Thanks again sir,

Garry34

---------- Post added at 12:08 ---------- Previous post was at 12:04 ----------

Thank you mister_rf,

You have just scared the daylights out of me!

Thanks,

Garry34
 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
14,367
Helped
4,727
Reputation
9,469
Reaction score
4,495
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
122,595
Putting the problem in perspective, I've attached the multiplexed solution. This would include the timer which is not included in the design shown by mister_rf.
Sorry for the horrible quality, I scribbled it on a bumpy train journey. The micro could be a PIc16F628A which costs peanuts.

Brian.

key_leds.jpg
 

mister_rf

Advanced Member level 5
Joined
Feb 26, 2008
Messages
1,874
Helped
1,039
Reputation
2,086
Reaction score
953
Trophy points
1,393
Location
Romania
Activity points
11,528
By the way, the idea was to create some sort of timer using a gates and capacitors. :grin:
Pressing any button will put MR on low (charging C1), activating all the circuits, later on the strobe signal charge the data level to high on the specified output and maintain all circuits activated for additional 20-30s until the capacitor C1 is discharged.
Anyway, the ‘’demo’’ circuit has some errors :roll: , the LEDs need to be on reverse, 14508 put level high on selected output, and a GND instead Vcc to be used.
 

Attachments

Last edited:

Garry34

Newbie level 3
Joined
Jun 19, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Upwey, Victoria, Australia
Activity points
1,315
Putting the problem in perspective, I've attached the multiplexed solution. This would include the timer which is not included in the design shown by mister_rf.
Sorry for the horrible quality, I scribbled it on a bumpy train journey. The micro could be a PIc16F628A which costs peanuts.

Brian.

View attachment 57475
Thanks Brian,

Do you remember the old Goon Gag:

Neddy Seagoon: "My name is Neddy and I come from Wales!"
Eccels: "Well it's easy to see you don't come from sardines mate!"

Many thanks.

---------- Post added at 19:10 ---------- Previous post was at 19:08 ----------

Thanks again mister_rf!

Garry34
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top