Go to Post I will never forget Dean's opening lines: "I want you to know that I am here under protest. I believe that everything you are doing here is repugnant and ethically wrong. And now I am going to tell you why..." And for the next 35 minutes, that is exactly what he did. - dlavery [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 11-02-2004, 23:22
kor kor is offline
Registered User
#0694
 
Join Date: Feb 2004
Location: New York City
Posts: 1
kor is an unknown quantity at this point
Interrupts and rotation sensors

I want to be able to make dead reckoning code based on almost the exact position of the robot. To do this I need rotation sensors for at least one of the wheels, and I need to be able to use interrupts in the code. I'm out of my depth with the interrupt code - All I want to do is to increment a rotation count whenever I receive certain values from an analog input rotation sensor (for example, “the input”%16). I’ve looked over the heavily commented example code but I am still not sure what I need to change to make it work for one specific input. I also need a rotation sensor with which to use this code, and I have no idea where to get it. There has to be some sort of potentiometer or something that functions like the Lego rotation sensors (i.e., it can keep on turning indefinitely), but I have no idea what it would be called or where I can get it.
If anyone can help me out on either of these issues I would really appreciate it. Simply put, I need some tips on using interrupts, and I also need information on where to get rotation sensors.
 


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 10:20.

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