Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 14th May 2008, 03:21 PM   (permalink)
Default Counter (when counter > x, vibrate)

Hi there. i'm brand new here, and im sorry to say my fist post is asking for your help.

Im new to electronics (im only 16 ) so please excuse my stupidity.

Im trying to build a device with the following specs and was looking for some advice really:

counter to count between +40/-40 and have a chip that outputs to a vibrator when the counter is > a specified number. I need two seperate inputs for +1 and -1 aswell as a third button to reset the counter to 0. I dont necessarily need to display the count value, but i would be cool if i could.

Or if it would be easier, have the device reset to -12 (ish) and then have it vibrate when the counter reaches 0.

So far ive got word that im looking @ either
  • * 74LS688 : 8-bit comparator with appropriate <, = or > outputs
    * 74LS192 : presettable up/down counter

but im really unsure how to implement either of these chips into a working peice of electronix. A little digging around on the internet has led me to believe i will need to use a PIC to do the when counter > x part.

So im really asking, am i heading on the right tracks here? and do you have any resources with examples of projects of this nature? could anyone help me build something like this step-by-step?

i know that you time is valuable but i would be eternally grateful if you could help me out!

thanks
adwilk is offline  
Old 14th May 2008, 04:25 PM   (permalink)
Default

Quote:
Originally Posted by adwilk
counter to count between +40/-40 and have a chip that outputs to a vibrator when the counter is > a specified number. I need two seperate inputs for +1 and -1 aswell as a third button to reset the counter to 0. I dont necessarily need to display the count value, but i would be cool if i could.

Or if it would be easier, have the device reset to -12 (ish) and then have it vibrate when the counter reaches 0.

So far ive got word that im looking @ either
  • * 74LS688 : 8-bit comparator with appropriate <, = or > outputs
    * 74LS192 : presettable up/down counter

but im really unsure how to implement either of these chips into a working peice of electronix. A little digging around on the internet has led me to believe i will need to use a PIC to do the when counter > x part.
hi,
If its a decimal count to +40 then a 74LS192 up/dwn 'decade' counter would be my suggestion, especially if you want to display the counter in the future.

When you say, +/-40 counters, do you mean a count upto a maximum of 40 and the ability to down count this counter to zero.?
Or
are you saying two separate counters, one counting up and the othe counting down.??? which dosn't sound right to me.

What range of specified 'vibrate' now values do you want to cover.?

You could do this project with logic ic's [74lS192] or a small PIC.

If you go the PIC route, you will have to write the program and also have the equipment to program the PIC..

What do you think.?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now  
Old 14th May 2008, 07:40 PM   (permalink)
Default

Quote:
Originally Posted by ericgibbs
hi,
If its a decimal count to +40 then a 74LS192 up/dwn 'decade' counter would be my suggestion, especially if you want to display the counter in the future.
i want it to be an integer count, so 1,2,3,4 etc.

Quote:
Originally Posted by ericgibbs
When you say, +/-40 counters, do you mean a count upto a maximum of 40 and the ability to down count this counter to zero.?
Or
are you saying two separate counters, one counting up and the othe counting down.??? which dosn't sound right to me.
what i mean is counter that can go from -40 through 0 to +40

so if it was at zero and i pressed the -1 button it would count down 1 to -1 and then if i pressed it again it would go to -2, then pressing the +1 button would take it back to -1.

Quote:
Originally Posted by ericgibbs
What range of specified 'vibrate' now values do you want to cover.?
i just want it to vibrate when the number is bigger than 12.

thanks for he;lping me clear that up a bit
adwilk is offline  
Old 14th May 2008, 08:08 PM   (permalink)
Default

Quote:
Originally Posted by adwilk
i want it to be an integer count, so 1,2,3,4 etc.
The LS192 is an integer counter, the first LS192 would count from 0 to 9 and the second LS192 tens, 0,10,20,30,40.
To count from -40 thru 0 to +40 you will require four LS192


what i mean is counter that can go from -40 through 0 to +40

so if it was at zero and i pressed the -1 button it would count down 1 to -1 and then if i pressed it again it would go to -2, then pressing the +1 button would take it back to -1.

i just want it to vibrate when the number is bigger than 12.
This part is easy just a couple of logic gates.

thanks for he;lping me clear that up a bit
hi,
Does this help.?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now  
Old 14th May 2008, 11:24 PM   (permalink)
Default

it helps a lot, thankyou!

wondering how i should wire the 4 x LS192 ?

also would i need a specific logic gate for this or are they programmble chips?

thanks alot.
adwilk is offline  
Old 15th May 2008, 10:00 AM   (permalink)
Default

Quote:
Originally Posted by adwilk
it helps a lot, thankyou!

wondering how i should wire the 4 x LS192 ?

also would i need a specific logic gate for this or are they programmble chips?

thanks alot.
hi,
Look at this initial drawing.

It uses two 74LS192 decade counters.
Pushing the LOAD switch, preloads the counters with 40 decimal.
The +1 and -1 increment switches count up from 40 or down from 40.

The extra logic on the outputs of the LS192 would have to detect when,
count is 28 or less OR count is 52 or greater.

On detecting these limits a latch would be set and the 'vibs' activated.

Is this what you are looking for.?

Whats the purpose of this project..?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 7th July 2008 at 12:25 PM.
ericgibbs is online now  
Old 15th May 2008, 11:16 AM   (permalink)
Default

Quote:
Originally Posted by ericgibbs
hi,
Is this what you are looking for.?

Whats the purpose of this project..?
this is fantastic thankyou very much for all this help.

Its going to be for a board game thing that one of my mates is making in his graphics GCSE.

I said i would try and help him with it because im really interested in getting good at electronics.
adwilk is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Dual counter bananasiong Micro Controllers 45 24th March 2007 03:49 AM
How we can do it in Assembly..Help Needed Ayne Micro Controllers 37 29th December 2006 06:49 PM
Input Counter Pic16F84A (Code problems) loco Micro Controllers 4 26th September 2006 02:19 PM
[help] Power consumption issue on bullet counter project * Lanzer Electronic Projects Design/Ideas/Reviews 13 26th August 2005 07:06 AM
Crude assembly counter Mark Lazarides Micro Controllers 5 28th February 2004 08:22 PM



All times are GMT. The time now is 08:44 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker