Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Help with a project

Status
Not open for further replies.

HudzonHawk

New Member
I need a little help with a project I'm working on. I know what it's supposed to do in my head, but I'm not entirely sure how to implement it.

Suppose you have a button and a lamp - every time the button is pressed, the lamp turns on. However, you want to limit the amount of times someone can turn on the lamp, so you connect a chip between the lamp and the button.

The chip stores a number, say 500, and every time the button is pressed the number goes down by one. And when it gets to zero, the lamp can't be turned on anymore.

At that point you have to take out the chip, and put it into a second device which can change the number from 0 to whatever you specify, thus allowing you to continue operating the lamp.

Any suggestions on what I should look into to make this possible?
 
I fail to see a point in this application?
 
Sure, get a little 8-pin Microchip microprocessor, like the 12F675, and program it to do just that. Program the number of times you want to turn your device on//off into the PIC's EEPROM. Everytime someone presses the button, the PIC turns the device on and subtracts one from that value. Press the button again to shut things off, without changing the number. When the value reaches zero, it could nothing or flash an LED or sound a warning buzzer to tell the user that all the uses are done. Now you must plug in a serial cable to a PC to reprogram a new value into the EEPROM again. Or enter a 4-digit PIN on a builtin keypad to reinstate the count again. Or use a KEYLOCK device to do this. Whatever does the job for you. This is the easiest way to go, parts-wise. But you need programming experience and a programmer.

At minimum, you could use an IC like the 14526 count-down timer. One of these will let you preset it to 15 uses. Press a button, subtract one. Cascade two and you can program them for up to 255 uses. Put a small connector on the board that allows you to reprogram it//them in the future. You'll have to add circuitry to shut off the device without affecting the count. This is all hardware, but can be trickier to implement in just logic and timing ICs.

Now determine how much power you are switching, and determine if isolation is necessary, then design in the appropriate on-off circuit.

And you're done!
kenjj
 
Status
Not open for further replies.

Latest threads

Back
Top