View Single Post
  #1   Spotlight this post!  
Unread 31-01-2009, 23:19
IceStorm IceStorm is offline
Mentor FRC 5046, FTC 8688
AKA: Chad
FRC #5046 (Jacked Up Jackets)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 134
IceStorm is a glorious beacon of lightIceStorm is a glorious beacon of lightIceStorm is a glorious beacon of lightIceStorm is a glorious beacon of lightIceStorm is a glorious beacon of light
Send a message via AIM to IceStorm Send a message via Yahoo to IceStorm
analog input help

we have a very unique sensor that we are trying to encorporate into our design. it uses an analog channel and outputs a voltage ranging from 0 - 5 volts. when hooked to a motor in generates a sine wave with the teeth of the sine either rising or falling depending on which way the motor is spinning and the space of the pulse varries with the speed of the motor. we are hoping to use this as an encoder from our drive motors but need to create a bit of code to count the number of pulses, time between pulses, and if they are an increasing or decreasing pulse

has anyone else done anything similar to this that would be willing to provide some sample code or even able to think of any functions within labview/frc examples that would help with this.

thanks in advance.
Reply With Quote