32
VI DUONG ARSENE FOKA NADEEM QANDEEL BICYCLE AUTOPILOT

autonomus Bike Progress

Embed Size (px)

Citation preview

Page 1: autonomus Bike Progress

VI DUONG

ARSENE FOKA

NADEEM QANDEEL

BICYCLE AUTOPILOT

Page 2: autonomus Bike Progress

Advisor:Dr. Glazos

Committee:Dr. Petzold

Dr. Julstrom

Page 3: autonomus Bike Progress

CONTENTS

o BACKGROUNDo PROBLEM STATEMENTo SYSTEM REQUIREMENTSo SYSTEM LEVEL DESIGNo ACCOMPLISHMENTSo TIMELINEo BUDGETo REFERENCES

Page 4: autonomus Bike Progress

BACKGROUND

• The bicycle is to serve as a learning tool for students in the controls class.

• The bicycle helps students understand dynamic systems and their control.

• Some universities have successfully used similar bicycles for their controls class.

Page 5: autonomus Bike Progress

PROBLEM STATEMENT

This apparatus is an autonomous bicycle capable of traveling along a straight path at a constant speed on a level surface with no human intervention.

Page 6: autonomus Bike Progress

SYSTEM REQUIREMENTSThe bicycle should meet the following requirements:

• Operate at a constant speed

• Run on a flat surface without extreme weather condition

• Operated Wirelessly

• Graphical user interface

• Collect real time data

• Come to rest at stand still position with no assistance

Page 7: autonomus Bike Progress

SYSTEM LEVEL DESIGN

Page 8: autonomus Bike Progress

SYSTEM LEVEL DESIGN (CONTINUED) • Bicycle

• Standard mountain bicycle

• Battery• 24V battery

• Maximum discharge current ≥ 8A

• Maximum continuous current ≥ 4A

• Motors• The steering motor is MMP TM40-285H-24V GP42-051 gear motor. Provides 18 in-lbs rated continuous torque, runs at

24V with rated continuous current 0.47A.

• The drive motor MMP D22-376D-24V GRA40-008 provides 12 in-lbs (0.9N-m), runs at 24V, with output speed of 575 rpm.

Page 9: autonomus Bike Progress

SYSTEM LEVEL DESIGN (CONTINUED)• Sensors

• Potentiometer

• GL300

• Resolution of 0.10

• Inclinometer

• SCA121T-D07

• Dual axis sensor

• Operates on 15Vdc with an offset of 2.5V

• Microcontroller• Arduino Yun which has an ATMEGA32U4 and Atheros AR9331 processors

• Safety Devices• Retractable training wheels

• Remote emergency switch

Page 10: autonomus Bike Progress

ACCOMPLISHMENTS

• Control System Design• Power System Design• User Interface Design

Page 11: autonomus Bike Progress

STATE SPACE MODEL

CONTROL SYSTEM DESIGNwhere A(t) is called the state matrix,

B(t) the input matrix, C(t) the output matrix, and D(t) the direct transmission matrix.

A linear fourth-order model first derived by Whipple[2]

Page 12: autonomus Bike Progress

Uncontrolled system obtained from Matlab Uncontrolled system root-locus result obtained from Astrom article

Page 13: autonomus Bike Progress

LQR control block diagram.

QUADRATIC OPTIMAL REGULATOR SYSTEM

�̇�=𝐴𝑥+𝐵𝑢determines the matrix K of the optimal control vector

u(t)

Page 14: autonomus Bike Progress

SIMULINK MODEL

Page 15: autonomus Bike Progress

Roll angle with disturbance Roll rate with disturbance

System response with external disturbances (wind, pushing,etc…)

Page 16: autonomus Bike Progress

Steer angle with disturbance Steer rate with disturbance

Page 17: autonomus Bike Progress

POWER SYSTEM DESIGNThe data in the table is collected mostly from datasheets and derived from Ohm’s Law and P=V*I.

Parts Voltage (V) Current (A) Resistance (Ohm) Power (W)

Potentiometer 15 1.5m 10K 22.5m

Inclinometer 15 5m – 8m N/A 75m – 120m

DAC 15 10m N/A 150m

Microcontroller 5 240m for 6 pins N/A 1.2

Steer motor 24 0.47 N/A 11.28

Drive motor 24 4-8 N/A 96-192

Page 18: autonomus Bike Progress

POWER MANAGEMENT• Total power consumed by the system is approximately 156.7725Watts.

• Total current consumed by the system is 6.77A.

• Rule of thumb here is power supplied>=power consumed to prevent devices from shutting down.

• Choice is a 24V battery with a 10Ah capacity rate.

• For a full hour of operation it is expected to have 10A continuous supply and 240 Watts.

• With this battery rate we expect the bicycle to run without recharging it, for approx. hour and a half.

Page 19: autonomus Bike Progress

Diagram of devices connected to their appropriate voltages current distribution.

Page 20: autonomus Bike Progress

SIMULATION OF TWO VOLTAGE REGULATORS USED

Page 21: autonomus Bike Progress

Battery voltage variation

