Go to Post Uh. Oh. Wildstang is simple and has a swerve. Where have I seen that before? - EricH [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 11-02-2004, 23:36
JRHaddock JRHaddock is offline
Registered User
AKA: Joey Haddock
FRC #3025 (DARC)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Decatur, AL
Posts: 7
JRHaddock is an unknown quantity at this point
Re: Interrupts and rotation sensors

http://www.chiefdelphi.com/forums/pa...le&paperid=272

I have included a link to a white paper written by Daniel Katanski which is an excellent place to start learning about this capability.

You say you want to use interrupts to increment a rotation count, but then you describe an analog measurement. The interrupts are digital inputs, typically a pulse and the pic controller can be configured to generate an interrupt on rising edge, falling edge, and (for some inputs) both edges. One method to apply this to determine the displacement of the machine would be to use a encoder on one of the drive train shafts that would generate a specific number of pulses for each revolution of the shaft. The interrupt routine would accumulate the number of pulses from a starting point and this would be directly related to displacement of the machine.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:52.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi