380 likes | 501 Views
Andy Lian (EE) Gabriel Miranda (EE) Andrew Perez (EE) Chris McManus (EE) Drew Pearson (EE) April 25, 2011. Solar Jackets Motor Control. Project Overview. Design motor control system for the Solar Jackets solar racing vehicle Continuing work from previous group Fall 2010
E N D
Andy Lian (EE) Gabriel Miranda (EE) Andrew Perez (EE) Chris McManus (EE) Drew Pearson (EE) April 25, 2011 Solar Jackets Motor Control
Project Overview • Design motor control system for the Solar Jackets solar racing vehicle • Continuing work from previous group • Fall 2010 • System responsibilities: • Electric motor operation • Central communication between vehicle subsystems
Technical Objectives • Dynamic control of air gap motor • Functional cruise control using SBC • Regenerative braking • Load testing • Communication with vehicle subsystems
Actual Design • Load testing setup conducted with motor/generator setup • Air gap control via relay system and switch • Cruise control • Throttle control
System Block Diagram • Communications • RS-485 • MPPT • Battery Management • RS-232 • Motor Controller • USB • HMI • Digital I/O • Window Lift Motor • Cruise Control & Air Gap Switches • A/D Converter • 10-Turn Potentiometer
SBC System Communications • Communications • RS-485 • MPPT • Battery Management • RS-232 • Motor Controller • USB • HMI • Digital I/O • Window Lift Motor • Cruise Control & Air Gap Switches • A/D Converter • 10-Turn Potentiometer
SBC System Communications • Communications • RS-485 • MPPT • Battery Management • RS-232 • Motor Controller • USB • HMI • Digital I/O • Window Lift Motor • Cruise Control & Air Gap Switches • A/D Converter • 10-Turn Potentiometer
SBC System Communications • Communications • RS-485 • MPPT • Battery Management • RS-232 • Motor Controller • USB • HMI • Digital I/O • Window Lift Motor • Cruise Control & Air Gap Switches • A/D Converter • 10-Turn Potentiometer
SBC System Communications • Communications • RS-485 • MPPT • Battery Management • RS-232 • Motor Controller • USB • HMI • Digital I/O • Window Lift Motor • Cruise Control & Air Gap Switches • A/D Converter • 10-Turn Potentiometer
SBC System Communications • Communications • RS-485 • MPPT • Battery Management • RS-232 • Motor Controller • USB • HMI • Digital I/O • Window Lift Motor • Cruise Control & Air Gap Switches • A/D Converter • 10-Turn Potentiometer
SBC User Communications • Ethernet • Telnet • Login • FTP • File Transfer • Default IP Config • 192.168.0.50 • 255.255.255.0 • 192.168.0.255
SBC Programs • motord • Motor control daemon • Handles state variable generation, cruise control, air gap control, & log file generation • mcon • Allows discrete user control of motor controller • mmon • Allows monitoring of state variables through terminal • capture • Continuously captures state variable data and saves it to specified CSV file
motord • Features • Runs on startup • Serial timeout and recovery • Log file generation • Cruise control • Air gap control • State variable generation as separate file accessible by other programs • RS-485 communication is handled separately by a stand alone program still under development • Pavel has been heading up this effort • These programs communicate using the state variable file
mcon • Features • Discrete user control • Serial line flushing • Verbose debug mode • Directly monitor message and response registers
mmon • Features • Continuously monitors state variables • Displays on terminal • Non-intrusive • Simple
capture • Features • Continuously monitors state variables • Stores data in CSV file • Easy import into Excel • Example program call • capture /var/capture.csv
Controller Mode Issue Serial • Controller prevents change from serial to discrete or vice-versa while coasting • Solution: • Keep controller in serial mode • Use SBC to read controller values Discrete
Air Gap Adjustment • FIRST Robotics Window Lift Motor • Custom Mounting Gear
Air Gap Motor Control • Currently only one speed, fast • Possibility of a slow speed • Add extra relay to turn a resistor on/off • Gives option of both a fast and a slow speed • Add resistor to existing circuit • One speed, slow • Need to ensure torque is adequate • Actual motor operating speed to be verified
Air Gap Control • Relay controlled • Directional switch on control box sends signal to SBC • SBC controls relays Air Gap Adjustment Switch
Air Gap Control Circuit • Input 12V
Air Gap Control Circuit • Input 12V • SBC Controls
Air Gap Control Circuit • Input 12V • SBC Controls • On/Off Relay
Air Gap Control Circuit • Input 12V • SBC Controls • On/Off Relay • Forward/ Reverse Relay
Air Gap Control Circuit • Input 12V • SBC Controls • On/Off Relay • Forward/ Reverse Relay • Output to Motor
Determining Air Gap Position • 10 Turn potentiometer • In-line with air gap screw • Measure voltage on wiper to determine air gap’s position
Load Testing • Motor-generator setup with resistor box • Provided variable loading to verify: • General motor functionality • Cruise control capability • Control in throttle mode
Diagram of Load Testing– Motor Setup • Motor control setup
Diagram of Load Testing– Generator • Generator • Added to provide load for motor • Connected to motor via flange
Diagram of Load Testing– Resistor Box • Resistor Box • Connected to generator • Decrease resistance to increase load on motor • Allowed simulation of drive cycles
Was Load Testing Successful? • Normal operation of motor under variable load was successful • Operation of cruise control under variable load was effectively verified • Throttle control mode was tested and debugged • Data was gathered and various load profiles were created
Constant Torque, Variable Load • Phase current remains constant • Proportional to torque • As load increases speed decreases
Constant Speed, Variable Load • Phase current varies • As load changes speed remains constant • In cruise control
Future Work • Use of pot to judge closeness to air gap extremes (ADC) • Testing of air gap adjustment system after mounting onto gear • Communication with other subsystems • Test refurbished motor • Mounting motor onto vehicle
Discussion of Demo • Motor functionality • Cruise (speed) control • Manual (throttle) control • Cruise control • Maintain set speed under variable load • Disengages when braking • Air gap adjustment via SBC • Event logging