Example Code

Projeto de Controle do Lego Mindstorms Gyro Boy

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Other

  • LabVIEW Module for LEGO MINDSTORMS

Code and Documents

Attachment

Description

<HTML><HEAD></HEAD><BODY><P style="margin-bottom: .0001pt;"><SPAN style="font-size: 14.0pt; font-family: 'Arial','sans-serif';"><STRONG>Introdução</STRONG></SPAN></P><P></P><P style="margin-bottom: .0001pt;">Este é um projeto para o controle de um Lego Mindstorms GiroBoy. É um robô que se equilibra nos moldes de um pêndulo invertido mostrado na figura abaixo:</P><P></P><P style="margin-bottom: .0001pt;"><IMG alt="http://www.wired.com/wp-content/uploads/blogs/geekdad/wp-content/uploads/2013/01/GyroBoy.jpg" class="jive-image" height="203" src="http://www.wired.com/wp-content/uploads/blogs/geekdad/wp-content/uploads/2013/01/GyroBoy.jpg" style="width: 405px; height: 202.5px;" width="405" /></P><P></P><P></P><P style="margin-bottom: .0001pt;"><SPAN style="font-size: 14.0pt; font-family: 'Arial','sans-serif';"><STRONG>Descrição</STRONG></SPAN></P><P></P><P>O projeto é composto por um conjunto de VIs que controlam o Gyro Boy (instruções de montagem podem ser encontradas <A href="http://robotsquare.com/wp-content/uploads/2013/10/45544_gyroboy.pdf">aqui</A>). </P><P style="margin-bottom: .0001pt;"><SPAN style="font-size: 14pt; font-family: 'Arial','sans-serif';"><STRONG><BR /></STRONG></SPAN></P><P></P><P></P><P style="margin-bottom: .0001pt;"><SPAN style="font-size: 14.0pt; font-family: 'Arial','sans-serif';"><STRONG>Steps to Implement or Execute Code</STRONG></SPAN></P><P style="margin-bottom: .0001pt;"><SPAN style="font-size: 14.0pt; font-family: 'Arial','sans-serif';"><STRONG><BR /></STRONG></SPAN></P><OL><LI style="text-align: start;">Descompacte o arquivo em uma pasta conhecida;</LI><LI style="text-align: start;">Conecte o seu EV3 na porta USB</LI><LI style="text-align: start;">Abra o projeto Mindstorms.lvproj</LI><LI style="text-align: start;">Abra a VI Giroboy Basico (targeted).vi;</LI><LI style="text-align: start;">No menu <EM>File</EM>, selecione <EM>Target to NXT/EV3</EM>;</LI><LI style="text-align: start;">No canto inferior esquerdo, clique no botão direito do mouse em NXT/EV3 Target;</LI><LI style="text-align: start;">Selecione "Find NXT/EV3";</LI><LI style="text-align: start;">Clique em Scan;</LI><LI style="text-align: start;">Selecione o seu EV3 e clique em Connect;</LI><LI style="text-align: start;">Na barra de ferramentas, clique em <EM>Debug</EM>.</LI><LI style="text-align: start;">Após os três bips, tire cuidadosamente o suporte do GyroBoy.</LI></OL><P></P><P style="margin-bottom: .0001pt;"><SPAN style="font-size: 14.0pt; font-family: 'Arial','sans-serif';"><STRONG>Material Necessário</STRONG></SPAN></P><P><SPAN style="font-family: 'Arial','sans-serif';"><STRONG>Software</STRONG></SPAN></P><P>-LabView 2013</P><P>-NI LabVIEW Module for LEGO® MINDSTORMS®</P><P></P><P style="margin-bottom: .0001pt;"><SPAN style="font-family: 'Arial','sans-serif';"><STRONG>Hardware</STRONG></SPAN></P><P>-1 LEGO MINDSTORMS EV3 Education Core Set #45544</P><P></P><P style="margin-bottom: .0001pt;"><SPAN style="font-size: 14.0pt; font-family: 'Arial','sans-serif';"><STRONG>Informações Adicionais</STRONG></SPAN></P><P style="margin-bottom: .0001pt;"><SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"><BR /></SPAN></P><P>1. Esta é uma versão inicial, logo ainda são necessarias melhorias no controle de excessões e na sintonia do controle PID;</P><P>2. Qualquer dúvida ou contribuição será bem recebida;</P><P>3. Fiquem a vontade para contribuir.</P><P style="margin-bottom: .0001pt;"><SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"><BR /></SPAN></P></BODY></HTML>

Rômulo Augusto

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.