Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Gear Tooth Sensor Trouble (http://www.chiefdelphi.com/forums/showthread.php?t=42555)

cprogrammer 24-01-2006 11:17

Gear Tooth Sensor Trouble
 
I have a question on the G.T.S. when we try to get a read out on the screen all we get is a value of zero. Is teh GTS defined as an rc_dig_inxx or is it a rc_dig_outxx. Another thing the J1 pins are connected to the 12V circut breaker and J2 goes to the Dig in/outputs. Also can anybody tell me the way that they mounted their gyro. If anybody could answer even one of these questions that would be very helpful.

Matt Krass 24-01-2006 13:48

Re: Gear Tooth Sensor Trouble
 
The Gear Tooth Sensor emits a pulse whenever a tooth passes it, varying in length vased on the direction, however our controller isn't very capable of decoding the direction while remaining stable and functional :) But you can measure the counts by setting up an interrupt to fire on each pulse, then incrementing a counter, take a look at Kevin Watson's interrupt and encoder code at http://kevin.org/frc/

Also, it goes in a digital input, 1 to 6 for interrupts.


All times are GMT -5. The time now is 01:03.

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