Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
UBI
Chapter 15
Advanced Laboratories
RoboSapien powered by MSP430
Pedro Dinis Gaspar, António Espírito Santo, Bruno Ribeiro, Humberto Santos
University of Beira Interior, Electromechanical Engineering Department
www.msp430.ubi.pt
Copyright 2009 Texas Instruments
>> Contents All Rights Reserved
1
www.msp430.ubi.pt
Contents
UBI
RoboSapien powered by MSP430
What is RoboSapien?
C/C++ programming.
in http://www.robosapien1.com/resources/official-mod-guide/
Copyright 2009 Texas Instruments
>> Contents All Rights Reserved
7
www.msp430.ubi.pt
What is RoboSapien? (4/7)
UBI
(Sven Behnke, Jurgen Muller, and Michael Schreib, „Playing Soccer with RoboSapien”, Proceedings of The 9th RoboCup International
Symposium, Osaka, Japan, July 2005)
• (3) Similar to (1). The trunk motor tilts the body to left;
Shoulder motors:
Elbow motors:
Procedure:
• List the active/inactive time of each motor:
o Single movement (single motor);
• Examples:
(a) Output signal vs. motor input signal. (b) Left elbow movement from the inside
to outside and vice-versa.
Copyright 2009 Texas Instruments
>> Contents All Rights Reserved
31
www.msp430.ubi.pt
How RoboSapien works? (18/21)
Step 2: Actuators, sensors and signal conditioning analysis
UBI
E. Acquisition and analysis of digital port signals:
Look up Off
Confused Wink
Listen
Microcontroller: MSP430F149;
Resources:
Motors: P6.0 – P6.7 , P2.0 – P2.5;
LEDs: P4.0 – P4.7;
IR: P1.1;
Switches: P1.2 – P1.3;
P62 61
P61 60
P60 59
RST/NMI
TCK 57
TMS 56
TDI 55
TDO/TDI
XT2IN53
XT2OUT
P6
+3.3 LED8
C4 C3 8
LED7
64
63
62
58
54
52
51
50
49
10uF 100n 7
LED6
6
LED5
5
1 48 LED4
P5.7
P5.6
P5.5
TCK
DVcc1 P5.4 4
TMS
DVss
AVss
AVcc
P63 2 47 LED3
XT2IN
P6.3/A3 P5.3 3
P6.2/A2
P6.1/A1
P6.0/A0
P64 3 46 LED2
XT2OUT
TDO/TDI
RST/NMI
P6.4/A4 P5.2/SOMI1 2
TDI/TCLK
P65 4 45 LED1
C1 P6.5/A5 P5.1/SIMO1 1
12pF P66 5 44
P6.6/A6 P5.0/STE1
P67 6 43 P47 LED
P6.7/A7 P4.7/TB7
7 uP1 42 P46
VREF+ P4.6/TB6
8 MSP430F149 41 P45
XIN P4.5/TB5
9 40 P44 P4
2
XOUT P4.4/TB4
Y1 10 39 P43 P67
VeREF+ P4.3/TB3 8
85SMX 11 38 P42 P66
VREF-/VeREF- P4.2/TB2 7
12 37 P41 P65
P1.0/TACLK P4.1/TB1 6
P11/IR
13 36 P40 P64
P1.1/TA0 P4.0/TB0 5
P1214 35 P63
3
P1.2/TA1 P3.7 4
P1315 34 P62
P1.3/TA2 P3.6 3
P1416 33 P61
C2 P1.4/SMCLK P3.5 2
12pF P60
1
Motores1
P1.5
P1.6
P1.7
P2.0/ACLK
P2.1/TAINCLK
P2.2/CAOUT/TA0
P2.3/CA0/TA1
P2.4/CA1/TA2
P2.5/Rosc
P2.6/ADC12CLK
P2.7/TA0
P3.0/STE0
P3.1/SIMO0
P3.2/SOMI0
P3.3
P3.4
P3
P2 +3.3 P25
6
P20
P22
P23
P25
P21
P24
P30
P31
P32
P33
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
P24
2 C5 C6 5
P23
1 100n 10uF 4
LED7 P22
3
LED3 LED5 P21
2
LED1 P20
R9 Q7 1
P46
P42 R5 Q3 P44 R7 Q5 BC847 Motores 2
P40 R3 Q1 BC847 BC847
4K7
BC847
4K7 4K7
4K7
LED8
LED2 LED4 LED6
(*) These connections were not used because the code has
been developed to take into account the shoulders and elbows
motors active period time, to obtain the end positions.
Copyright 2009 Texas Instruments
>> Contents All Rights Reserved
40
www.msp430.ubi.pt
MSP430 Integration (6/9)
UBI
Examples:
MSP430 mounted on the back of the RoboSapien PCB;
Connections to the original PCB assembled in the RS.
(a) Connections to the RoboSapien PCB. (b) New PCB with the MSP430.
Project files:
Overview:
Resources:
Data Movement (1) Data Movement (2) Data Movement (3) Data Movement (n)
ActPtr[]
Access table
n= Max RS accions
B. Logic motors:
o Stop.
B. Logic motors:
Timers
[0] [1] [2] [3] [4] [13] [14]
Motor 1
M1+ [0] 2643 425 0 0 0 0 0 1 0 Example: M1 = state 0
M1- [1] 525 531 319 1693 0 0 0 1 1
[2] 0 0 0 0 0 0 0 0 0
If M1+ = High & M1- = Low
Motors
[12] 0 0 0 0 0 0 0 0 0
then, M1 runs counter
[13] 0 0 0 0 0 0 0 0 0 clockwise
Motor State Motor
Motor Initial Value State
4
Clockwise
1 3 5
Cclockwise
0 2
C. Software architecture:
D. Background task:
D. System task:
E. IR command task:
Examples:
Wireless communications instead of IR remote control;
Voice commands (use other devices in the MSP430 family);
Integrate sensors (optical, acoustics and others...);
Digital camera to provide more autonomy for the RoboSapien.