|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
Re: Encoder code with hall effect sensors help
You are using the hall-effects AND encoders? Why?
|
|
#3
|
|||
|
|||
|
Re: Encoder code with hall effect sensors help
Quote:
![]() |
|
#4
|
|||||
|
|||||
|
Re: Encoder code with hall effect sensors help
Quote:
|
|
#5
|
|||
|
|||
|
Re: Encoder code with hall effect sensors help
Quote:
|
|
#6
|
|||||
|
|||||
|
Re: Encoder code with hall effect sensors help
Quote:
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
|
|||
|
|||
|
Re: Encoder code with hall effect sensors help
Quote:
![]() |
|
#8
|
|||
|
|||
|
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
|
|||
|
|||
|
Re: Encoder code with hall effect sensors help
Quote:
|
|
#10
|
|||
|
|||
|
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
|
|||
|
|||
|
Re: Encoder code with hall effect sensors help
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |