Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Rotation Detector Help

Status
Not open for further replies.

szadeklord

Newbie level 2
Joined
Oct 19, 2015
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
23
So I have tried tackling this problem, but I cant seem to get anywhere. I dont know if I am making things too complex. I came up with this state diagram and state table. But I dont know if this is too complex. I dont even know how to implement it from my state table. I described my issue below.

IMG_20151019_121950738.jpgIMG_20151019_122010781_HDR.jpg

Okay I have a system which consists of a spinning circular disk and stationary probes A (at 12 o’clock on the disk frame) and B (at 3 o’clock on the disk frame). One half of the disk is black and causes a either probe to read 1 when the black portion of the disk passes underneath it. The other half of the disk is white and causes a probe to register 0. The system has three synchronous inputs (A, B and ENABLE) and the two moore outputs (VALID and DIRECTION). I need to figure out if the disc is spinning clockwise or counterclockwise.

- When the disk is spinning at full speed ENABLE is asserted (1). While enabled, the clock frequency will be high enough to guarantee that the disk is sampled 8 times per rotation. Otherwise (when the disk is stopped or changing direction), the external system holds ENABLE low (0).

- The value of the DIRECTION should be low (0) if the direction of the spin is counterclockwise. The value of DIRECTION should be high (1) if the direction of spin is clockwise. The value of DIRECTION output is ignored (and thus can be treated as don’t care) until valid is asserted.

- Whenever ENABLE is low or when ENABLE is high and the DIRECTION is not yet valid, the output VALID is held low (0). Once the direction of the spin is determined (and the value of direction set accordingly) VALID should be asserted.

- Once the VALID is asserted, the outputs should be held stable until ENABLE goes low.

- - - Updated - - -

Am I able to do this with less states? Is it possible to solve this problem with only 8 states? (3 flip flops)
 

I need to figure out if the disc is spinning clockwise or counterclockwise.

You may find it's possible to adapt a bee detection algorithm. That seems to have become a common term for an electronic circuit whose aim is to count bees going in only one direction.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top