View Single Post
Old 03-02-2010, 09:27 PM   #3040 (permalink)
adamj12b
Master EcoModder
 
Join Date: Apr 2009
Location: Charlton MA, USA
Posts: 463

EVVette - '71 Chevy Corvette Coupe
Thanks: 31
Thanked 172 Times in 92 Posts
Quote:
Originally Posted by frodus View Post
Can the serial output be configured to "spit out" the controller measurements for current, voltage....etc?

Interested in being compatible with a serial based iphone interface? We want to support other controllers and products with our software.

Options right now are serial and ethernet, but canbus is forthcoming.
When the controller is started up, you send the command rtd-period #, where # is an interval setting in milliseconds.

The output string is a fixed format and it looks like :

TR=000 CR=000 CF=000 PW=000 HS=000 RT=0000 FB=00 BA=000 AH=000.0

Where you have:

TR = Controllers calculated throttle position. 0-511
CR = Controllers current reference based on throttle and other factors. 0-511
CF = Current feedback from LEM current sensor 0-511
PW = PWM duty cycle of controller 0-511
HS = Heat-sink Temp in raw ADC counts 0-1023
RT = Raw Throttle counts from the ADC 0-1023
FB = Fault Bits. Hex output with each fault and status code. Normal 00
BA = Calculated Battery amps 0-511
AH = Calculated Amp Hours consumed 0-999.9

The default output is through the serial port. 19200,8,N,1.

If you need some more info, feel free to email me directly.

-Adam
__________________
www.EVVette.com - 1971 Corvette Coupe Conversion to all Electric!
www.AdamBrunette.com - Machining, CNC, Robotics and Electronics.

You can download RTD Explorer for the Cougar controllers at www.EVVette.com
  Reply With Quote
The Following 2 Users Say Thank You to adamj12b For This Useful Post:
deodeo (03-23-2012), MPaulHolmes (03-03-2010)