Professional Documents
Culture Documents
Of ROBOTICS
Authors:
October, 2005
TABLE OF CONTENT
TABLE OF CONTENT
1. 2. 3.
ABOUT THIS DOCUMENTATION ....................................................................1 ADDA INTERFACE CARD HARDWARE DESCRIPTION .....................................2 SIMULINK BLOCKS FOR ADDA INTERFACE CARD..........................................4 ADDA ADDA ADDA ADDA analog input 1...................................................................................... analog input 2...................................................................................... analog output ...................................................................................... DSP-2 Interface block ........................................................................... 6 7 8 9
4. 5.
DEMO EXAMPLES FOR DSP-2 ADDA INTERFACE CARD ................................10 APPENDIX ..................................................................................................13
4.1. DEMO EXAMPLE OF DSP-2 LEARNING MODULE AND ADDA INTERFACE CARD .........................10
TABLE OF FIGURES
ii
TABLE OF FIGURES
Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure Figure
1: photo of ADDA interface card ....................................................................... 2 2: The circuit of the ADDA interface card............................................................ 2 3: photo of DSP-2 learning module, ADDA interface card and custom breadboard .... 3 4: ADDA interface card Simulink library ............................................................. 4 5: ADDA interface card blocks in Simulink Library Browser ................................... 5 6: GUI of ADDA DSP-2 Interface block ............................................................... 6 7: GUI of ADDA DSP-2 Interface block ............................................................... 7 8: GUI of ADDA DSP-2 Interface block ............................................................... 8 9: GUI of ADDA DSP-2 Interface block ............................................................... 9 10: ADDA DSP-2 Interface block algorithm ......................................................... 9 11: DSP-2 ADDA interface card demos .............................................................10 12: Simulink block scheme of ADDA simple demo example ..................................11 13: demo example in DSP Terminal..................................................................12 14: DSP-2 learning module connector...............................................................13
The circuit of the ADDA interface card is shown in Figure 2. It consists of three voltage followers (buffers) and 2 resistor dividers.
Detailed description of DSP-2 connector can be found on page 13. The D/A output voltage range is between 0 and 8 V therefore the AO output voltage range is the same. The A/D 1 and A/D 2 input voltage range is between 2 V. The allowed input voltage range for AI1 and AI2 is between +/- 12 V. The two resistor dividers reduce the input voltage range of AI's to the range of A/D inputs.
Figure 3: photo of DSP-2 learning module, ADDA interface card and custom breadboard
Parameters:
Sample time Sample time must be an integer multiple of the base sample time (Fixed sample time parameter).
Parameters:
Sample time Sample time must be an integer multiple of the base sample time (Fixed sample time parameter).
Parameters:
Sample time Sample time must be an integer multiple of the base sample time (Fixed sample time parameter).
Parameters:
Sample time Sample time must be an integer multiple of the base sample time (Fixed sample time parameter).
10
4.1. Demo example of DSP-2 learning module and ADDA interface card
After the ADDA simple example is selected in ADDA interface card folder (Figure 11), Simulink model shown in Figure 12 will appear.
11
In the left above corner of the Simulink block scheme Edit Parameters, Update Parameters, Build and HELP buttons exist. In order to run demo on DSP-2 controller follow the steps: double click Update Parameters button and then double click Build button.
Double click on Build block starts the code generation process for the DSP-2 controller from Simulink block scheme. When the code generation process is completed, DSP Terminal program is automatically invoked and generated code is downloaded to the DSP-2 learning module. On the ADDA interface card place a wire connection between AO port and AI1 port. In DSP Terminal select PG_OUT and AI1. After this, selected signals will appear in Terminal graph (Figure 13). Parameter inspector window (Figure 13) enables on-the-fly parameter tuning. In this demo example, pulse generator amplitude, pulse generator frequency and both gains (AD1_GAIN, AD2_GAIN) are changeable in online mode (meanwhile generated code is executing on DSP-2 controller). More informations about DSP Terminal can be found in DSP Terminal Users Manual: http://www.ro.feri.uni-mb.si/projekti/dsp2/documentation.htm
Now you can place custom plant between AO, AI1 and AI2 ports.
12
CHAPTER 5: APPENDIX
13
5. Appendix
DSP-2 learning module connector