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.

Creating A Counting Device?

Status
Not open for further replies.

sjaguar13

New Member
If there was a pendulum swinging back and forth and hitting a metal object, is there a way to create a circuit that would count the swings? In the best, optimal condition, the pendulum would not have any metal on it or anything, but it would touch a metal object. The metal object is directly in the center of the swing back and forth. I can't come up with anything, so if the pendulum was modified to be metal and have a postive charge, the metal object having a negative charge, when they touch, it would complete a ciruit. I just don't know what would be needed to keep count.
 
IR and phototransistor. point the IR to the photransistor with pull up on collector and emitter to ground, then every time the IR will be cut, the phototransistor will have a logic 1 to the collector.
 
Lets assume your pendulum goes naturally. Eventually, the swings will get smaller and smaller until you see it sitting in one position.

Your best bet is to follow the above suggestion, and place the IR one half ball-width away from the center point of the swings. You will get the most counts this way.
 
The pendulum doesn't swing naturally. It's pushed everytime. The goal is to figure out how many times it was pushed.
 
I use this circuit to count turns on an inductor winding. SW2 is a microswitch count input, but an optical switch would be better in your case. SW1 is a reset push button.
OOPS! I see there is an error, pins 9 & 13 are not supposed to be shorted.
 

Attachments

  • 3_digit_counter.jpg
    3_digit_counter.jpg
    190.7 KB · Views: 688
Status
Not open for further replies.

Latest threads

Back
Top