Go to Post The question is like asking "Is it better to drive by looking at a map the whole time or by remembering where you want to go and watching the road instead?" - lukevanoort [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-01-2008, 20:39
Semicolon's Avatar
Semicolon Semicolon is offline
Registered User
#0399
 
Join Date: Feb 2005
Location: California
Posts: 21
Semicolon will become famous soon enough
Gear Tooth Sensor Question

Hey there! We want to test the gear tooth sensor, but manufacturing is still messing with the gears. Can we just wave a steel washer back and forth in front of the magnet sensor? It didn't seem to work when I did it.

In other words, can we test the gear tooth sensor without a gear?


Also... we are having problems. We have downloaded the gyro code from kevin's website, and the gyroscope works just fine provided you twist it really fast. We are trying to combine the encoder code with the gyro code, but there is a lot more to it than just moving the .c and .h files. What should I do?
__________________
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Stay with me here...

Everyone knows that Time = Money and Knowledge is power right? It is also known that Power = Work / Time. So then we substitue Power and time so Knowledge = Work / Money. Then we solve for money and get that Money = Work / Knowledge. So, As Knowledge approaches 0, the more money is made regardless of how much work is done.

Now we know that the less you know the more money you make, even with close to no work!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  #2   Spotlight this post!  
Unread 18-01-2008, 15:21
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Gear Tooth Sensor Question

The gear tooth sensor just reacts to ferous metal passing in front of it. An aluminum washer will not work. The pulse width of the output is 45 microseconds, so if you are looking at it with a meter you likely will not see a change.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #3   Spotlight this post!  
Unread 18-01-2008, 17:46
Semicolon's Avatar
Semicolon Semicolon is offline
Registered User
#0399
 
Join Date: Feb 2005
Location: California
Posts: 21
Semicolon will become famous soon enough
Re: Gear Tooth Sensor Question

If the washer was pure alluminum, why was it attracted to the sensor? As in the washer is pulled in by the magnetic force of the sensor.

My question is, how can you test the gear toth sensor without a gear?
__________________
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Stay with me here...

Everyone knows that Time = Money and Knowledge is power right? It is also known that Power = Work / Time. So then we substitue Power and time so Knowledge = Work / Money. Then we solve for money and get that Money = Work / Knowledge. So, As Knowledge approaches 0, the more money is made regardless of how much work is done.

Now we know that the less you know the more money you make, even with close to no work!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  #4   Spotlight this post!  
Unread 18-01-2008, 20:13
mneary mneary is offline
Registered User
FRC #1759
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Los Angeles
Posts: 45
mneary is an unknown quantity at this point
Send a message via AIM to mneary
Re: Gear Tooth Sensor Question

You'll probably use interrupts to watch your gear sensor, although this introduces another step into your test this would be a good way to test the sensor. Have your RC send an output to an LED (in series with maybe 220 ohms).

Aluminum? If it's attracted to the sensor it's ferrous.

I don't see many aluminum washers unless I specify them.
  #5   Spotlight this post!  
Unread 18-01-2008, 23:20
Jake M Jake M is offline
void* Jake;
FRC #1178 (DURT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Missouri
Posts: 118
Jake M has a spectacular aura aboutJake M has a spectacular aura about
Re: Gear Tooth Sensor Question

Unless you have some old-fashioned electrical equipment that are designed to sense microscopic electrical pulses, which you might have, you'll have to use the RC and a little programming skill.

You won't be able to detect anything with a basic multimeter, and you won't be able to get much by just hooking it up to a digital-io either. The only way that would yield any output would be if the signal pulse just happened to coincide exactly with the point in the code that reads the state of the digital-io pin. Highly unlikely.

No, as Mr. Neary said, the only real way to utilize the sensor is to program it to a software interrupt, so that the RC actually halts when the sensor sends a pulse and records it. It's not really that hard, it's just that using interrupts involves hardware specific variables that you're probably not familiar with.

If you need any help in that area, ask around the programming forum. Once you set up the interrupt, all you have to do is wave something ferrous in front of the sensor and it'll trigger the interrupt.
__________________
Code:
void function(void)
 {
  function();
 }
  #6   Spotlight this post!  
Unread 19-01-2008, 02:29
Binome's Avatar
Binome Binome is offline
Programmer/Electronics/CAD
AKA: Patrick
FRC #2273 (SHIM)
Team Role: Leadership
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Surrey,BC
Posts: 105
Binome is a glorious beacon of lightBinome is a glorious beacon of lightBinome is a glorious beacon of lightBinome is a glorious beacon of lightBinome is a glorious beacon of light
Re: Gear Tooth Sensor Question

The "easiest" way to test the GTS is if you happen to have an oscilliscope handy. Set it up and connect the GTS to the scope, and take a look.

If you don't have a scope handy, software interupts are dead simple in easyCpro.
Set up it to change the OI user display or something.
  #7   Spotlight this post!  
Unread 19-01-2008, 13:22
Jake M Jake M is offline
void* Jake;
FRC #1178 (DURT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Missouri
Posts: 118
Jake M has a spectacular aura aboutJake M has a spectacular aura about
Re: Gear Tooth Sensor Question

Quote:
Originally Posted by Binome View Post
The "easiest" way to test the GTS is if you happen to have an oscilliscope handy.
That's the word I was looking for.
__________________
Code:
void function(void)
 {
  function();
 }
  #8   Spotlight this post!  
Unread 19-01-2008, 22:54
Tim Skloss's Avatar
Tim Skloss Tim Skloss is offline
Dr. Skloss
FRC #0930
Team Role: Parent
 
Join Date: Jan 2002
Rookie Year: 2000
Location: Waukesha, WI, USA
Posts: 73
Tim Skloss is a jewel in the roughTim Skloss is a jewel in the roughTim Skloss is a jewel in the roughTim Skloss is a jewel in the rough
Re: Gear Tooth Sensor Question

[quote=Jake M;681249]

You won't be able to detect anything with a basic multimeter...QUOTE]

Actually you can use a digital voltmeter to read if your gear tooth sensor is working. When all connected and powered up:

Set the DVM to volts DC (VDC).
-connect the black lead to power ground
-check for +5V on the 5/R pad
-check for +12V on the 12/W pad
-check for 0V on the S/W pad (must be close to zero)
-if all checkout OK, then the sensor is likely good and you can go to the next step

Set the DVM to volts AC (VAC)
-connect the black lead to power ground
-connect the red lead to the S/W pad (output signal)
-when you spin a gear within 1mm of the magnetic sensor, you should see an AC voltage rise; it should fall back to zero when you stop moving the gear.
-this works because the sensor board sends out a train of pulses, one for each gear tooth, as the gear is rotated. The DVM interprets them as an AC signal and displays it.

This is a quick-and-dirty way to see if your sensor is working. The best way is to use an oscilloscope.


Set theWhen all connected up, use your DVM to read the voltage on the S (signal output) referenced to ground.
__________________
---------------
FIRST Mentor and Team Leader
C.O.R.E 2062 a NASA, GE Volunteers and Rockwell Automation FRC Team
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
Gear Tooth Sensor Zoom Programming 46 22-01-2008 08:05
Quick question regarding the gear tooth sensor... Brad Voracek Electrical 3 12-01-2007 01:07
Gear Tooth Sensor nukem Programming 9 04-02-2006 20:21
Gear Tooth Sensor Talha Electrical 1 23-01-2006 21:29
Gear Tooth Sensor Question (InsrtNameHere) Electrical 2 20-01-2006 02:19


All times are GMT -5. The time now is 21:06.

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