Page 22: autonomus Bike Progress

Adruino voltage close up

Page 23: autonomus Bike Progress

Voltage of DAC, Potentiometer, Inclinometer

Page 24: autonomus Bike Progress

Currents through Potentiometer, DAC, Inclinometer

Page 25: autonomus Bike Progress

Current through microcontroller

Page 26: autonomus Bike Progress

USER INTERFACE DESIGN

• User device • Android tablet (Samsung Tab4)

• Two Android applications are developed for the project

• The Professor Application (ProfApp)

• The Student Application (StudentApp)

• Application built using the Eclipse Android Development Tool (Eclipse ADT)

Page 27: autonomus Bike Progress

USER INTERFACE DESIGN

• WIFI Communication• Yun is configured to use on-campus WIFI Network (scsugadgets)

• Access to Yun is protected by a password created by the user during configuration.

• For any device to communicate with the Yun:

• The device and the Yun must be connected and within the range of the WIFI to which the Yun is configured

• The device must have the password to the Yun’s WIFI

• Scsugadgets vs HuskynetSecured

• WPA/WPA2 vs PEAP Authentications and Yun

Page 28: autonomus Bike Progress

TIMELINEOriginal

Task Start Date End Date

Research 8/25/2014 9/8/2014Proposal 9/9/2014 10/6/2014Shopping 10/7/2014 11/4/2014

Design & Simulation 10/12/2014 11/2/2014

Parts Testing 11/6/2014 11/10/2014

Driver Motor Control Testing 11/12/2014 11/15/2014

Steering Motor Control Testing 11/20/2014 11/23/2014

Attitude Controller Building 11/25/2014 12/5/2014

Attitude Controller Testing 12/5/2014 12/7/2014Hardware Demo 12/8/2014 12/12/2014Bluetooth Communication 1/10/2015 1/17/2015Landing Gear 1/18/2015 2/9/2015Start on Progress Report 2/6/2015 2/16/2015Assembling 2/18/2015 3/4/2015Evaluation (Final test) 3/6/2015 3/13/2015Improvements 3/15/2015 4/9/2015Final Report 3/14/2015 4/14/2015

Task Start Date Duration (Days) End Date

Research 8/25/2014 14 9/8/2014

Proposal 9/9/2014 27 10/6/2014

Shopping 10/7/2014 28 11/4/2014

Parts Testing 11/26/2014 40 1/4/2015

Build Bicycle (Assembling) 1/12/2015 21 2/2/2015

Test Bicycle 2/6/2015 30 3/9/2015

Take Data 3/10/2015 10 3/20/2015

Analyze Data 3/18/2015 10 3/28/2015

Improvements 3/30/2015 25 4/24/2015

Final Report 3/29/2015 31 5/1/2015

Revised

Page 29: autonomus Bike Progress

GANNT CHART

Research

Proposal

Shopping

Parts Testing

Build Bicycle (Assembling)

Test Bicycle

Collect Data

Analyze Data

Improvements

Final Report

8/25/2014 10/14/2014 12/3/2014 1/22/2015 3/13/2015 5/2/2015 6/21/2015

Page 30: autonomus Bike Progress

BUDGETItem Cost (Dollars)

Bicycle 110.00

Drive motor 600.00

Steering motor 200.00

Potentiometer 246.00

Inclinometer 161.56

Battery 290.00

Microcontroller 100.00

Page 31: autonomus Bike Progress

REFERENCES• [1] Astrom, K.J.; Klein, Richard E.; Lennartsson, A, "Bicycle dynamics and control: adapted bicycles for education and

research," Control Systems, IEEE, vol.25, no.4, pp.26, 47, Aug. 2005

• [2] F. J. W. Whipple. The stability of the motion of a bicycle. Quart. J. Pure Appl. Math. 30:312–348, 1899.

• [3] F. Klein and A. Sommerfeld. Über die Theorie des Kreisels. Teubner, Leipzig, 1910. Ch IX §8, Stabilität des Fahrrads, by F. Noether, pp. 863–884. (pdf+English translation).

• [4] J. P. Meijaard, Jim M. Papadopoulos, Andy Ruina, A. L. Schwab, 2007 ``Linearized dynamics equations for the balance and steer of a bicycle: a benchmark and review,'' Proceedings of the Royal Society A 463:1955-1982. doi:10.1098/rspa.2007.1857, or preprint+ESM pdf(578k).

• [5] D. E. H. Jones. The stability of the bicycle. Physics Today, 23(4):34–40, 1970. DOI:10.10631/1.3022064 (2006 DOI:10.1063/1.2364246)

• [6] “Bicycle Dynamics.” (2010, March 1). Retrieved July 9, 2014, from http://bicycle.tudelft.nl/schwab/Bicycle/index.htm

• [7] J. D. G. Kooijman, J. P. Meijaard, Jim M. Papadopoulos, Andy Ruina, and A. L. Schwab, "A bicycle can be self-stable without gyroscopic or caster effects", Science 15 April 2011: 332(6027), 339-342. [DOI:10.1126/science.1201959]

Page 32: autonomus Bike Progress