Go to Post I wonder if the FIRST Place Holiday Party partly consists of watching the site activity.... - Jessica Boucher [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
  #1   Spotlight this post!  
Unread 14-01-2006, 12:04
JSonntag JSonntag is offline
Registered User
FRC #0486 (Positronic Panthers)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: United States
Posts: 16
JSonntag is on a distinguished road
Send a message via AIM to JSonntag
Interrupts

Could anyone help us with Interrupt Code for use with optical encoders? We are placing two of the small, yellow banner sensors next to the wheel, which will be covered in a sheet of paper with alternating black and white stripes. As the wheel turns we plan on detecting the change between black and white, and by comparing the counts for both the left and right wheels, we should be able to program precise turns and straight lines.

I am aware of some of the problems with Interrupts, therefore I only want to increment a counter when the state changes. The Optical sensors are plugged into rc_dig_in03 and 04.

Anyone have any ideas.
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encoders, interrupts, and edge-triggering issues Alan Anderson Programming 6 11-03-2005 16:06
Global Struct Arrays and Interrupts Orborde Programming 5 18-02-2005 22:34
FYI about using PWM 13-16 with interrupts cabbagekid2 Programming 6 22-01-2005 00:54
INT2 and INT3 interrupts not working Mercutio Programming 4 01-02-2004 13:27
Problem with interrupts on the PIC Mike Betts Programming 7 16-12-2003 21:26


All times are GMT -5. The time now is 10: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