Professional Documents
Culture Documents
2009-04-20
Lego Mindstorms Segway Project
2
Lego Mindstorms Segway Project
3
Lego Mindstorms Segway Project
4
Lego Mindstorms Segway Project
Standard
Position Mean deviation
Plots:
900
Gyro Read
800
700
Gyro RAW data
600
500
400
300
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time in ms 4
x 10
5
Lego Mindstorms Segway Project
1200
Pendulum output
Architecture limit
Real limit
1000
800
Gyro RAW data
600
400
200
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time 4
x 10
900
Gyro read
800
700
Gyro RAW data
600
500
400
300
0 500 1000 1500 2000 2500 3000 3500 4000
Time [ms]
6
Lego Mindstorms Segway Project
Summary:
2. GS has an offset – when angular velocity is zero, read of sensor is about 605
6. Ability of measuring top and down value of angular velocity is not the same
for each. Real range of negative velocity is 605, while range of positive
velocity is only 410. This causes value-cut when positive velocity crosses over
1015 value (may be seen on the enclosed plot).
File: “…/nxtway_gs/param_controller.m”
7
Lego Mindstorms Segway Project
1. PWM offset
pwm_offset=0 -> pwm_offset=2
1. LQ variables:
8
Lego Mindstorms Segway Project
Removed
Added
2. Task_init
9
Lego Mindstorms Segway Project
3. Task_ts1
Removed
Created/Inserted
10
Lego Mindstorms Segway Project
11
Lego Mindstorms Segway Project
7. Task sampling
ts1 = 0.004 [s]
ts2 = 0.02 [s]
ts3 = 0.1 [s]
ts4 = 0.01 [s]
12
Lego Mindstorms Segway Project
Embedded Coder
Ecrobot NXT
13