Thread: Current Sensor
View Single Post
  #2   Spotlight this post!  
Unread 08-02-2004, 22:05
WillyC's Avatar
WillyC WillyC is offline
"handy"
#1347
Team Role: Engineer
 
Join Date: Jan 2004
Location: Ottawa, Canada
Posts: 29
WillyC is on a distinguished road
Re: Current Sensor

Quote:
Originally Posted by HHSJosh
Does anyone have anything on programming the code for the current sensor. All I really need to know is what type of input the sensor is, what type of value it returns, and the range of the value (and perhaps that value's meaning)
Look here at the current sensor document from the usfirst.org website.

Wire the sensor up to a PWM cable and plug it into one of the analog inputs on the FRC.

The current sensor gives an analog output voltage between 0 and 5 volts. The output voltage corresponds linearly to the current measured, with 0 volts = -75 amps, 2.5 volts = 0 amps, and 5 volts = 75 amps. Look at the graphs in the documentation I've attached for more info on the voltage vs. current characteristics. Use your program to read the analog voltage, then calculate the corresponding current using these characteristics (we just use a linear y = mx+b calculation).

If you need help getting your software to read the analog value, look at the 2004 Programming Reference Guide available here.

Hope this helps! Good luck, and let me know if you need any more help.