Go to Post Earlier this week it took me a little bit too long to realize that the reason my pen wasn't writing correctly was that it was actually a screwdriver. I'm going to have to ask for a few nights of honest sleep before signing off on a report. - EricVanWyk [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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
  #3   Spotlight this post!  
Unread 15-02-2007, 18:43
JHale JHale is offline
Registered User
no team
 
Join Date: Feb 2007
Rookie Year: 2008
Location: Nowhere
Posts: 14
JHale is an unknown quantity at this point
Re: Encoder help

(From the same team)

W have the Phase A signal hooked up to Digital IO 1, and Phase B hooked up to Digital IO 11 as per the Kevin.org code.

When we print off the value from Get_Encoder_1_Count(); all that is returned is either 256 or 260 without any change when the encoder is rotated.

When we print off the value of digital_io_01, all that we are able to see is a -1 or a 0 (Which is odd because the ios should be showing 1 or 0, not a negative).

Also, when we reset the encoder count after each call of the count, the encoder alternates between 1 and 0. When you are turning it forward, we get a 1, and backwards a 0. However, when we allow the code to handle counting, all we see are 256 or 260.

I am reading through the code and will be trying the Quadrature code tonight.

Thank you!
 


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
Encoder help Windward Programming 21 14-01-2006 15:10
Encoder code with hall effect sensors help brownster Programming 10 19-02-2005 09:23
Need Help with Encoder - Won't Count Clicks Kingofl337 Programming 5 16-02-2005 18:30
encoder.c Gary Bonner Programming 2 14-01-2005 13:41
shaft encoder help stephenthe1 Programming 2 03-12-2004 16:09


All times are GMT -5. The time now is 11:49.

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