tag:blogger.com,1999:blog-64763861666879347952024-03-14T07:39:25.710+00:00FET DestoyerOnde a electrónica faz faísca...FET Destroyerhttp://www.blogger.com/profile/07849565551604963403noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-6476386166687934795.post-45947944314199914782011-01-18T16:33:00.001+00:002011-10-06T23:45:48.153+01:00SegBot (Saguim)<h3 align="center" style="color: #999999; font-family: Arial, Helvetica, sans-serif; font-size: 1.2em; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">SegwayBot (Saguim)</h3><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Á uns tempos vi uma segway e durante uns dias aquilo não me saiu da cabeça, tanto não saiu que depois vi este vídeo e passei-me e quis fazer um também.</span></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><object height="344" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" width="425"><embed src="http://www.youtube.com/v/uaaNUMwI3xg&hl=pt-br&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "></object></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />Bem, comecei a fazer um mas ainda só se mantém equilibrado porque está encostado e também porque ainda não está acabado mas deixo algumas fotos e vou actualizando sempre que possa. O objectivo é criar uma base de robótica para diversos usos futuros onde o robot é só sustentando por duas rodas.<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /><br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /> </span></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />Protótipo em AutoCAD e o original com algumas diferenças<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /> </span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_N5NRDaGqspU/TTXAbQ-5KBI/AAAAAAAAAEs/OjWSv0WsyBg/s1600/segbot1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="236" src="http://1.bp.blogspot.com/_N5NRDaGqspU/TTXAbQ-5KBI/AAAAAAAAAEs/OjWSv0WsyBg/s400/segbot1.jpg" width="400" /></a></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Pormenor dos encoders</span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_N5NRDaGqspU/TTXAbm8IwLI/AAAAAAAAAEw/jr8GuVdPZ7k/s1600/segbot2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="185" src="http://4.bp.blogspot.com/_N5NRDaGqspU/TTXAbm8IwLI/AAAAAAAAAEw/jr8GuVdPZ7k/s400/segbot2.jpg" width="400" /></a></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Já com algum material ligado</span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_N5NRDaGqspU/TTXAcMuCSGI/AAAAAAAAAE0/-2BbH91Mp3I/s1600/segbot3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="235" src="http://1.bp.blogspot.com/_N5NRDaGqspU/TTXAcMuCSGI/AAAAAAAAAE0/-2BbH91Mp3I/s400/segbot3.jpg" width="400" /></a></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Depois de algum tempo parado e com teias de aranha o SegBot volta com a sua nova placa de hardware melhorada. </span><br />
<span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</span><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-itN6pmd-ERo/To4vhKCOQEI/AAAAAAAAAGY/2NY-cA3XV98/s1600/DSCF3489m.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="http://3.bp.blogspot.com/-itN6pmd-ERo/To4vhKCOQEI/AAAAAAAAAGY/2NY-cA3XV98/s400/DSCF3489m.jpg" width="318" /></a></div><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</span><br />
<span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</span><br />
<span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Em construção...</span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_N5NRDaGqspU/TTXAw6Ax92I/AAAAAAAAAE4/DOtHsCaziXw/s1600/bulldozer.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/_N5NRDaGqspU/TTXAw6Ax92I/AAAAAAAAAE4/DOtHsCaziXw/s1600/bulldozer.gif" /></a></div>FET Destroyerhttp://www.blogger.com/profile/07849565551604963403noreply@blogger.com0tag:blogger.com,1999:blog-6476386166687934795.post-49066273029483618042011-01-18T16:28:00.000+00:002011-01-18T16:28:47.690+00:00RFM12B Module<div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Devido à elevada taxa de banditismo decidi criar um alarme para casa. Vai consistir em mini módulos de rádio frequência cada um na sua posição criando uma rede sem fios entre si e trocando informações com o coordenador dessa rede. Inicialmente a topologia de rede vai ser em estrela mas futuramente será modificada para árvore ou talvez mesh.</span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_N5NRDaGqspU/TTW_fuSYn-I/AAAAAAAAAEo/e8IzvfmJYA4/s1600/rfm12_tree.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><span class="Apple-style-span" style="-webkit-text-decorations-in-effect: none; color: black;"></span><a href="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW_fUAawaI/AAAAAAAAAEk/6upO0AcQkAA/s1600/rfm12_star.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW_fUAawaI/AAAAAAAAAEk/6upO0AcQkAA/s400/rfm12_star.jpg" width="400" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_N5NRDaGqspU/TTW_fuSYn-I/AAAAAAAAAEo/e8IzvfmJYA4/s1600/rfm12_tree.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/_N5NRDaGqspU/TTW_fuSYn-I/AAAAAAAAAEo/e8IzvfmJYA4/s400/rfm12_tree.jpg" width="400" /></a></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</span></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Muito resumidamente, quando for detectada alguma intrusão os mini módulos comunicam com o coordenador, e este através de um modem GSM, envia uma SMS para o usuário que ocorreu uma intrusão e indica qual o sitio dessa intrusão. Para já criei três placas para testar os módulos e criar vários parâmetros que depois servirão para construir a rede, com os módulos que serão muito mais pequenos que as placas que estão na seguinte imagem. As placas seguinte são só para desenvolvimento. O transceiver usado foi o RFM12B da HopeRF devido a sua simplicidade de implementação e tamanho. Estes módulos comunicam através do interface SPI tornando-se assim fáceis de usar.</span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_N5NRDaGqspU/TTW-gguzmEI/AAAAAAAAAEg/p9lAfovmItw/s1600/rfm12B.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/_N5NRDaGqspU/TTW-gguzmEI/AAAAAAAAAEg/p9lAfovmItw/s1600/rfm12B.jpg" /></a></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><a href="file:///C:/Users/Pedro/Desktop/site_html/public_html/rfm12.rar" style="color: #99999f; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Download</a></i> do .pdf com documentação relativa ao RFM12B da HopeRF.</span></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Placas de demonstração e desenvolvimento dos módulos</span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_N5NRDaGqspU/TTW-gQsX1eI/AAAAAAAAAEc/AGMx3mrqR0w/s1600/rfm12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/_N5NRDaGqspU/TTW-gQsX1eI/AAAAAAAAAEc/AGMx3mrqR0w/s400/rfm12.jpg" width="400" /></a></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Possíveis NÓS SLAVE feitos em EagleCAD 3D ( RFM12B - Controlador - DC/DC )</span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW-bu8ZmMI/AAAAAAAAAEU/umRe5_5MuKs/s1600/no.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW-bu8ZmMI/AAAAAAAAAEU/umRe5_5MuKs/s400/no.jpg" width="400" /></a></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><a href="file:///C:/Users/Pedro/Desktop/site_html/public_html/node_slave.pdf" style="color: #99999f; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">(Esquemático)</a></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Possível NÓ MASTER feito em EagleCAD 3D</span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_N5NRDaGqspU/TTW-cL-RrAI/AAAAAAAAAEY/D-4nneKdXyI/s1600/node_master_s_rs232_versao2_2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="280" src="http://1.bp.blogspot.com/_N5NRDaGqspU/TTW-cL-RrAI/AAAAAAAAAEY/D-4nneKdXyI/s400/node_master_s_rs232_versao2_2.jpg" width="400" /></a></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Para começar decidi fazer um programa demonstração que consiste apenas em um módulo master enviar um pacote para um módulo slave. Se for um determinado pacote o slave envia uma resposta ao master a confirmar o pacote correcto e o master toma uma acção (Neste caso acender um LED). O Programa foi desenvolvido usando o MPLAB C18 e pode ser descarregado <i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">aqui</i>. O .zip contem os três ficheiros essenciais. A biblioteca rfm12b.h tem que ser sempre incluída no projecto do C18.</span></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 12px; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">slave.c/master.c -> Código do slave/master que usa a biblioteca rfm12b.h</span></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 12px; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">rfm12b.h -> Biblioteca que contem as funções que inicializam e comunicam com o RFM12B</span></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 18px; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: 'Courier New'; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">void EnviaCMD( unsigned int ); //Envia comando para o RFM12B<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />void EnviaBYTE( unsigned int ); //Envia byte a ser transmitido<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />unsigned char RecebeBYTE( void ); //Recebe byte transmitido<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />void Delay1KTCYx( unsigned char );<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />void Delay10KTCYx( unsigned char );</span></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 12px; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="left" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">RFM12 Tutorial - <a href="http://blog.strobotics.com.au/2008/01/08/rfm12-tutorial-part1/" style="color: #99999f; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">http://blog.strobotics.com.au/2008/01/08/rfm12-tutorial-part1/</a></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Em construção...</span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_N5NRDaGqspU/TTW-bZ_ilbI/AAAAAAAAAEQ/M2J7AmzfDBs/s1600/bulldozer.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/_N5NRDaGqspU/TTW-bZ_ilbI/AAAAAAAAAEQ/M2J7AmzfDBs/s1600/bulldozer.gif" /></a></div>FET Destroyerhttp://www.blogger.com/profile/07849565551604963403noreply@blogger.com0tag:blogger.com,1999:blog-6476386166687934795.post-53188224102145156702011-01-18T16:21:00.000+00:002011-01-18T16:21:26.785+00:00LED Display<div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Este projecto surge porque não tinha mais nada que fazer e então como gosto de LED's decidi fazer este display de LED's. É um display feito para 50 colunas por 7 linhas podendo criar os caracteres típicos dos displays LCD HD44780 da Hitachi que são de 5x7 pixels. O objectivo principal é criar um display para passar mensagens e talvez mais à frente de alguma maneira tentar liga-lo por RS232 e faze-lo interagir com o messenger pois nunca gostei muito das janelas do messenger pois ocupam muito espaço do monitor. Então este display iria substituir essa janela irritante e sempre que alguém entra-se no messenger não abria uma janela, mas no display aparecia o que antes aparecia na janela do messenger. Sete transístores PNP fazem o drive das linhas. Ao fazer um varrimento por linhas obtemos assim uma melhor luminosidade nos LED's pois se o varrimento fosse feito por colunas seria:<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /><br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />TempoVarrimentoColunas = Ciclo/50 (varrimento maior)<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /><br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />TempoVarrimentoLinhas = Ciclo/7 (varrimento menor)<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /> </span></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_N5NRDaGqspU/TTW9lN5XmRI/AAAAAAAAAEI/xw7ujA-i0dQ/s1600/led.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="122" src="http://1.bp.blogspot.com/_N5NRDaGqspU/TTW9lN5XmRI/AAAAAAAAAEI/xw7ujA-i0dQ/s400/led.jpg" width="400" /></a></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Já em funcionamento</span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW9kX6TMWI/AAAAAAAAAEA/mrBL8RaQ0w8/s1600/a1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW9kX6TMWI/AAAAAAAAAEA/mrBL8RaQ0w8/s400/a1.jpg" width="400" /></a></div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_N5NRDaGqspU/TTW9kr3Zf4I/AAAAAAAAAEE/D9099r9qcqY/s1600/a2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://2.bp.blogspot.com/_N5NRDaGqspU/TTW9kr3Zf4I/AAAAAAAAAEE/D9099r9qcqY/s400/a2.jpg" width="400" /></a></div><br />
<br />
<div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Download</i> dos ficheiros em EAGLE.</span></div>FET Destroyerhttp://www.blogger.com/profile/07849565551604963403noreply@blogger.com0tag:blogger.com,1999:blog-6476386166687934795.post-30000818791816534192011-01-18T16:18:00.004+00:002012-07-01T13:40:48.301+01:00RARM & Controller<div align="justify" style="font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span style="color: #454545; font-family: Calibri; font-size: small; margin: 0px; padding: 0px;">Nas minhas viagens pelo YouTube encontrei um pequeno braço robot LYNX5 da lynxmotion</span><b style="color: #454545; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: x-small; margin: 0px; padding: 0px;">[1]</span></b><span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;"><span class="Apple-style-span" style="color: #454545;"> e pensei logo em mil e uma coisas e decidi então fazer um e passados algumas semanas de medições a olhómetro e maquinação na minha CNC a mãos e serrote está finalmente acabado. Em conjunto com o servo controller espero conseguir por o braço a funcionar e a fazer qualquer coisa interessante. O colega Mauro </span><span style="color: #444444; margin: 0px; padding: 0px;">(<a href="http://msm.no.sapo.pt/damas/index.html">http://msm.no.sapo.pt/damas/index.html</a>)</span><span class="Apple-style-span" style="color: #454545;"> já está a fazer um programa em C# para um braço poder jogar damas contra um PC. Talvez um dia os nossos rarm possam disputar uma partida de damas ou braço de ferro.</span></span></div>
<div align="justify" style="font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;"><span class="Apple-style-span" style="color: #454545;"><br />
</span></span></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;">
<span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;"><span class="Apple-style-span" style="color: #454545;">Braço LYNX5 da lynxmotion. A versão LYNX6 tem mais um eixo que é a rotação do pulso.</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW7Z9yUY0I/AAAAAAAAADs/vXix1IE91ZE/s1600/lynx5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW7Z9yUY0I/AAAAAAAAADs/vXix1IE91ZE/s400/lynx5.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW7YpeDcrI/AAAAAAAAADg/q4EgNyZOEk8/s1600/arm1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="262" src="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW7YpeDcrI/AAAAAAAAADg/q4EgNyZOEk8/s400/arm1.jpg" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/_N5NRDaGqspU/TTW7ZNRAreI/AAAAAAAAADk/EyStD0Z1yug/s1600/arm2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="295" src="http://2.bp.blogspot.com/_N5NRDaGqspU/TTW7ZNRAreI/AAAAAAAAADk/EyStD0Z1yug/s400/arm2.jpg" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW7ZlpotTI/AAAAAAAAADo/e0gx8EpuYpA/s1600/arm3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="261" src="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW7ZlpotTI/AAAAAAAAADo/e0gx8EpuYpA/s400/arm3.jpg" width="400" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/_N5NRDaGqspU/TTW7bgcdVWI/AAAAAAAAAD4/3QAavC9SZqE/s1600/rarm3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="298" src="http://4.bp.blogspot.com/_N5NRDaGqspU/TTW7bgcdVWI/AAAAAAAAAD4/3QAavC9SZqE/s400/rarm3.jpg" width="400" /></a></div>
<div style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;">
<br /></div>
<div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="Apple-style-span" style="font-size: small; line-height: normal;"></span></div>
<div align="justify" style="font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;">Para o controlo dos servos do braço foi escolhida uma PIC18F2431 que tem um módulo de controlo de motor por PWM (POWER CONTROL PWM MODULE) que simplifica a geração de múltiplos e sincronizados sinais PWM para uso em controlo de motores, mas neste caso servos. Em conjunto com um programa feito em VisualBasic vão ser transmitidos dados através de RS232 podendo controlar a posição do braço.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW7bJ2vxLI/AAAAAAAAADw/odE2G83FmAE/s1600/rarm.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="337" src="http://3.bp.blogspot.com/_N5NRDaGqspU/TTW7bJ2vxLI/AAAAAAAAADw/odE2G83FmAE/s400/rarm.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/_N5NRDaGqspU/TTW7bfsw8cI/AAAAAAAAAD0/4yd6V4QaKvQ/s1600/rarm2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="352" src="http://1.bp.blogspot.com/_N5NRDaGqspU/TTW7bfsw8cI/AAAAAAAAAD0/4yd6V4QaKvQ/s400/rarm2.jpg" width="400" /></a></div>
<span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;"><br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" />O programa em Basic é simples e divide-se em 4 partes.</span><br />
<span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;"></span><span style="font-family: Verdana; font-size: small; margin: 0px; padding: 0px;">● </span><span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;">Na primeira parte é feita a configuração da porta COM a usar, baudrate, paridade, stop bits e HOME.</span><br />
<span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;"></span><span style="font-family: Verdana; font-size: small; margin: 0px; padding: 0px;">● </span><span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;">Na segunda parte é o modo básico que consiste em por no programa um ponto no espaço e um algoritmo de cinemática inversa calcula o movimento necessário a fornecer no braço robótico que vai pegar no objecto e colocá-lo em HOME.</span><br />
<span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;"></span><span style="font-family: Verdana; font-size: small; margin: 0px; padding: 0px;">● </span><span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;">Na terceira parte é o modo completo e consiste em fazer sequências de movimentos diferentes o que não acontecia na segunda parte que só fazia um único movimento. Neste modo é possível por o braço a fazer inúmeras sequencias todas distintas. Permite também indicar o modo como se vai agarrar o objecto se na vertical ou na horizontal e controlar a velocidade do braço.</span><br />
<span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;"></span><span style="font-family: Verdana; font-size: small; margin: 0px; padding: 0px;">● </span><span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;">Na quarta parte é o modo escrita, em que escrevemos uma frase com limite de 4 linhas e 8 caracteres por linha no programa e o braço escreve-o numa folha de papel e com uma caneta adaptada ao braço.</span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div align="center" style="font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;">Protótipo de programa em VisualBasic. Ainda está em desenvolvimento logo o final poderá ser muito diferente dos screens que ponho a seguir.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/_N5NRDaGqspU/TTW7cOo4XII/AAAAAAAAAD8/9RqimgmH028/s1600/rarm_contr.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="450" src="http://1.bp.blogspot.com/_N5NRDaGqspU/TTW7cOo4XII/AAAAAAAAAD8/9RqimgmH028/s400/rarm_contr.jpg" width="524" /></a></div>
<div align="center" style="font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<br />
<br />
<div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">
<span style="font-size: x-small; margin: 0px; padding: 0px;"><b style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">[1]</b> <a href="http://www.lynxmotion.com/Category.aspx?CategoryID=27" style="color: #99999f; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">http://www.lynxmotion.com/Category.aspx?CategoryID=27</a></span></div>
</div>
<div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
</div>
</div>
<div align="center" style="font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span style="font-family: Calibri; font-size: small; margin: 0px; padding: 0px;"><i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><u><span class="Apple-style-span" style="color: #666666;">Download</span></u></i> dos ficheiros em EAGLE.</span></div>FET Destroyerhttp://www.blogger.com/profile/07849565551604963403noreply@blogger.com1tag:blogger.com,1999:blog-6476386166687934795.post-38958114159973500782011-01-06T17:59:00.003+00:002011-01-18T20:15:32.595+00:00I²C Expander<div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">O I²C Expander permite com um interface I²C controlar até 9 servos, 3 entradas analógias e 2 entradas/saidas digitais. Este IC é útil para sistemas em que o uso de muitos pinos do microcontrolador não está disponível. Como usa o protocolo I²C apenas usa 2 pinos de dados do microcontrolador (SDA e SCL). O I²C Expander é um dispositivo slave logo terão que existir 2 resistências de pull-up no bus I²C.</div><div class="MsoNoSpacing" style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span style="font-size: 14pt;"><o:p></o:p></span></div></div></div></div><div><div style="text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div align="center"><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-bottom-style: none; border-collapse: collapse; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; text-align: center;"><tbody>
<tr><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">Pin Name<o:p></o:p></span></span></b></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">Description<o:p></o:p></span></span></b></div></div></td></tr>
<tr><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">Analog0,1,2<o:p></o:p></span></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">Analog Input, Vref-> VDD,GND<o:p></o:p></span></span></div></div></td></tr>
<tr><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">Digital0,1<o:p></o:p></span></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">Digital0 only Input | Digital1 I/0<o:p></o:p></span></span></div></div></td></tr>
<tr><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">PWM0,1,2,3,4,5,6,7<o:p></o:p></span></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">PWM servo Output<o:p></o:p></span></span></div></div></td></tr>
<tr><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">SDA<o:p></o:p></span></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">I<sup>2</sup>C Data Input/Output<o:p></o:p></span></span></div></div></td></tr>
<tr><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">SCL<o:p></o:p></span></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">I<sup>2</sup>C Clock Input<o:p></o:p></span></span></div></div></td></tr>
<tr><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">VDD<o:p></o:p></span></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">Positive Supply (1.8V to 5V)<o:p></o:p></span></span></div></div></td></tr>
<tr><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">GND<o:p></o:p></span></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 216.1pt;" valign="top" width="288"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span lang="EN-US"><span class="Apple-style-span" style="font-size: x-small;">Ground</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></div></div></td></tr>
</tbody></table></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div></div></div></div><div></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><a href="http://3.bp.blogspot.com/_N5NRDaGqspU/TSN0QO-YR4I/AAAAAAAAAC8/W26LDf0hLe8/s1600/i2cexpander.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="303" src="http://3.bp.blogspot.com/_N5NRDaGqspU/TSN0QO-YR4I/AAAAAAAAAC8/W26LDf0hLe8/s320/i2cexpander.jpg" style="cursor: move;" width="320" /></a></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><br />
</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"><br />
</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"></div><div class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><span style="line-height: 18px;">COMANDOS<span class="Apple-style-span" style="font-size: small;"><o:p></o:p></span></span></b></div></div><div class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div></div><div align="center"><table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-bottom-style: none; border-collapse: collapse; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; width: 365px;"><tbody>
<tr style="height: 1.1pt;"><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 69.2pt;" valign="top" width="92"><div align="center" class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><span class="Apple-style-span" style="font-size: x-small;">Comando<o:p></o:p></span></b></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 204.25pt;" valign="top" width="272"><div align="center" class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: center;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><span class="Apple-style-span" style="font-size: x-small;">Descrição<o:p></o:p></span></b></div></div></td></tr>
<tr style="height: 1.1pt;"><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 69.2pt;" valign="top" width="92"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">0x41 –‘A’<o:p></o:p></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 204.25pt;" valign="top" width="272"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">Muda o endereço actual do slave I2C<o:p></o:p></span></div></div></td></tr>
<tr style="height: 1.1pt;"><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 69.2pt;" valign="top" width="92"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">0x42 –‘B’<o:p></o:p></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 204.25pt;" valign="top" width="272"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">Comando para devolver ADC<o:p></o:p></span></div></div></td></tr>
<tr style="height: 1.1pt;"><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 69.2pt;" valign="top" width="92"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">0x43 –‘C’<o:p></o:p></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 204.25pt;" valign="top" width="272"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">Actualiza valores do PWM de TODOS servos<o:p></o:p></span></div></div></td></tr>
<tr style="height: 1.1pt;"><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 69.2pt;" valign="top" width="92"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">0x44 –‘D’<o:p></o:p></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 204.25pt;" valign="top" width="272"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">Actualiza valor do PWM de UM servo<o:p></o:p></span></div></div></td></tr>
<tr style="height: 1.1pt;"><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 69.2pt;" valign="top" width="92"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">0x45 –‘E’<o:p></o:p></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 204.25pt;" valign="top" width="272"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">Activa ou desactiva o PWM dos servos<o:p></o:p></span></div></div></td></tr>
<tr style="height: 1.1pt;"><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 69.2pt;" valign="top" width="92"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">0x46 –‘F’<o:p></o:p></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 204.25pt;" valign="top" width="272"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">Comando para devolver pinos digitais<o:p></o:p></span></div></div></td></tr>
<tr style="height: 1.1pt;"><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 69.2pt;" valign="top" width="92"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">0x47 –‘G’<o:p></o:p></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 204.25pt;" valign="top" width="272"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">Faz SET dos valores em portas digitais<o:p></o:p></span></div></div></td></tr>
<tr style="height: 1.1pt;"><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 69.2pt;" valign="top" width="92"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">0x48 –‘H’<o:p></o:p></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 204.25pt;" valign="top" width="272"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">Modifica input/output nos 2 pinos digitais<o:p></o:p></span></div></div></td></tr>
<tr style="height: 1.1pt;"><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: black; border-left-style: solid; border-left-width: 1pt; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: black; border-top-style: solid; border-top-width: 1pt; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 69.2pt;" valign="top" width="92"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">0x56 –‘V’<o:p></o:p></span></div></div></td><td style="border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1pt; border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: black; border-right-style: solid; border-right-width: 1pt; border-top-color: initial; border-top-style: none; border-top-width: initial; height: 1.1pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 204.25pt;" valign="top" width="272"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-size: x-small;">Devolve versão do firmware e data <o:p></o:p></span></div></div></td></tr>
</tbody></table></div><div class="MsoNormal" style="margin-bottom: 0cm; text-align: justify;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><br />
</b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b>Exemplos</b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><u>Funções:</u></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">writeI2C(slave_adress, numero_bytes, dataOUT[]);</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">readI2C(slave_adress, numero_bytes, dataIN[]);</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b>Muda o endereço actual do slave I2C (0x41)</b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">writeI2C(0xA0, 2, 0x41A2 ); </div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">//troca o endereço actual 0xA0 pelo endereço 0xA2</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b>Comando para devolver ADC (0x42)</b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">writeI2C(0xA0, 1, 0x42 ); //envia comando para devolver ADC</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">readI2C(0xA0, 3, ADCvalues); //guarda em ADCvalues os valores dos 3 adc</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b>Actualiza valores do PWM de TODOS servos (0x43</b>)</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">writeI2C(0xA0, 9, 0x435566FF7F7F7F7F7F); </div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">//carrega valores de PWM, pwm0 = 0x55, pwm1 = 0x66, etc…</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b>Actualiza valor do PWM de UM servo (0x44)</b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">writeI2C(0xA0, 3, 0x4405FF); //carrega o pwm5 com 0xFF</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b>Activa ou desactiva o PWM dos servos (0x45)</b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">writeI2C(0xA0, 2, 0x45FF); //activa todos os pwm (0xFF), 0x00 desactiva todos</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-tab-span" style="white-space: pre;"> </span> //0x01 activa o pwm0</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b>Comando para devolver pinos digitais (0x46)</b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">writeI2C(0xA0, 1, 0x46 ); //envia comando para devolver DIGITAIS</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">readI2C(0xA0, 1, digitaisVALUE); //cada bit de digitaisVALUE corresponde e um pino digital</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b>Faz SET dos valores em portas digitais (0x47)</b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">writeI2C(0xA0, 2, 0x47FF); </div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">//activa todos os pinos digitais (0xFF), 0x00 desactiva todos</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b>Modifica input/output nos 2 pinos digitais digitais (0x48)</b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">writeI2C(0xA0, 2, 0x48FF); // (0xFF) tudo input, 0x00 tudo output</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"> //0x01 põe o pino0 como input e o resto out</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b>Devolve versão do firmware e data (0x56)</b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">writeI2C(0xA0, 1, 0x56 ); //envia comando para devolver versão</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">readI2C(0xA0, 21, stringVERSAO); //guarda em stringVERSAO a versão</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"> //tem sempre 21chars de tamanho</div></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b>Funcionamento</b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">6 servos a correr em simultâneo. Refrescados a 20ms. 5 na posição central (1.5ms) e um na posição final (2.1ms)</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"><a href="http://2.bp.blogspot.com/_N5NRDaGqspU/TSOnq7Cf3ZI/AAAAAAAAADA/_YcmTqkIeZM/s1600/pwm_servo2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="219" src="http://2.bp.blogspot.com/_N5NRDaGqspU/TSOnq7Cf3ZI/AAAAAAAAADA/_YcmTqkIeZM/s400/pwm_servo2.jpg" style="cursor: move;" width="500" /></a></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><br />
</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b>Especificações</b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">Resolução ADC - 8bits</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">Resolução Servos - 8bits, aprox 0.71º</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">Alimentação - 1.8V a 5V</div><div><br />
<div style="text-align: center;"><u><span class="Apple-style-span" style="color: #999999;">Download</span></u><span class="Apple-style-span" style="color: #999999;"> Indisponível</span></div></div><div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"></div>FET Destroyerhttp://www.blogger.com/profile/07849565551604963403noreply@blogger.com0tag:blogger.com,1999:blog-6476386166687934795.post-21310972330834059522011-01-04T23:50:00.003+00:002011-01-05T21:53:50.411+00:00USB PIC DevBoard<div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">As placas de desenvolvimento por porta série já são tecnologia do passado. Apesar de ainda serem muito usadas o USB veio para ficar e só trás vantagens. Na maioria dos novos portáteis a porta série não existe o que torna as coisas mais difíceis pois tem que se ter um cabo USB-RS232 para usarmos uma placa de desenvolvimento com porta série. Ao ter-se uma placa de desenvolvimento por USB eliminamos a necessidade de uma fonte externa como acontecia na porta série pois o USB já possui alimentação. As placas de desenvolvimento podem ser feitas de duas maneiras, a primeira é usar um chip que converta USB para a porta série do micro tal como o FT232R da FTDI, ou usando um micro que já possua um módulo USB que é o caso. Usando um PIC18F4550 criei uma placa de desenvolvimento por USB em que os periféricos podem ser alimentados da placa e por sua vez a placa da porta USB.</span></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Desenvolvi então uma placa que é um clone numa versão mais simples da PICDEM FS-USB DM163025 da microchip.</span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_N5NRDaGqspU/TSOyL5TzhWI/AAAAAAAAADc/iFYAB_VxAx0/s1600/usb_dev2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="358" src="http://3.bp.blogspot.com/_N5NRDaGqspU/TSOyL5TzhWI/AAAAAAAAADc/iFYAB_VxAx0/s400/usb_dev2.jpg" width="400" /></a></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: x-small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Placa desenhada em eagleCAD + bootloader PIC18F4550 + HEX Loader (<a href="https://dl.dropbox.com/s/x6vvrrtsrgj3kif/usb_devboard.zip?dl=1" style="color: #99999f; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Download</a>)</span></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">O PIC usado nesta placa possui 40 pinos porém usando um adaptador de 40 para 28 pinos (usado na PIC DevBoard) podem ser usados PIC's com módulos USB mas com menos pinagem tal como o PIC18F2550. O PIC não funcionará se for só ligado à porta USB, tal como na porta série é necessário um bootloader USB e das duas uma, ou se arranja um bootloader já feito para o PIC a usar ou compila-se a biblioteca USB (<a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2680&dDocName=en537044" style="color: #99999f; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">MCHPFSUSB Framework</a>) fornecida no site da microchip.</span></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">O projecto do bootloader é encontrado na pasta <u style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">\Microchip Solutions\USB Device - Bootloaders\Vendor Class - MCHPUSB Bootloader\Bootloader - Firmware for PIC18F4550 Family Devices</i></u> e no qual terão que ser feitas modificações para se adaptar ao PIC em questão. No caso do PIC ser o PIC18F4550 não serão necessárias modificações.</span></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Depois do bootloader carregado através de um programador e ligada a placa ao PC o Windows vai pedir para instalar um driver que se encontra na pasta <i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><u style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">\Microchip Solutions\USB Tools\MCHPUSB Custom Driver\MCHPUSB Driver\Release</u></i>.</span></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Depois de executados os passos em cima a placa está pronta para receber os ficheiros .hex que podem ser carregados através do programa PDFSUSB.exe que se encontra na pasta <u style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><i style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">\Microchip Solutions\USB Tools\Pdfsusb</i></u>.</span></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">No fim fica-se com uma placa de desenvolvimento que usa a tecnologia USB em vez da tecnologia RS232 e com uma construção fácil e com todos os pinos acessíveis, ideal para pequenos protótipos.</span></div>FET Destroyerhttp://www.blogger.com/profile/07849565551604963403noreply@blogger.com0tag:blogger.com,1999:blog-6476386166687934795.post-84804879506466343412011-01-04T23:36:00.001+00:002011-01-04T23:36:48.569+00:00PIC DevBoard<h3 align="center" style="color: #999999; font-family: Arial, Helvetica, sans-serif; font-size: 1.2em; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span class="Apple-style-span" style="color: #454545; font-size: 12px; font-weight: normal; line-height: 22px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Na necessidade de uma placa de testes foi feita esta placa similar à Explorer HPC</span><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"> da microchip mas num tamanho mais pequeno e numa diferente disposição da pinagem podendo posteriormente adicionar módulos como nas EasyPIC da mikroelectronica</span><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">.</span></span></h3><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_N5NRDaGqspU/TSOtZvu2BjI/AAAAAAAAADE/Gb3MKCLc2eY/s1600/dev1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/_N5NRDaGqspU/TSOtZvu2BjI/AAAAAAAAADE/Gb3MKCLc2eY/s400/dev1.jpg" width="400" /></a></div><br />
<div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">O PIC usado nesta placa pode ser uma grande variedade de PIC16 e PIC18 de 40 pinos. O que eu uso é um 18F4620/4510/4431. Estou a criar um socket para passar de 40 pinos para 28 e 20 pinos para ser mais fácil programar outros PIC com menos pinagem sem requerer a uma placa nova.</span></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</span></div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_N5NRDaGqspU/TSOtaOtYCCI/AAAAAAAAADI/GXvhnhwAv4s/s1600/dev1_2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="350" src="http://1.bp.blogspot.com/_N5NRDaGqspU/TSOtaOtYCCI/AAAAAAAAADI/GXvhnhwAv4s/s400/dev1_2.jpg" width="400" /></a></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"></div><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_N5NRDaGqspU/TSOtu5kjOgI/AAAAAAAAADQ/QbJ3_0ekFdA/s1600/socket.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="251" src="http://3.bp.blogspot.com/_N5NRDaGqspU/TSOtu5kjOgI/AAAAAAAAADQ/QbJ3_0ekFdA/s400/socket.jpg" width="400" /></a></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><u style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><b style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Versão 2</span></b></u></div><div align="justify" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Difere pouco na versão 1 sendo as principais diferenças na disposição dos pinos I/O para facilitar o uso dos módulos e também o uso de componentes SMD tornando assim a placa com um interface mais "amigo" e parecendo menos carregado de componentes. Tem também dois tipos de socket para uso de PIC com 40 e 28 pinos.</span></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_N5NRDaGqspU/TSOuZWCFE9I/AAAAAAAAADU/c2SHDBjgNUQ/s1600/dev_v22.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="327" src="http://3.bp.blogspot.com/_N5NRDaGqspU/TSOuZWCFE9I/AAAAAAAAADU/c2SHDBjgNUQ/s400/dev_v22.jpg" width="400" /></a></div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><br />
</div><div align="center" style="color: #454545; font-family: Arial, Helvetica, sans-serif; font-size: 0.75em; line-height: 1.9em; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><span style="font-family: Calibri; font-size: small; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><i style="color: #99999f; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><a href="file:///C:/Users/Pedro/Desktop/site_html/public_html/explorer_clone_V2.zip" style="color: #99999f; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Download</a> </i>dos ficheiros em EAGLE.</span></div>FET Destroyerhttp://www.blogger.com/profile/07849565551604963403noreply@blogger.com1