Logo
June, 03, 2020

Segway Robot (Two-Wheeled Robot)

Segway Robot (Two-Wheeled Robot)

Note: Segway Robot project was done during the years 2011 – 2013 when Madi was a Master’s student.

Study on two-wheeled robots started in late 1990 in different robotic labs in different countries. The main objective is to design a balanced two-wheeled robot that has human-like abilities.
The main research challenge in these robots is the inherent instability of their dynamical system. These robots can be used as autonomous vehicles in companies, factories, or just to transport people.

Mechanical Design of Segway Robot

segway_robot-14.webp
segway_robot-15.webp

Actuator Modeling

segway_robot_actuator.webp

According to Kirchhoff’s law:

V a R i L d i d t V e = 0

Newton’s Law for the shaft of the motor:

M = τ m k f ω τ a = I R d ω d t

Thus:

[ θ ˙ ω ˙ ] = [ 0 1 0 k m k e I R R ] [ θ ω ] + [ 0 0 k m I R R 1 I R ] [ V a τ a ]
y = [ 1 0 ] [ θ ω ] + [ 0 0 ] [ V a τ a ]

Wheel Modeling

segway_robot-2.webp

Applying Newton’s law in the x-direction and around wheel axis:

F x = M a
M w x ¨ = H f R H R
M a = I α
I w θ ¨ = C R H f R r

Chassis Modeling

segway_robot-7.webp

Applying Newton’s laws to the chassis’s free diagram:

I p θ ¨ p 2 k m k e R r x ˙ + 2 k m R V a + M p g s i n ( θ p ) + M p 2 θ ¨ p = M p x ¨ c o s ( θ p )
2 ( M w + I w r 2 ) x ¨ = 2 k m k e R r 2 x ˙ + 2 k m R r V a M p x ¨ M p θ ¨ p c o s ( θ p ) + M p θ p ¨ 2 s i n ( θ p )

Linearizing the above nonlinear equations, the state equations of the system are as follows:

[ x ˙ x ¨ ϕ ˙ ϕ ¨ ] = [ 0 1 0 0 0 2 k m k e ( M p r I p M p 2 ) R r 2 α M p 2 g 2 α 0 0 0 0 1 0 2 k m k e ( r β M p ) R r 2 α M p g β α 0 ] [ x x ˙ ϕ ϕ ˙ ] + [ 0 2 k m ( M p r + I p + M p 2 ) R r α 0 2 k m ( M p r β ) R r α ] V a

Segway Robot Electronics

Motor specifications

EMG30, DC motor with gearbox and encoder, 170 rpm speed, 1.5 kg/cm torque. Motor driver is L298 IC.

segway_robot-11.webp

Sensor Specifications

GP2D12 distance measuring sensor, 10-80 cm range, 5(v) power supply, voltage output

segway_robot-12.webp

Designed Segway Robot Circuit in Proteus

segway_robot-13.webp

Built Segway Robot

segway_robot.webp
segway_robot-16.webp