BallBot Brian Kosoris Jeroen Waning Bahati Gitego Yuriy Psarev 10/11/2011
System Overview Mechanical Structure Base Vertical structure Landing gear Electronics Sensors Actuators/Motors Control System State-space variable model MatLab/Simulink code Synthesis of 3D motion
Mechanical Design (CAD) Base Critical mechanism Mechanical function impacts success Aluminum vs. steel? Feasibility Cost Workability Aesthetics Strength/rigidity vs. weight Two perpendicular pairs of motors 45’s) Built in damper for vertical disturbances
Mechanical Design (CAD) Bottom View Top View
Mechanical Design Vertical structure Simple aluminum frame Multiple modular-plateau design Houses main CPU, IMU board, power supply, etc. Modular/adjustable for optimization Facilitates testing phase Adjustable center of mass Serves as a three-dimensional inverted pendulum Bolt-able design for quick adjustments
Mechanical Design (CAD) Landing gear Supplemental ‘fail-safe’ design Protects investment Backup if minimum success criteria is not met i.e. BallBot topples over Simple & effective Worm-screw actuator design Encapsulates ball when BallBot is balanced
Electrical Components New components Micro ITX gigabyte board High-level CPU to run MatLab Processes integer data from IMU board Runs control algorithm to digest sensor data Provides output to motor controllers 100% onboard control for self-sufficiency A321 batteries x 30 for onboard power supply Provides V (3-5A) to motors Provides 5V for digital logic (IMU board and CPU)
Micro ITX onboard Computer 1.6GHz CPU 4GB DDR3 Windows 7 MatLab 2010 Rotational matrix manipulation State-space matrix processing
IMU Board Arduino ATmega2560 Microcontroller/microprocessor ADXL345 Accelerometer Three-axis acceleration measurement unit IDG500 Gyroscope Two-axis angular velocity measurement unit Provides real-time feedback of inertial orientation/rotation in 3D space
IMU Board
Sensor Data Processing IMU data will be relayed to onboard computer MatLab will process complex state-space equations and rotational matrices Control system theory is used to model the system for analysis of stability Robotics synthesis Rotational matrices synthesize the robots orientation and angular velocity MatLab will process the matrices to provide feedback to the Arduino which sends signals to the motor controllers
Electronics Overview
Controller Overview State-space subsystem block diagram
Controller Simulation Subsystem Block-diagram representation of inside subsystem
Controller Simulation State-space modeling x’ = Ax + Bu; y = Cx + Du MatLab A = B = 0001 C = D = 0
State-space model (cont.) controllability_matrix = Controllable_Rank_is = 4 observability_matrix =
State-space model (cont.) Obsevabile_Rank_is = 4 Poles = Kd = pole_placement = L = K_f = K_i =
State-space model (cont.) K_LQR = new_A_by_K_gain =
Robot Motion Synthesis BallBot’s orientation/angular motion can be represented with rotational matrices Euler angles indicate roll, pitch, and yaw of the BallBot due to disturbances (gravity, wind, push) Simplifies balancing/stability algorithm
Robot Motion Synthesis Frame 0 = 0 0 X 0 Y 0 Z 0 Frame 1 = 0 1 X 1 Y 1 Z 1 Position vector 0 = 3x1 matrix = [0 0 1] T Position vector 1 = [ ] = 3x1 matrix The angular velocities ω ψ, ω ϕ, ω θ represent the data provided by the IMU board and are integrated to find position
Robot Motion Synthesis The rotational matrix is very complex in terms of possible orientation synthesis The axes of frame 0 and frame 1 are compared with the dot product of the components of position vector 0 and position vector 1
Robot Motion Synthesis All possible orientations: C 1 = Cos(ψ), C 2 = Cos( ϕ ), C 3 = Cos(θ) S 1 = Sin(ψ), S 2 = Sin( ϕ ), S 3 = Sin(θ)
Design Requirements – Major milestones In this phase of the design: The mechanical structure must be completed by October 20 th, 2011 Electronics can then be integrated into assembly (October 27 th ) Arduino and MatLab communication algorithm (November 2 nd ) Begin preliminary testing (October 27 th – November 10 th ) Finalize complete algorithm (November 16 th ) Optimization, aesthetics, minor revisions (November 27 th )
Gantt Chart
Trade Study – IMU Board
Trade Study – Accelerometer Filter ADXL345 Capacitor bandwidth filter – band-limiting filter Noise reduction – (dispose of anomalous data) Anti-aliasing – (prevent data loss due to resolution change) X & Y max bandwidth – 1650Hz Z bandwidth – 550Hz Minimum capacitance = μF
Trade Study – Accelerometer Filter Bandwidth filter - capacitor selection Capacitance decides bandwidth Bandwidth indicates data resolution Table 1 – Bandwidth vs. Capacitance Cx, Cy, Cz pins on ADXL345 Low-pass filtering Noise reduction 3-dB bandwidth equation F−3 dB = 1/(2π(32 kΩ) × C(X, Y, Z))
Trade Study – Accelerometer Filter F−3 dB = 1/(2π(32 kΩ) × C(X, Y, Z)) Approximates to F–3 dB = 5 μF/C(X, Y, Z) 1650 Hz = 5 μF/ μF Cx = Cy = μF 550 Hz = 5 μF/0.0091μF Cz = μF These capacitor values will provide the highest data resolution for 1650 readings per second for X and Y acceleration Detect smallest possible acceleration in planar motion 550 readings for Z acceleration The Z axis will thus represent the vertical axis of the BallBot from the center of the ball to the top of the BallBot Then Z-axis data does not require high resolution
Trade Study – Accelerometer Filter Rms noise = Noise Density x sqrt(BW) Noise is thus a factor of bandwidth Table 2 – Noise Density
Trade Study – Accelerometer Operating Voltage The ADXL345 output is ratio-metric The output sensitivity (or scale factor) varies proportionally to the supply voltage. VS = 3.6 V - output sensitivity = 360 mV/g VS = 2 V - output sensitivity =195 mV/g. Arduino’s 3v3 pin supplies 3.3V Sensitivity thus approximates to 320 mV/g to 340 mV/g (or 330 mV/g average) Sensitivity estimated to be adequate for BallBot Arduino’s built-in serial monitor read consistent data Only real-time testing will confirm
Trade Study – Accelerometer Operating Voltage X-Y-Z sensitivity (voltage/gravity) Data Sheet
References Arduino – microcontroller (libraries/tutorials) SparkFun – sensors/electronics (datasheets) MatLab resource (control system toolbox, etc.) http:// SolidWorks helpfile works/r_welcome_sw_online_help.htmhttp://help.solidworks.com/2012/English/SolidWorks/sld works/r_welcome_sw_online_help.htm Robot Modeling and Control (textbook) Control Systems Engineering (textbook)
Title Contents