Go to Post Your GPA in High School and College is a reflection of your cooperation with educational processes, nothing more. It is NOT a measurement of how much you know or how much you can learn. - Mike Martus [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-02-2005, 10:12
brownster brownster is offline
Registered User
#1392 (Team Kinematrix)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Ajax,Ont
Posts: 21
brownster is an unknown quantity at this point
Encoder code with hall effect sensors help

I need to know how to exactly use the hall effects with the encoders. I plugged in the output from the hall effects so that left is digital input 1 and the right isdigital input 2. However when i run the autonomous the right wheel behaves properly and the left wheel doesn't. In "pid.h" i changed the code so that left wheel is pwm and right wheel is pwm 10..but that is all i did...i need to know where the quadrature input part is so i can delete it too. If anyone can tell me why 1 wheel is working and the other isn't..that would be really great....thank you!
  #2   Spotlight this post!  
Unread 18-02-2005, 10:19
Moloch's Avatar
Moloch Moloch is offline
Registered User
no team
 
Join Date: Feb 2005
Location: Michigan
Posts: 39
Moloch can only hope to improve
Re: Encoder code with hall effect sensors help

You are using the hall-effects AND encoders? Why?
  #3   Spotlight this post!  
Unread 18-02-2005, 11:41
brownster brownster is offline
Registered User
#1392 (Team Kinematrix)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Ajax,Ont
Posts: 21
brownster is an unknown quantity at this point
Re: Encoder code with hall effect sensors help

Quote:
Originally Posted by Moloch
You are using the hall-effects AND encoders? Why?
no im using just the hall effects as encoders. I need help doing this using the encoder code. the right side wheel works but the left does not. i just want to know why? and how to fix it? thank you
  #4   Spotlight this post!  
Unread 18-02-2005, 11:47
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Encoder code with hall effect sensors help

Quote:
Originally Posted by brownster
the right side wheel works but the left does not. i just want to know why? and how to fix it? thank you
Have you looked at the actual signal coming from the sensor? It might not be working correctly. What happens if you swap the sensors?
  #5   Spotlight this post!  
Unread 18-02-2005, 13:09
brownster brownster is offline
Registered User
#1392 (Team Kinematrix)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Ajax,Ont
Posts: 21
brownster is an unknown quantity at this point
Re: Encoder code with hall effect sensors help

Quote:
Originally Posted by Alan Anderson
Have you looked at the actual signal coming from the sensor? It might not be working correctly. What happens if you swap the sensors?
If i swap the sensors the other side the problem just reverses and the other side begins to work correctly
  #6   Spotlight this post!  
Unread 18-02-2005, 13:17
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Encoder code with hall effect sensors help

Quote:
Originally Posted by brownster
If i swap the sensors the other side the problem just reverses and the other side begins to work correctly
If the problem follows the sensor, then the sensor is the problem.

I don't know how susceptible the Allegro sensors are to electrostatic discharge, but I know ours were working great one morning and were both dead that afternoon. We decided that encoders are the way to go.
  #7   Spotlight this post!  
Unread 18-02-2005, 14:01
brownster brownster is offline
Registered User
#1392 (Team Kinematrix)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Ajax,Ont
Posts: 21
brownster is an unknown quantity at this point
Re: Encoder code with hall effect sensors help

Quote:
Originally Posted by Alan Anderson
If the problem follows the sensor, then the sensor is the problem.

I don't know how susceptible the Allegro sensors are to electrostatic discharge, but I know ours were working great one morning and were both dead that afternoon. We decided that encoders are the way to go.
Well the thing that could really help me right is if you could tell me what i need to do to make the hall effects work if Kevin's autonomous code. then maybe i know if the problem was hardware or not. And sorry i meant to say that the sensor is not the problem..when i switch sides the problem also switches to the other side. So the other sensor...so if anyone could tell me what i need to exactly do to make the hall effects work with the code that would be awesome. like step by step insructions and wehre the code changes are!
  #8   Spotlight this post!  
Unread 18-02-2005, 20:43
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Encoder code with hall effect sensors help

Exactly the same problem here. I've ruled out the sensors, the code, only thing left is RC. I should mention this is the 2004 RC. It does the same thing on our 2005 one, with different sensors. Which would mean its the code, but its the code directly from the encoder stuff. I don't know what to do abou it...

The sensors are fine, we took a multimeter to the sensors, and we get signal wire changing from 0 to +5v.
  #9   Spotlight this post!  
Unread 18-02-2005, 22:44
brownster brownster is offline
Registered User
#1392 (Team Kinematrix)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Ajax,Ont
Posts: 21
brownster is an unknown quantity at this point
Re: Encoder code with hall effect sensors help

Quote:
Originally Posted by devicenull
Exactly the same problem here. I've ruled out the sensors, the code, only thing left is RC. I should mention this is the 2004 RC. It does the same thing on our 2005 one, with different sensors. Which would mean its the code, but its the code directly from the encoder stuff. I don't know what to do abou it...

The sensors are fine, we took a multimeter to the sensors, and we get signal wire changing from 0 to +5v.
Then i have no idea about it...i really can't find anything wrong with the code...i'm guessing its something to do with the quadrature input..if someone knows anything..let me know!!!!!
  #10   Spotlight this post!  
Unread 19-02-2005, 00:01
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Encoder code with hall effect sensors help

http://www.chiefdelphi.com/forums/sh...ad.php?t=34859
Fixed it, read that for details.
Its a kind weird thing that one works and not the other, but that fixed it for me.
  #11   Spotlight this post!  
Unread 19-02-2005, 09:23
brownster brownster is offline
Registered User
#1392 (Team Kinematrix)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Ajax,Ont
Posts: 21
brownster is an unknown quantity at this point
Re: Encoder code with hall effect sensors help

Quote:
Originally Posted by devicenull
http://www.chiefdelphi.com/forums/sh...ad.php?t=34859
Fixed it, read that for details.
Its a kind weird thing that one works and not the other, but that fixed it for me.
Which printf statement would it be if i'm using Kevins nav code?
Closed Thread


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
How to program Hall Effect sensors. chantilly_team Programming 1 17-02-2005 14:08
Hall Effect Sensor Example Code JJMax7 Programming 6 16-02-2005 02:38
Accelerometer and hall effect sensors brownster Programming 1 13-02-2005 13:36
Where to place Hall Effect Sensors. Moloch Electrical 10 11-02-2005 16:47
Updated Encoder Code Available Kevin Watson Programming 2 04-01-2005 01:00


All times are GMT -5. The time now is 04:42.

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