Creating a timer that performs an action

  • Thread starter Thread starter dunar21
  • Start date Start date
  • Tags Tags
    Timer
AI Thread Summary
The discussion revolves around creating a timer circuit that counts items on a conveyor belt using an IR sensor and controls a motor's direction based on the count. A microcontroller, such as an Arduino or Basic Stamp, is suggested for managing the counting and motor control, particularly for reversing the motor's direction using an H-bridge driver. Alternatives include using separate batteries or motors for direction control, but a microcontroller is still necessary for the counting logic. The user faces challenges with a proprietary circuit that limits modifications, prompting a search for alternative integrated circuits that can fulfill the counting and motor control requirements. Overall, the focus is on finding a suitable solution for the counting mechanism and motor operation.
dunar21
Messages
3
Reaction score
0
Hello, I am not even a novice at electrical engineering. I am a web designer and a programmer (Actionscript 3.0 and PHP - also MySQL for my websites' databases-). Anyway, I am attempting to create a series of circuits that count items moving on a conveyor belt with an IR sensor, and runs a motor in one direction after a certain count and then in the opposite direction after a repeat of that count. So, say for every five items, once the fifth item breaks the IR connection and sends the fifth pulse to the counter, I need the counter to run a motor in one direction(and to switch directions after every 5th count) and begin counting the next item as number 1. I have an IR circuit that sends pulses to this counting circuit kit I bought at an electronics store: http://www.kitsrus.com/pdf/k129.pdf (This kit uses the IC described on the datasheet at http://www.atmel.com/dyn/resources/prod_documents/doc0838.pdf). How would I arrange the circuit to run a motor (about 9V to the motor) after every 5 counts. I would need it to start the next count at 1 instead of using a count to reset and then the following count set to 1. So, as the 5th count runs the motor that same connection would have to reset the clock instead of the 6th count resetting it. It would be nice to have a switch that allows me to switch between a 5 or a 6 count, but once I see how to do one, it shouldn't be that difficult to make a switch that runs a similar process at a different count. Any help or advice would be greatly appreciated. Thank you in advance.
 
Last edited by a moderator:
Engineering news on Phys.org
Without getting too deep into this...

It sounds like you've got your sensor figured out, but you need a simple micro-controller to do the counting and motor control. There's hobbyist sorts of things like the Basic Stamp and Arduino, or you can spend a few months becoming an embedded engineer and use a MicroChip PIC or many others.

The main problem is running your motor in both directions. For this you need an "H-bridge" driver, which could lead to another few months of electronic engineering degree study. There are commercial boards and motor controllers for automation and such, e.g., I have used these guys products: http://www.geckodrive.com/
 
Swapping the leads on a dc motor reverses the direction of rotation. So if you didn't want to get into the H bridge thing, you could either:

1. Wire up two separate batteries (with the leads wired opposite each other at the input) to a transfer switch (if such a thing exists on this scale) or...

2. Wire up two different motors to the same conveyor. Each would run the opposite way.

You'd still need the microcontroller to do the counting and send the appropriate output signalling, of course
 
Evil Bunny said:
Swapping the leads on a dc motor reverses the direction of rotation.

Not necessarily. This is true only on a motor with permanent magnet fields.
 
good point... I think most smaller motors will work this way. You should check first.
 
Thanks for your help guys. It seems that the circuit I linked to is programmed in a specific way and the software is proprietary, so there is no real way to modify that particular circuit to suit my needs. There have to be many IC circuits, though, that will allow me to send a series of pulses and then to simply have current flow after a certain amount of pulses, reset and repeat. I'm google hunting for the solution now. Thanks again for the assistance.
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
Thread 'Beauty of old electrical and measuring things, etc.'
Even as a kid, I saw beauty in old devices. That made me want to understand how they worked. I had lots of old things that I keep and now reviving. Old things need to work to see the beauty. Here's what I've done so far. Two views of the gadgets shelves and my small work space: Here's a close up look at the meters, gauges and other measuring things: This is what I think of as surface-mount electrical components and wiring. The components are very old and shows how...
Back
Top