Creating a timer that performs an action

  • Thread starter Thread starter dunar21
  • Start date Start date
  • Tags Tags
    Timer
Click For Summary

Discussion Overview

The discussion revolves around creating a timer circuit that counts items on a conveyor belt using an IR sensor and controls a motor based on the count. Participants explore various approaches to implement the counting mechanism and motor control, including the use of microcontrollers and alternative wiring methods.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes their project involving an IR sensor and a counting circuit, seeking advice on how to control a motor based on item counts.
  • Another participant suggests using a microcontroller for counting and motor control, mentioning options like Basic Stamp and Arduino, as well as the need for an H-bridge driver for motor direction control.
  • Alternative methods for reversing motor direction are proposed, including using a transfer switch with two batteries or employing two motors wired oppositely.
  • A participant notes that swapping leads on a DC motor reverses rotation, but another counters that this is not universally true for all motor types.
  • The original poster expresses difficulty with the proprietary nature of their current circuit and seeks alternative integrated circuits that can fulfill their requirements.

Areas of Agreement / Disagreement

Participants generally agree on the need for a microcontroller and the concept of reversing motor direction, but there are differing opinions on the specifics of motor control and the feasibility of certain approaches. The discussion remains unresolved regarding the best method to implement the timer and motor control.

Contextual Notes

There are limitations regarding the proprietary nature of the original circuit, and the discussion does not resolve the specific technical challenges related to motor control and counting mechanisms.

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.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
930
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
9K
  • · Replies 19 ·
Replies
19
Views
5K
Replies
11
Views
3K
  • · Replies 8 ·
Replies
8
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
11
Views
4K
  • · Replies 5 ·
Replies
5
Views
5K
Replies
2
Views
2K