https://erika.tuxfamily.org/wiki/index.php?title=Amazing_Ball_Control_System:_An_application_with_the_FLEX_FULL_Motion_board_and_the_Scilab/Scicos_code_generator&feed=atom&action=historyAmazing Ball Control System: An application with the FLEX FULL Motion board and the Scilab/Scicos code generator - Revision history2024-03-28T22:46:46ZRevision history for this page on the wikiMediaWiki 1.16.4https://erika.tuxfamily.org/wiki/index.php?title=Amazing_Ball_Control_System:_An_application_with_the_FLEX_FULL_Motion_board_and_the_Scilab/Scicos_code_generator&diff=4376&oldid=prevErikadds at 13:49, 24 January 20122012-01-24T13:49:54Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 13:49, 24 January 2012</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 81:</td>
<td colspan="2" class="diff-lineno">Line 81:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>::::::: Figure 10 - MPLAB IDE: Target released from reset</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>::::::: Figure 10 - MPLAB IDE: Target released from reset</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[image:<del class="diffchange diffchange-inline">calibration</del>.png]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[image:<ins class="diffchange diffchange-inline">scicoslab10</ins>.png]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>::::::: Figure 11 – Touch panel calibration</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>::::::: Figure 11 – Touch panel calibration</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[image:<del class="diffchange diffchange-inline">ctrl_results</del>.png]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[image:<ins class="diffchange diffchange-inline">scicoslab11</ins>.png]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>::::::: Figure 12 – Control result</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>::::::: Figure 12 – Control result</div></td></tr>
</table>Erikaddshttps://erika.tuxfamily.org/wiki/index.php?title=Amazing_Ball_Control_System:_An_application_with_the_FLEX_FULL_Motion_board_and_the_Scilab/Scicos_code_generator&diff=1887&oldid=prevErikadds at 10:58, 11 January 20102010-01-11T10:58:50Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 10:58, 11 January 2010</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 52:</td>
<td colspan="2" class="diff-lineno">Line 52:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>: command.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>: command.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>: Note2: Download the FLEX USB drivers for Windows and the PIC18 firmware at: </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>: Note2: Download the FLEX USB drivers for Windows and the PIC18 firmware at: </div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>: <del class="diffchange diffchange-inline">http://www.evidence.eu.com/download/USB_DEMO_wiki.zip </del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>: <ins class="diffchange diffchange-inline">[[FLEX usb data communication using Scilab and Scicos]] </ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[image:usb_recognition.png]] </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[image:usb_recognition.png]] </div></td></tr>
</table>Erikaddshttps://erika.tuxfamily.org/wiki/index.php?title=Amazing_Ball_Control_System:_An_application_with_the_FLEX_FULL_Motion_board_and_the_Scilab/Scicos_code_generator&diff=1804&oldid=prevWikiSysop: Recovery from data loss [all of the changes done between 2009Oct2 and 2009Nov2 are recovered this way and will have incorrect history]2009-12-26T20:01:23Z<p>Recovery from data loss [all of the changes done between 2009Oct2 and 2009Nov2 are recovered this way and will have incorrect history]</p>
<p><b>New page</b></p><div>= Amazing Ball Control Application =<br />
<br />
'''AMAZING BALL: An example of PID control and USB-UDP communication with the FLEX Motion Daughter Board'''<br />
<br /><br /><br />
<br />
{| class="wikitable"<br />
<br />
Step 1:<br />
* Open Scilab 4.1.2, the Scicos-FLEX pack is recognized by Scilab (refer Fig. 1).<br />
: Change the working directory to “C:\Programmi\scilab-4.1.2\contrib\dspic”.<br />
: Type exec builder.sce to build any application of the pack.<br />
<br />
[[image:scilab.png]]<br />
::::::: Figure 1 – Scilab<br />
<br />
Step 2:<br />
* Open file “pid_ctrl_codegen_usbudp_tuning_square_circle.cos” (refer Fig. 2) in <br />
: Scicos.<br />
: The .cos file contains the schematic for the generation (with SCICOS) of the FLEX <br />
: FULL board program.<br />
: This application is for tuning coefficients of the PID control for improving <br />
: system performance. <br />
<br />
[[image:flexside_schematic.png]]<br />
::::::: Figure 2 – Control system schematic<br />
<br />
Step 3:<br />
* Click menu CodeGen and select FlexCodeGen.<br />
: Click on the super-block, the Embedded Code Generator's block property settings <br />
: window will appear (refer Fig. 3)<br />
: Provide path name and then press OK for code generation (refer Fig. 4)<br />
<br />
[[image:generator_window.png]] <br />
::::::: Figure 3 – Embedded Code Generator window<br />
<br />
[[image:generator_results.png]] <br />
::::::: Figure 4 – Code Generator results<br />
<br />
Step 4:<br />
* Open MPLAB IDE and import “pic30.cof” file created by the code generator in Step 3.<br />
: Connect the FLEX003 (FLEX Full Base Board) to ICD for programming the dsPic <br />
:(refer Fig. 5). The board is programmed and set in reset mode.<br />
<br />
[[image:cof_ide1.png]] <br />
[[image:cof_ide2.png]] <br />
::::::: Figure 5 - MPLAB IDE: COF file importing and target programming<br />
<br />
Step 5:<br />
* Check the USB device recognition in the peripherals window (refer Fig. 6) and <br />
: execute the program app_flex_scicos.exe (refer Fig. 7)<br />
: Note1: The program needs CygWin Win32 usb library and is compiled using make <br />
: command.<br />
: Note2: Download the FLEX USB drivers for Windows and the PIC18 firmware at: <br />
: http://www.evidence.eu.com/download/USB_DEMO_wiki.zip <br />
<br />
[[image:usb_recognition.png]] <br />
::::::: Figure 6 – Check the USB device recognition<br />
<br />
[[image:compilation_gateway.png]] <br />
::::::: Figure 7 – Compilation and start of the program<br />
<br />
Step 6:<br />
* Open the PC-side file “pc_pid_tuning.cos” in Scicos;<br />
: The .cos file contains the schematic for the PC-side (refer Fig. 8). <br />
: The almost-real-time simulation runs in SCICOS environment. The application <br />
: shows the received USB data on the multiple scope and sends other data to the <br />
: FLEX FULL board (refer Fig. 9). <br />
<br />
[[image:pcside_schematic.png]] <br />
::::::: Figure 8 – PC-side schematic<br />
<br />
[[image:pc_side_tuner.png]] <br />
::::::: Figure 9 – PC-side application (PID tuner)<br />
<br />
Step 7:<br />
* Release the reset to run the demo (refer Fig.10);<br />
: Initially the application calibrates the touch screen (refer Fig. 11), followed <br />
: by rest of the demo (refer Fig.12). <br />
<br />
[[image:released_reset.png]]<br />
::::::: Figure 10 - MPLAB IDE: Target released from reset<br />
<br />
[[image:calibration.png]]<br />
::::::: Figure 11 – Touch panel calibration<br />
<br />
[[image:ctrl_results.png]]<br />
::::::: Figure 12 – Control result</div>WikiSysop