Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Encoder code with hall effect sensors help (http://www.chiefdelphi.com/forums/showthread.php?t=34893)

brownster 18-02-2005 10:12

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!

Moloch 18-02-2005 10:19

Re: Encoder code with hall effect sensors help
 
You are using the hall-effects AND encoders? Why?

brownster 18-02-2005 11:41

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 :confused: :confused:

Alan Anderson 18-02-2005 11:47

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 :confused: :confused:

Have you looked at the actual signal coming from the sensor? It might not be working correctly. What happens if you swap the sensors?

brownster 18-02-2005 13:09

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

Alan Anderson 18-02-2005 13:17

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.

brownster 18-02-2005 14:01

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! :)

devicenull 18-02-2005 20:43

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.

brownster 18-02-2005 22:44

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!!!!!

devicenull 19-02-2005 00:01

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.

brownster 19-02-2005 09:23

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?


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

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