tag:blogger.com,1999:blog-18213730538863044802024-03-13T00:37:42.098-03:00Arduino Brasil Blog destinado a quem está começando com arduino e suas tecnologias . assim como outros micro-controladores !ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.comBlogger157125tag:blogger.com,1999:blog-1821373053886304480.post-65269038514256922092021-06-20T00:01:00.001-03:002021-06-20T00:01:11.973-03:00Alterando um transformador simétrico 24V4A para 12V8A<p> </p><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="375" src="https://www.youtube.com/embed/3l2j_NLCqtE" width="451" youtube-src-id="3l2j_NLCqtE"></iframe></div><br /><p></p>ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com0tag:blogger.com,1999:blog-1821373053886304480.post-45448427912860681082021-06-19T23:59:00.002-03:002021-06-19T23:59:24.817-03:00Voltamos e com o pé direito ! <p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-tIvtu7QkUtc/YM6uzmSKkuI/AAAAAAAAAkQ/vhh0_1OqIdgzjaXRNdNoVfXzgi0lGlZLwCLcBGAsYHQ/s225/download.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="225" data-original-width="225" height="400" src="https://1.bp.blogspot.com/-tIvtu7QkUtc/YM6uzmSKkuI/AAAAAAAAAkQ/vhh0_1OqIdgzjaXRNdNoVfXzgi0lGlZLwCLcBGAsYHQ/w400-h400/download.png" width="400" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;">Depois de um tempo de ausencia aqui do blog e do canal no youtube, estamos de volta e agora é pra ficar ! </div><br /><p></p>ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com0tag:blogger.com,1999:blog-1821373053886304480.post-19846546704469619032015-06-17T22:46:00.001-03:002015-06-17T22:46:59.540-03:00Gincana das Engenharias <a href="http://1.bp.blogspot.com/-kg_SNPVxNdk/VYIi07aF2rI/AAAAAAAAAYg/K7ylJx6wyPw/s1600/arduino-carro.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="233" src="http://1.bp.blogspot.com/-kg_SNPVxNdk/VYIi07aF2rI/AAAAAAAAAYg/K7ylJx6wyPw/s320/arduino-carro.jpg" width="320" /></a>Pessoal , nos últimos dias estou engajado com a campanha da gincana das engenharias da minha faculdade . Sei que aqui são muitos que acessam diariamente e venho humildemente pedir um like para vocês <a href="https://www.facebook.com/pages/Equipe-17-Salm%C3%A3o-UP/1611557729125530?fref=ts" target="_blank">https://www.facebook.com/pages/Equipe-17-Salmão-UP/1611557729125530?fref=ts</a><br />
Se puderem curtir vou ficar muito grato com todos vocês .<br />
<br />
PS.. Logo postarei o término da fonte de alimentação nova !<br />
<br />
<br />ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com0tag:blogger.com,1999:blog-1821373053886304480.post-91258438614983512452015-05-18T22:48:00.003-03:002015-05-18T22:48:50.739-03:00- Primeiros passos com o Esquilo - (2/2) Continuando o post .<br />
1-Ligue a energia , USB ou Fonte .<br />
<div class="" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-RZ_EoPgfhA4/VVqSNf26zZI/AAAAAAAAAXM/SGe86I4zfh8/s1600/usbPower.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="167" src="http://4.bp.blogspot.com/-RZ_EoPgfhA4/VVqSNf26zZI/AAAAAAAAAXM/SGe86I4zfh8/s320/usbPower.jpg" width="320" /></a>Energia pela USB ( Computador ou Fonte USB) </div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<a href="http://3.bp.blogspot.com/-WPobt_jjRjQ/VVqSN1lGP7I/AAAAAAAAAXQ/_Sbe5RQr2ck/s1600/wallWartPower.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="165" src="http://3.bp.blogspot.com/-WPobt_jjRjQ/VVqSN1lGP7I/AAAAAAAAAXQ/_Sbe5RQr2ck/s320/wallWartPower.jpg" width="320" /></a>Energia pela Fonte com conector 2,5mm<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
2- Conecte-se ao ponto de acesso (rede Wi-Fi) <br />
Depois de ligar a placa, ligue ao seu ponto de acesso Wi-Fi com o seu dispositivo móvel ou computador. O Esquilo é um ponto de acesso padrão, por isso é como se conectar a um roteador sem fio. Os passos são dependentes do dispositivo, assim que consultar o manual se você não me lembro como (por exemplo, Google 'conectar ao Wi-Fi com Android "). Uma vez que você tem tela de configuração Wi-Fi do seu dispositivo, selecione o SSID do seu Esquilo da lista. Seu nome será "Esquilo_ "seguinte por seis caracteres aleatórios para o futuro, como Esquilo_a1b2c3 (estes são os últimos seis caracteres do da placa de sistema ID). Nenhuma senha é necessária nesse passo .<br />
3- Conectado ao seu esquilo por sua rede , abra seu navegador .<br />
Agora que o seu dispositivo móvel ou computador está conectado a ponto de acesso do Esquilo, abra um navegador para http://10.10.10.1. Isso fará com que o Esquilo entre nas configurações. Selecione Avançar na página de boas-vindas para continuar.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-gHU20jp8k5o/VVqTfVHZt4I/AAAAAAAAAXc/IcXEDOumwsk/s1600/browseToEsquiloDiagram.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="http://3.bp.blogspot.com/-gHU20jp8k5o/VVqTfVHZt4I/AAAAAAAAAXc/IcXEDOumwsk/s320/browseToEsquiloDiagram.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="" style="clear: both; text-align: left;">
4. Conecte o Esquilo a rede INTERNET </div>
<div class="" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-s27J2MgftEY/VVqUYcj91MI/AAAAAAAAAXs/OCHxqp4WWJ8/s1600/connectedToWifi.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-s27J2MgftEY/VVqUYcj91MI/AAAAAAAAAXs/OCHxqp4WWJ8/s320/connectedToWifi.jpg" width="308" /></a>O próximo passo é conectar o Esquilo à rede Wi-Fi local. Esta é uma configuração de uma só vez. Escolha a rede que você gostaria de usar na lista e digite sua senha.Uma vez que a placa se conectou à rede selecionada, o LED verde na placa acende-se ea janela de diálogo permitirá que você prossiga. Selecione Avançar para concluir a instalação.</div>
<div class="" style="clear: both; text-align: center;">
Parabéns! Seu Esquilo agora está conectado à sua rede local e pronto para rodar.!</div>
<br />
<div style="text-align: center;">
---</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
Extra </div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
5-Vamos ao que interessa , code code code ! </div>
<div style="text-align: left;">
<br /></div>
Agora a parte divertida. O Esquilo IDE requer uma tela maior, de forma que você precisa mudar para um computador Mac, Windows ou Linux agora. Abra um navegador e vá para o endereço IP local do conselho que a instalação deu-lhe no diálogo final.<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">"""Se você não tem endereço IP local do seu Esquilo à mão, ou se mudou, você pode encontrá-lo com a nossa Find My Esquilo, aqui: https://find.esquilo.io Esta página exibe os links para todos os Esquilos que estão em sua rede local."""</span><br />
<br />
<br />
Para executar o seu primeiro programa de esquilo:<br />
Encontre boot.nut sob flash no painel Lista de Arquivos no lado esquerdo do IDE, e clique duas vezes sobre ele para abrir o arquivo.<br />
<a href="http://4.bp.blogspot.com/-HX0m8Zqivqk/VVqV-72eN-I/AAAAAAAAAX4/UYYbYAMb0UE/s1600/bootNut.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-HX0m8Zqivqk/VVqV-72eN-I/AAAAAAAAAX4/UYYbYAMb0UE/s1600/bootNut.png" /></a><br />
<br />
Com boot.nut aberto na janela do editor, clique no botão "play"na parte superior da página para executá-lo.<br />
Verifique se o seu Esquilo - o LED verde STATUS deve estar piscando!ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com0tag:blogger.com,1999:blog-1821373053886304480.post-28116009248521061252015-05-18T22:17:00.001-03:002015-05-18T22:23:40.908-03:00- Primeiros passos com o Esquilo - (1/2) <div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-92lJqbvheY0/VVp-LDtFgGI/AAAAAAAAAW8/ZzULATzDGps/s1600/esquilo%2Btop%2Bsmall.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="217" src="http://1.bp.blogspot.com/-92lJqbvheY0/VVp-LDtFgGI/AAAAAAAAAW8/ZzULATzDGps/s320/esquilo%2Btop%2Bsmall.png" width="320" /></a>Vamos por partes primeiramente - Com uma interface Esquilo Air em mãos , escolha uma alimentação (1) , um cabo micro USB e uma porta USB do computador , uma fonte USB USB ou uma fonte com conector 2,5mm (2) A senha da sua rede Wi-Fi localPara adicionar o Esquilo à sua rede local, você vai precisar para se conectar diretamente ao seu ponto de acesso. Para fazer isso, você precisa de um dispositivo que tem Wi-Fi</div>
<a name='more'></a><br />
<div class="separator" style="clear: both;">
Um dispositivo móvel Android ou iOS (smartphone ou tablet) ou um Mac, Windows ou Linux</div>
<div class="separator" style="clear: both;">
Depois do Esquilo está conectado à sua rede local, você precisará de um computador Mac, Windows ou Linux na mesma rede para acessar o Esquilo IDE.</div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
-- Para resumir rapidamente </div>
<ol style="border: 0px; box-sizing: border-box; clear: left; color: #505050; float: left; font-family: 'Helvetica Neue', Roboto, sans-serif; font-size: 14px; line-height: 22px; list-style: none; margin: 0px 0px 0px 20px; outline: 0px; padding: 10px 40px; vertical-align: baseline; width: 550px;">
<li style="border: 0px; font-family: inherit; font-style: inherit; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Ligue a energia </strong> - USB ou fonte de alimentação</li>
<li style="border: 0px; font-family: inherit; font-style: inherit; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Conecte o esquilo a internet</strong> - Configure a sua interface para se conectar a mesma rede sem fio que seu computador .</li>
<li style="border: 0px; font-family: inherit; font-style: inherit; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Abra o navegador e acesse a pagina do seu esquilo </strong> - Conecte o Esquilo a sua rede local Wi-Fi - Em configuração, escolha a rede local para anexar o Esquilo e entrar com a sua senha.</li>
<li style="border: 0px; font-family: inherit; font-style: inherit; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Connect the Esquilo to Local Wi-Fi</strong> - Em configuração, escolha a rede local para anexar o Esquilo e entrar para a sua senha.</li>
<li style="border: 0px; font-family: inherit; font-style: inherit; list-style-type: decimal; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Run Some Code</strong> - Mude para um computador Mac, Windows, Linux ou conectado à rede local, navegue até a pagina do Esquilo para abrir o IDE, e executar algum código</li>
</ol>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<div>
</div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><a href="https://www.kickstarter.com/projects/esquiloio/esquilo-simple-iot-development" target="_blank">https://www.kickstarter.com/projects/esquiloio/esquilo-simple-iot-development</a></span></span></div>
<div>
<span style="color: #505050; font-family: Helvetica Neue, Roboto, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><br /></span></span></div>
<br />ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com0tag:blogger.com,1999:blog-1821373053886304480.post-89588106551257729172015-05-11T22:42:00.000-03:002015-05-11T22:42:48.833-03:00Vamos abraçar o esquilo ! <a href="http://2.bp.blogspot.com/-FQIw8zRkwmo/VVFZegvIH4I/AAAAAAAAAWo/61ZItO7NR78/s1600/esquilo%2Btop%2Bsmall.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="217" src="http://2.bp.blogspot.com/-FQIw8zRkwmo/VVFZegvIH4I/AAAAAAAAAWo/61ZItO7NR78/s320/esquilo%2Btop%2Bsmall.png" width="320" /></a>Fala galera , lendo mais a fundo as referencias dessa nova interface de desenvolvimento .. vi que ela tem um grande potencial !<br />
<br />
Essa semana ( mais provável na quarta feira ) vou escrever uma resenha sobre o esquilo , e já adianto a todos que eu sou um grande candidato a abandonar o arduino , visto que já de cara voce tem uma infinidade de coisa onboard , fora a velocidade de processamento que é MUITO maior . <br />
Já dei minha contribuição no kickstart e vocês ?<br />
<a href="https://www.kickstarter.com/projects/esquiloio/esquilo-simple-iot-development" target="_blank">Ajude aqui ! </a>ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com2tag:blogger.com,1999:blog-1821373053886304480.post-69109578046660620082015-05-11T16:47:00.000-03:002015-05-11T16:47:42.317-03:00Novas idéias , são sempre boas idéias Fala pessoal , recentemente fui contatado para apresentar para todos uma nova placa , o Esquilo .<br />
<div class="separator" style="clear: both; text-align: center;">
<br /><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dz8IJeKwpoVZSIXtLZYnXSI2PJCNwzFixmA5aLm71HhAH3kzugijK66SNG_Z7zRg9fKnuRr8z35TC_a-OQ11A' class='b-hbp-video b-uploaded' frameborder='0'></iframe></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://www.kickstarter.com/projects/esquiloio/esquilo-simple-iot-development">Link do kick starter</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com0tag:blogger.com,1999:blog-1821373053886304480.post-9520644728011549432015-04-30T20:38:00.000-03:002015-04-30T20:38:32.708-03:00Novo quadro - Blog e Youtube <a href="http://4.bp.blogspot.com/-jnvs0doyq0k/VUK86LdbNII/AAAAAAAAAWA/NGLMQjwVJyI/s1600/placa-de-circuitos.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://4.bp.blogspot.com/-jnvs0doyq0k/VUK86LdbNII/AAAAAAAAAWA/NGLMQjwVJyI/s1600/placa-de-circuitos.jpg" height="160" width="320" /></a>Tudo bom pessoal ?<br />
Pensei essa semana em fazer um quadro aqui no blog e paralelamente no youtube , o que acham ?<br />
Vou ver na próxima semana uma caixa postal para que voces possam enviar coisas .<br />
Independente de se está funcionando ou se está queimado / quebrado . penso em gravar vídeos desmontando / montando o que for enviado ,mostrar o circuito , e explicar o funcionamento .<br />
<br />
<br />ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com1tag:blogger.com,1999:blog-1821373053886304480.post-70618101619552838472015-04-30T19:38:00.001-03:002015-04-30T19:38:18.463-03:00Projeto - Fonte Linear com controle digital ! Parte 1 <a href="http://www.arnerobotics.com.br/eletronica/new_pictures/fonte_bancada_2_img5.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://www.arnerobotics.com.br/eletronica/new_pictures/fonte_bancada_2_img5.JPG" height="240" width="320" /></a>Fala galerinha , recentemente senti a necessidade de uma fonte com um certo nível de controle , com variações ( coisa que na fonte antiga só tínhamos tensões fixas , -12 , 0, +5 ,+12 ) e , de saber a tensão /corrente sem precisar de um multimetro .<br />
Vamos primeiro a teoria .<br />
<br />
- Primeiramente , a peça chave da fonte - o transformador , popularmente chamado de trafo .<br />
<br />
<br />
<br />
Constituido basicamente de 3 elementos<br />
<br />
<a href="http://1.bp.blogspot.com/-_H0LwQUUbx4/VUKq32fbrrI/AAAAAAAAAVw/E_8TRrZQ2EI/s1600/co%CC%81pia%2Bde%2BABAAAekyEAE-2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-_H0LwQUUbx4/VUKq32fbrrI/AAAAAAAAAVw/E_8TRrZQ2EI/s1600/co%CC%81pia%2Bde%2BABAAAekyEAE-2.png" height="95" width="200" /></a>(1) - Bobina primária<br />
<br />
(2) - Bobina secundária<br />
<br />
(3) - Nucleo <br />
<br />
<br />
O principio de funcionamento de um transformador é baseado nas leis de Faraday e Lenz, as leis do eletromagnetismo e da indução eletromagnética, respectivamente.<br />
<a name='more'></a><br />
Estes equipamentos possuem mais de um enrolamento, sendo que estas partes são chamadas de primário e secundário .<br />
transformador que você usa em casa, é um transformador monofásico, ele transforma tanto 127V em 220V como 220V em 127V.<br />
<br />
Existem os transformadores usados em circuitos eletrônicos, que transformam a tensão da sua rede em tensões significativamente menores.<br />
<br />
Os cálculos de transformação de tensão, corrente e número de enrolamento são os seguintes:<br />
<br />
Fórmula:<br />
<br />
E1/E2 x N1/N2<br />
<br />
Quando o numero de espiras é proporcional a tensão.<br />
<br />
E1⁄ E2 x I2⁄ I1<br />
<br />
Quando a tensão é inversamente proporcional a corrente.<br />
<br />
Sendo que:<br />
<br />
N1= número de espiras no enrolamento primário<br />
<br />
N2= número de espiras no enrolamento secundário<br />
<br />
E1= tensão no primário<br />
<br />
E2= tensão no secundário<br />
<br />
I1= corrente no primário<br />
<br />
I2= corrente no secundário<br />
<br />
Tendo como base essas formula é possível você chegar também à conclusão de que em caso de ter-se um transformador com N1 > N2 terá um transformador abaixador de tensão e se tiver N1 < N2 terá um transformador elevador de tensão.<br />
<br />
Sabendo isso , podemos definir o transformador que iremos utilizar para o nosso projeto . <br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com5tag:blogger.com,1999:blog-1821373053886304480.post-40591000791399900352015-04-08T20:58:00.001-03:002015-04-08T20:58:12.505-03:00-- Pergunta --<a href="http://3.bp.blogspot.com/-aHygybZcwa0/VSXAhJYPKbI/AAAAAAAAAVY/jFfCgJ_lVVI/s1600/interrogacao.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-aHygybZcwa0/VSXAhJYPKbI/AAAAAAAAAVY/jFfCgJ_lVVI/s1600/interrogacao.jpg" height="209" width="320" /></a>Pessoal , o que voces gostariam de ver no blog ?? Voces são mais de 300 todos os dias ! Comentem por favorArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com9tag:blogger.com,1999:blog-1821373053886304480.post-145829387816854312014-12-03T20:13:00.000-02:002014-12-03T20:13:39.622-02:00Usando Display TFT e Sensor DHT11 (2/2)Continuando ..<br />
como não vamos usar o SD e nem o touch da tela ( por enquanto) . vamos ligar somente o necessário<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-7WumWysJ6RM/VH-F6Pjx3pI/AAAAAAAAAUs/2BdAgYFoGiM/s1600/Foto%2B03-12-14%2B15%2B38%2B24.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-7WumWysJ6RM/VH-F6Pjx3pI/AAAAAAAAAUs/2BdAgYFoGiM/s1600/Foto%2B03-12-14%2B15%2B38%2B24.jpg" height="200" width="150" /></a>Vamos ligar os pinos +5V , GND , LCD_RD,LCD_WR,LCD_RS,LCD_CS,LCD_RST E OS PINOS LCD_D0 ~ D7 .</div>
<br />
Com isso nos sobra 4 I/O .<br />
<br />
<a name='more'></a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Wbi_xJmpnDo/VH-F15nnVVI/AAAAAAAAAUk/cPJJZA6hxAw/s1600/Foto%2B03-12-14%2B16%2B02%2B19.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-Wbi_xJmpnDo/VH-F15nnVVI/AAAAAAAAAUk/cPJJZA6hxAw/s1600/Foto%2B03-12-14%2B16%2B02%2B19.jpg" height="200" width="150" /></a></div>
No arduino respectivamente<br />
LCD_RD --> A0<br />
LCD_WR-->A1<br />
LCD_RS -->A2<br />
LCD_CS -->A3<br />
LCD_RS -->A4<br />
LCD_D0 ~ D7 --> D2~D8<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-KFgwvd2nSiw/VH-F7ZhQ_VI/AAAAAAAAAU0/RQ8kGB41bLg/s1600/Foto%2B03-12-14%2B19%2B00%2B25.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-KFgwvd2nSiw/VH-F7ZhQ_VI/AAAAAAAAAU0/RQ8kGB41bLg/s1600/Foto%2B03-12-14%2B19%2B00%2B25.jpg" height="200" width="150" /></a></div>
Já no DHT11 <br />
A ligação é feita da seguinte forma<br />
Pino 1 --> +5V<br />
Pino 2 --> Sinal<br />
Pino 3--> Não usado<br />
Pino 4 --> GND<br />
<br />
O pino 2 vai ligado a porta D12 do arduino .<br />
<br />
<br />
<br />
<div style="text-align: center;">
--<br />
<div style="text-align: left;">
#include <DHT.h></div>
<div style="text-align: left;">
#define DHTPIN 12 </div>
<div style="text-align: left;">
#define DHTTYPE DHT11 </div>
<div style="text-align: left;">
DHT dht(DHTPIN, DHTTYPE);</div>
<div style="text-align: left;">
#include "TFTLCD.h"</div>
<div style="text-align: left;">
#include <SPI.h></div>
<div style="text-align: left;">
#define LCD_CS A3 </div>
<div style="text-align: left;">
#define LCD_CD A2 </div>
<div style="text-align: left;">
#define LCD_WR A1 </div>
<div style="text-align: left;">
#define LCD_RD A0 </div>
<div style="text-align: left;">
#define LCD_RESET A4</div>
<div style="text-align: left;">
#define<span class="Apple-tab-span" style="white-space: pre;"> </span>BLACK 0x0000</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
const int WIDTH = 240;</div>
<div style="text-align: left;">
const int HEIGHT = 320;</div>
<div style="text-align: left;">
uint16_t color;</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);</div>
<div style="text-align: left;">
int thisChar = 'a';</div>
<div style="text-align: left;">
void setup()</div>
<div style="text-align: left;">
{</div>
<div style="text-align: left;">
tft.reset();</div>
<div style="text-align: left;">
tft.initDisplay();</div>
<div style="text-align: left;">
tft.fillScreen(BLACK); </div>
<div style="text-align: left;">
//teste </div>
<div style="text-align: left;">
dht.begin();</div>
<div style="text-align: left;">
//</div>
<div style="text-align: left;">
tft.fillScreen(BLACK);</div>
<div style="text-align: left;">
tft.setCursor(30,0);</div>
<div style="text-align: left;">
tft.setTextColor(BLUE);</div>
<div style="text-align: left;">
tft.setTextSize(4);</div>
<div style="text-align: left;">
tft.println("A");</div>
<div style="text-align: left;">
tft.setCursor(60,0);</div>
<div style="text-align: left;">
tft.setTextColor(BLUE);</div>
<div style="text-align: left;">
tft.println("rduino");</div>
<div style="text-align: left;">
tft.setTextSize(2);</div>
<div style="text-align: left;">
tft.setCursor(70,40);</div>
<div style="text-align: left;">
tft.setTextColor(GREEN);</div>
<div style="text-align: left;">
tft.println("brasil");</div>
<div style="text-align: left;">
tft.setTextSize(2);</div>
<div style="text-align: left;">
tft.setTextColor(WHITE);</div>
<div style="text-align: left;">
tft.println("");</div>
<div style="text-align: left;">
tft.println("www.filipelop.com.br");</div>
<div style="text-align: left;">
tft.println("");</div>
<div style="text-align: left;">
tft.println("Termo-Higrometro");</div>
<div style="text-align: left;">
tft.print("Digital");</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
}</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
void loop(void)</div>
<div style="text-align: left;">
{</div>
<div style="text-align: left;">
delay(500);</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
float h = dht.readHumidity();</div>
<div style="text-align: left;">
float t = dht.readTemperature();</div>
<div style="text-align: left;">
float f = dht.readTemperature(true);</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
float hi = dht.computeHeatIndex(f, h);</div>
<div style="text-align: left;">
tft.setCursor(0,2); </div>
<div style="text-align: left;">
tft.fillScreen(BLACK); </div>
<div style="text-align: left;">
tft.print("Humidade: "); </div>
<div style="text-align: left;">
tft.print(h);</div>
<div style="text-align: left;">
tft.println("%");</div>
<div style="text-align: left;">
tft.setCursor(0,30); </div>
<div style="text-align: left;">
tft.print("Temperatura "); </div>
<div style="text-align: left;">
tft.print(t);</div>
<div style="text-align: left;">
tft.println("C ");</div>
<div style="text-align: left;">
tft.setCursor(0,60); </div>
<div style="text-align: left;">
tft.println("Sensacao Termica");</div>
<div style="text-align: left;">
hi=(hi-32)*0.56;</div>
<div style="text-align: left;">
tft.print(hi);</div>
<div style="text-align: left;">
tft.println("C");</div>
<div style="text-align: left;">
delay(1000);</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
}</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com1tag:blogger.com,1999:blog-1821373053886304480.post-10894626052348490492014-12-03T13:34:00.001-02:002014-12-03T20:13:32.792-02:00Usando Display TFT e Sensor DHT11 (1/2)Bem .. voltamos e (<strike>vamos logo com isso</strike>)<br />
<br />
Vamos lá .. Todo esse projeto será feito em parceria com os nossos colegas do <a href="http://filipeflop.com/?utm_source=ArduinoBrasil&utm_medium=banner&utm_campaign=ArduinoBrasil/" target="_blank">FilipeFlop</a><br />
Voce irá precisar de :<br />
<a href="http://2.bp.blogspot.com/-5djsFpEExtE/VH8eyOA5SjI/AAAAAAAAAUM/lWTsC18a9_4/s1600/IMG_1884.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://2.bp.blogspot.com/-5djsFpEExtE/VH8eyOA5SjI/AAAAAAAAAUM/lWTsC18a9_4/s1600/IMG_1884.JPG" height="150" width="200" /></a><br />
<br />
<br />
<ul>
<li> 1- <a href="http://www.filipeflop.com/pd-70544-display-lcd-tft-2-4-touchscreen-shield-para-arduino.html?ct=41d86&p=1&s=1" target="_blank">LCD TFT </a></li>
<li> 1- <a href="http://www.filipeflop.com/pd-6b58d-arduino-uno-r3-cabo-usb.html?ct=3d60d&p=1&s=1" target="_blank">Arduino UNO </a>ou <a href="http://www.filipeflop.com/pd-6b5b3-arduino-mega-2560-r3-cabo-usb.html?ct=3d60d&p=1&s=1" target="_blank">Arduino MEGA</a></li>
<li>1-<a href="http://www.filipeflop.com/pd-6b8f7-sensor-de-umidade-e-temperatura-dht11.html?ct=&p=1&s=1" target="_blank">Sensor de temperatura e humidade DHT11</a></li>
<li>1- <a href="http://www.filipeflop.com/pd-6e42e-kit-protoboard-profissional.html?ct=41cfb&p=1&s=1" target="_blank">Protoboard com alguns jumpers</a></li>
</ul>
<br />
<br />
<a name='more'></a>Pra começarmos , antes de tudo instale a biblioteca do LCD que voce faz o download <a href="http://www.4shared.com/zip/gU4UMYPBce/TFTLCD.html?" target="_blank">aqui</a><br />
<br />
<br />
<br />
A principio essa biblioteca funciona no arduino UNO , estou trabalhando para portar ela para o arduino MEGA para podermos ter mais I/O para fazermos um projeto bacana .<br />
<br />
Para voce ver se seu LCD está de acordo , encaixe ele no seu aruduino uno e faça o upload do seguinte código .<br />
#define LCD_CS A3 <br />
#define LCD_CD A2 <br />
#define LCD_WR A1 <br />
#define LCD_RD A0 <br />
// you can also just connect RESET to the arduino RESET pin<br />
#define LCD_RESET A4<br />
//Duemilanove/Diecimila/UNO/etc ('168 and '328 chips) microcontoller:<br />
// Color definitions<br />
#define<span class="Apple-tab-span" style="white-space: pre;"> </span>BLACK 0x0000<br />
#define<span class="Apple-tab-span" style="white-space: pre;"> </span>BLUE 0x001F<br />
#define<span class="Apple-tab-span" style="white-space: pre;"> </span>RED 0xF800<br />
#define<span class="Apple-tab-span" style="white-space: pre;"> </span>GREEN 0x07E0<br />
#define CYAN 0x07FF<br />
#define MAGENTA 0xF81F<br />
#define YELLOW 0xFFE0<br />
#define WHITE 0xFFFF<br />
<br />
#include "TFTLCD.h"<br />
<br />
TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);<br />
<br />
void setup(void) {<br />
Serial.begin(9600);<br />
Serial.println("8 Bit LCD test!");<br />
<br />
<br />
tft.reset();<br />
tft.initDisplay();<br />
<br />
<br />
<br />
<br />
testtext(RED);<br />
}<br />
<br />
void loop(void) {<br />
testFillRoundRect();<br />
delay(1000);<br />
testRoundRect();<br />
delay(1000);<br />
testtriangles();<br />
delay(1000);<br />
testfilltriangles();<br />
delay(1000);<br />
testfillcircles(100, BLUE);<br />
delay(1000);<br />
}<br />
<br />
<br />
void testFillRoundRect() {<br />
tft.fillScreen(BLACK);<br />
<br />
for (uint16_t x=tft.width(); x > 20 ; x-=6) {<br />
tft.fillRoundRect(tft.width()/2 -x/2, tft.height()/2 -x/2 , x, x, x/8, tft.Color565(0, x, 0));<br />
}<br />
}<br />
<br />
void testRoundRect() {<br />
tft.fillScreen(BLACK);<br />
<br />
for (uint16_t x=0; x < tft.width(); x+=6) {<br />
tft.drawRoundRect(tft.width()/2 -x/2, tft.height()/2 -x/2 , x, x, x/8, tft.Color565(x, 0, 0));<br />
}<br />
}<br />
<br />
void testtriangles() {<br />
tft.fillScreen(BLACK);<br />
for (uint16_t i=0; i<tft.width()/2; i+=5) {<br />
tft.drawTriangle(tft.width()/2, tft.height()/2-i,<br />
tft.width()/2-i, tft.height()/2+i,<br />
tft.width()/2+i, tft.height()/2+i, tft.Color565(0, 0, i));<br />
}<br />
}<br />
<br />
void testfilltriangles() {<br />
tft.fillScreen(BLACK);<br />
<br />
for (uint16_t i=tft.width()/2; i>10; i-=5) {<br />
tft.fillTriangle(tft.width()/2, tft.height()/2-i,<br />
tft.width()/2-i, tft.height()/2+i,<br />
tft.width()/2+i, tft.height()/2+i,<br />
tft.Color565(0, i, i));<br />
tft.drawTriangle(tft.width()/2, tft.height()/2-i,<br />
tft.width()/2-i, tft.height()/2+i,<br />
tft.width()/2+i, tft.height()/2+i, tft.Color565(i, i, 0)); <br />
}<br />
}<br />
<br />
void testtext(uint16_t color) {<br />
tft.fillScreen(BLACK);<br />
tft.setCursor(0, 20);<br />
tft.setTextColor(color);<br />
tft.setTextSize(3);<br />
tft.fillScreen(BLACK);<br />
tft.setCursor(30,0);<br />
tft.setTextColor(BLUE);<br />
tft.setTextSize(4);<br />
tft.println("A");<br />
tft.setCursor(60,0);<br />
tft.setTextColor(BLUE);<br />
tft.println("rduino");<br />
tft.setTextSize(2);<br />
tft.setCursor(70,40);<br />
tft.setTextColor(GREEN);<br />
tft.println("brasil");<br />
tft.setTextSize(2);<br />
tft.setTextColor(WHITE);<br />
tft.println("");<br />
tft.println("www.filipelop.com.br");<br />
tft.println("");<br />
delay(1000);<br />
//tft.println(0xDEADBEEF, HEX);<br />
}<br />
<br />
void testfillcircles(uint8_t radius, uint16_t color) {<br />
for (uint16_t x=radius; x < tft.width(); x+=radius*2) {<br />
for (uint16_t y=radius; y < tft.height(); y+=radius*2) {<br />
tft.fillCircle(x, y, radius, color);<br />
}<br />
} <br />
}<br />
<br />
void testdrawcircles(uint8_t radius, uint16_t color) {<br />
for (uint16_t x=0; x < tft.width()+radius; x+=radius*2) {<br />
for (uint16_t y=0; y < tft.height()+radius; y+=radius*2) {<br />
tft.drawCircle(x, y, radius, color);<br />
}<br />
} <br />
}<br />
<br />
<br />
void testfillrects(uint16_t color1, uint16_t color2) {<br />
tft.fillScreen(BLACK);<br />
for (uint16_t x=tft.width()-1; x > 6; x-=6) {<br />
//Serial.println(x, DEC);<br />
tft.fillRect(tft.width()/2 -x/2, tft.height()/2 -x/2 , x, x, color1);<br />
tft.drawRect(tft.width()/2 -x/2, tft.height()/2 -x/2 , x, x, color2);<br />
}<br />
}<br />
<br />
void testdrawrects(uint16_t color) {<br />
tft.fillScreen(BLACK);<br />
for (uint16_t x=0; x < tft.width(); x+=6) {<br />
tft.drawRect(tft.width()/2 -x/2, tft.height()/2 -x/2 , x, x, color);<br />
}<br />
}<br />
<br />
void testfastlines(uint16_t color1, uint16_t color2) {<br />
tft.fillScreen(BLACK);<br />
for (uint16_t y=0; y < tft.height(); y+=5) {<br />
tft.drawHorizontalLine(0, y, tft.width(), color1);<br />
}<br />
for (uint16_t x=0; x < tft.width(); x+=5) {<br />
tft.drawVerticalLine(x, 0, tft.height(), color2);<br />
}<br />
<br />
}<br />
<br />
void testlines(uint16_t color) {<br />
tft.fillScreen(BLACK);<br />
for (uint16_t x=0; x < tft.width(); x+=6) {<br />
tft.drawLine(0, 0, x, tft.height()-1, color);<br />
}<br />
for (uint16_t y=0; y < tft.height(); y+=6) {<br />
tft.drawLine(0, 0, tft.width()-1, y, color);<br />
}<br />
<br />
tft.fillScreen(BLACK);<br />
for (uint16_t x=0; x < tft.width(); x+=6) {<br />
tft.drawLine(tft.width()-1, 0, x, tft.height()-1, color);<br />
}<br />
for (uint16_t y=0; y < tft.height(); y+=6) {<br />
tft.drawLine(tft.width()-1, 0, 0, y, color);<br />
}<br />
<br />
tft.fillScreen(BLACK);<br />
for (uint16_t x=0; x < tft.width(); x+=6) {<br />
tft.drawLine(0, tft.height()-1, x, 0, color);<br />
}<br />
for (uint16_t y=0; y < tft.height(); y+=6) {<br />
tft.drawLine(0, tft.height()-1, tft.width()-1, y, color);<br />
}<br />
<br />
tft.fillScreen(BLACK);<br />
for (uint16_t x=0; x < tft.width(); x+=6) {<br />
tft.drawLine(tft.width()-1, tft.height()-1, x, 0, color);<br />
}<br />
for (uint16_t y=0; y < tft.height(); y+=6) {<br />
tft.drawLine(tft.width()-1, tft.height()-1, 0, y, color);<br />
}<br />
}<br />
<br />
<br />
void testBars() {<br />
uint16_t i,j;<br />
for(i=0; i < tft.height(); i++)<br />
{<br />
for(j=0; j < tft.width(); j++)<br />
{<br />
if(i>279) tft.writeData(WHITE);<br />
else if(i>239) tft.writeData(BLUE);<br />
else if(i>199) tft.writeData(GREEN);<br />
else if(i>159) tft.writeData(CYAN);<br />
else if(i>119) tft.writeData(RED);<br />
else if(i>79) tft.writeData(MAGENTA);<br />
else if(i>39) tft.writeData(YELLOW);<br />
else tft.writeData(BLACK);<br />
}<br />
}<br />
}<br />
Se tudo funcionar certinho voce irá ver varias imagens se formando no seu lcd tft .<br />
<div>
<br /></div>
ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com2tag:blogger.com,1999:blog-1821373053886304480.post-44471955255043196352014-12-01T16:09:00.000-02:002014-12-01T16:09:29.407-02:00---- WILL BE BACK -----<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-gULKFGOwSXo/VHyuzD4wvuI/AAAAAAAAAT0/F0Pzm2GQeaA/s1600/voltamos.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-gULKFGOwSXo/VHyuzD4wvuI/AAAAAAAAAT0/F0Pzm2GQeaA/s1600/voltamos.jpg" height="160" width="320" /></a></div>
<br />ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com0tag:blogger.com,1999:blog-1821373053886304480.post-40076506932297229772014-09-11T11:55:00.000-03:002014-09-11T11:55:36.599-03:00DooohPessoal , me desculpem ficar sem postar mas tenho como explicar , quinta feira passada arrombaram minha casa e levaram meus 2 pcs e minha camera ..(to postando do celular ) .. Bom é isso .. Espero conseguir minhas coisas devolta o mais rapidamente para poder voltar a postar<br />
<div class="separator" style="clear: both;">
<a href="https://lh3.googleusercontent.com/-h_lFBmv88w8/VBG3s28SXsI/AAAAAAAAATU/4ZobgMDpe74/s640/blogger-image--957050929.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh3.googleusercontent.com/-h_lFBmv88w8/VBG3s28SXsI/AAAAAAAAATU/4ZobgMDpe74/s640/blogger-image--957050929.jpg" /></a></div>
ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com2tag:blogger.com,1999:blog-1821373053886304480.post-13323717632497754362014-08-27T13:37:00.003-03:002014-08-27T13:37:55.568-03:00__ Esclarecimentos __ Pessoal , as duas ultimas semanas foram corridas demais pra mim , tanto que não tive tempo de escrever aqui no blog .. já tenho tudo montado só falta escrever mesmo espero que domingo agora eu consiga escrever o tutorial sobre motores de passo e programar pelomenos mais dois posts - Controlde de motor brushless e tambem controle de humidade de solo .<br />
<br />
desculpem mesmo , inclusive ao nosso parceiro <a class="g-profile" href="https://plus.google.com/114010156598988421043" target="_blank">+FILIPEFLOP</a>ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com0tag:blogger.com,1999:blog-1821373053886304480.post-49860253614655491122014-08-17T11:18:00.003-03:002014-08-17T11:18:48.825-03:00Como são feitas as betarias de Lithium <iframe allowfullscreen="" frameborder="0" height="360" src="//www.youtube.com/embed/Lt6oKRQqoSc" width="480"></iframe><br />
<br />ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com0tag:blogger.com,1999:blog-1821373053886304480.post-31098744357810471362014-07-27T16:39:00.000-03:002014-07-28T21:15:53.622-03:00Gravando Bootloader em um arduino na protoboard Olá pessoal , sem mais delongas vamos ao que interessa !<br />
Nesse nosso projeto vamos gravar um ci ATMega328p , o mesmo que é usado no arduino uno por exemplo . Mas esse que vamos gravar está virgem , nao tem absolutamente nada gravado .<br />
E para isso vamos lá ..<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-rmTEgCQNlBY/U9RPdLs_wGI/AAAAAAAAAQ4/FRo5aIXr4DY/s1600/DSCN5861.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-rmTEgCQNlBY/U9RPdLs_wGI/AAAAAAAAAQ4/FRo5aIXr4DY/s1600/DSCN5861.JPG" height="150" width="200" /></a></div>
<br />
Voce irá precisar de :<br />
1- <a href="http://www.filipeflop.com/pd-6b614-protoboard-1660-pontos-hikari-hk-p200.html" target="_blank">Protoboard</a><br />
1-<a href="http://www.filipeflop.com/arduino-ct-3d60b" target="_blank">Arduino </a><br />
Alguns <a href="http://www.filipeflop.com/pd-6b637-kit-jumpers-macho-macho-x65-unidades.html" target="_blank">Jumpers </a><br />
E um CI <a href="http://www.filipeflop.com/pd-6b5e5-mini-kit-arduino-atmega328-bootloader.html" target="_blank">ATMega328</a><br />
<br />
<br />
<div style="text-align: center;">
--<br />
<br />
<br /></div>
<div style="text-align: left;">
Para começar , insira o ATMega a ser gravado na protoboard e faça as seguintes ligações<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-A1ZZkQ6vNGI/U9VNExSVZgI/AAAAAAAAARc/kRIXGCmFmI0/s1600/DSCN5864.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://2.bp.blogspot.com/-A1ZZkQ6vNGI/U9VNExSVZgI/AAAAAAAAARc/kRIXGCmFmI0/s1600/DSCN5864.JPG" height="150" width="200" /></a><a href="https://1.bp.blogspot.com/-bETEnBcpiOk/U9VL2bamRkI/AAAAAAAAARU/Ck8AbkY-liU/s1600/Captura+de+Tela+2014-07-26+a%CC%80s+23.30.40.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="" border="0" src="http://1.bp.blogspot.com/-bETEnBcpiOk/U9VL2bamRkI/AAAAAAAAARU/Ck8AbkY-liU/s1600/Captura+de+Tela+2014-07-26+a%CC%80s+23.30.40.png" height="200" title="" width="176" /></a><a href="http://1.bp.blogspot.com/-uomuuJyH0pE/U9VHbp3MqWI/AAAAAAAAARI/DgBEJRvGYtc/s1600/DSCN5863.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="http://1.bp.blogspot.com/-bETEnBcpiOk/U9VL2bamRkI/AAAAAAAAARU/Ck8AbkY-liU/s1600/Captura+de+Tela+2014-07-26+a%CC%80s+23.30.40.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://1.bp.blogspot.com/-uomuuJyH0pE/U9VHbp3MqWI/AAAAAAAAARI/DgBEJRvGYtc/s1600/DSCN5863.JPG" imageanchor="1"><img border="0" src="http://1.bp.blogspot.com/-uomuuJyH0pE/U9VHbp3MqWI/AAAAAAAAARI/DgBEJRvGYtc/s1600/DSCN5863.JPG" height="150" width="200" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both;">
<a href="http://www.atmel.com/Images/doc8161.pdf" target="_blank">Datasheet do ATMega328</a></div>
<div class="separator" style="clear: both;">
<span style="font-family: Times, Times New Roman, serif;">Função | Pino no ATMega328p | Pino no Arduino </span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Times, Times New Roman, serif;">Reset | 1 | 10</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Times, Times New Roman, serif;">MOSI | 17- <span style="background-color: white;">PB3 | 11 </span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Times, Times New Roman, serif;">MISO | 18- PB4 | 12</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Times, Times New Roman, serif;">SCK | 19- PB5 | 13</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Times, Times New Roman, serif;">VCC | 7- VCC | +5v </span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Times, Times New Roman, serif;">GND | 8-Gnd | GND</span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Times, Times New Roman, serif;">PS. O cristal de clock precisa estar ligado nos pinos ( PB6 e PB7) terminais 9 e 10 com capacitores de 15pF aterrados </span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Times, Times New Roman, serif;">Feitas essas ligações vamos a IDE </span></div>
<div class="separator" style="clear: both;">
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
<div class="" style="clear: both;">
<a href="http://3.bp.blogspot.com/-3LQz2oWPdz8/U9VRnmHNaEI/AAAAAAAAAR0/UKOAw7aq6YM/s1600/Captura+de+Tela+2014-07-27+a%CC%80s+16.22.50.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-3LQz2oWPdz8/U9VRnmHNaEI/AAAAAAAAAR0/UKOAw7aq6YM/s1600/Captura+de+Tela+2014-07-27+a%CC%80s+16.22.50.png" height="320" width="264" /></a><span style="font-family: Times, Times New Roman, serif;"><br />No MacOS e no Windows o caminho o mesmo : Arquivo > Exemplos > Arduino ISP </span></div>
<div class="" style="clear: both;">
<span style="font-family: Times, Times New Roman, serif;"> </span><span style="font-family: Times, 'Times New Roman', serif; text-align: center;">Feito isso de um upload desse sketch para o arduino e aguarde terminar </span><br />
<span style="font-family: Times, 'Times New Roman', serif; text-align: center;"><br /></span>
<span style="font-family: Times, 'Times New Roman', serif; text-align: center;">Agora para gravar o bootloader voce precisará fazer uma leve alteração na IDE .</span><br />
<span style="font-family: Times, 'Times New Roman', serif; text-align: center;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-2npxc1wQNgE/U9VTEW6lc3I/AAAAAAAAASA/uwfM3ewlBqc/s1600/Captura+de+Tela+2014-07-27+a%CC%80s+16.28.35.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-2npxc1wQNgE/U9VTEW6lc3I/AAAAAAAAASA/uwfM3ewlBqc/s1600/Captura+de+Tela+2014-07-27+a%CC%80s+16.28.35.png" height="136" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Em resumo , voce precisa dizer para a IDE que voce vai usar o arduino como um caminho para poder gravar o bootloader em um ATMega328p novinho em folha.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Feito isso , clique em Ferramentas > Gravar bootloader </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/-BlUEyhQC_Uw/U9VTmcSehCI/AAAAAAAAASI/n8JVCoHWyeQ/s1600/Captura+de+Tela+2014-07-27+a%CC%80s+16.31.02.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-BlUEyhQC_Uw/U9VTmcSehCI/AAAAAAAAASI/n8JVCoHWyeQ/s1600/Captura+de+Tela+2014-07-27+a%CC%80s+16.31.02.png" height="116" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="" style="clear: both; text-align: center;">
Na janela do Arduino ISP irá aparecer a mensagem </div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-5LJEEI76UO8/U9VT28lCYxI/AAAAAAAAASQ/f7X75qpRXUg/s1600/Captura+de+Tela+2014-07-27+a%CC%80s+16.31.59.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-5LJEEI76UO8/U9VT28lCYxI/AAAAAAAAASQ/f7X75qpRXUg/s1600/Captura+de+Tela+2014-07-27+a%CC%80s+16.31.59.png" height="200" width="165" /></a></div>
<div class="" style="clear: both; text-align: center;">
Gravando o bootloader na placa de E/S ( Isso pode demorar um tempinho) ..</div>
<div class="" style="clear: both; text-align: center;">
</div>
<div class="" style="clear: both; text-align: center;">
<br /></div>
Caso voce tenha montado tudo certinho ao final deverá aparecer a mensagem<br />
<div class="" style="clear: both; text-align: center;">
Gravação do bootloader concluida .</div>
<div class="" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-aYPepCVzgmw/U9VUYiyokZI/AAAAAAAAASc/PI3StqD9MpI/s1600/Captura+de+Tela+2014-07-27+a%CC%80s+16.32.57.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-aYPepCVzgmw/U9VUYiyokZI/AAAAAAAAASc/PI3StqD9MpI/s1600/Captura+de+Tela+2014-07-27+a%CC%80s+16.32.57.png" height="200" width="165" /></a></div>
<span style="font-family: Times, 'Times New Roman', serif; text-align: center;"><br /></span></div>
<div class="page" title="Page 2">
<div class="section" style="background-color: rgb(100.000000%, 100.000000%, 100.000000%);">
<div class="layoutArea">
<div class="column">
</div>
</div>
</div>
</div>
<div class="page" title="Page 2">
<div class="section" style="background-color: rgb(100.000000%, 100.000000%, 100.000000%);">
<div class="layoutArea">
<div class="column">
<span style="font-family: 'Helvetica'; font-size: 6.000000pt;"> </span></div>
</div>
</div>
</div>
<div class="" style="clear: both;">
</div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br /></div>
<!-- Blogger automated replacement: "https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http%3A%2F%2F1.bp.blogspot.com%2F-bETEnBcpiOk%2FU9VL2bamRkI%2FAAAAAAAAARU%2FCk8AbkY-liU%2Fs1600%2FCaptura%2Bde%2BTela%2B2014-07-26%2Ba%25CC%2580s%2B23.30.40.png&container=blogger&gadget=a&rewriteMime=image%2F*" with "https://1.bp.blogspot.com/-bETEnBcpiOk/U9VL2bamRkI/AAAAAAAAARU/Ck8AbkY-liU/s1600/Captura+de+Tela+2014-07-26+a%CC%80s+23.30.40.png" --><!-- Blogger automated replacement: "https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http%3A%2F%2F1.bp.blogspot.com%2F-uomuuJyH0pE%2FU9VHbp3MqWI%2FAAAAAAAAARI%2FDgBEJRvGYtc%2Fs1600%2FDSCN5863.JPG&container=blogger&gadget=a&rewriteMime=image%2F*" with "https://1.bp.blogspot.com/-uomuuJyH0pE/U9VHbp3MqWI/AAAAAAAAARI/DgBEJRvGYtc/s1600/DSCN5863.JPG" -->ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com0tag:blogger.com,1999:blog-1821373053886304480.post-63135183101720599072014-07-22T22:37:00.001-03:002014-07-22T22:37:33.207-03:00Workshop - Arduino para iniciantes Pessoal , em parceria com o meu colega <a href="https://www.facebook.com/vinciusfneves?fref=ufi" target="_blank">Vinicius Neves</a> do <a href="http://arduinocuritiba.com/" target="_blank">Arduino Curitiba</a> Estamos fazendo um workshop<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ynV5yTBLxMk/U88RhBU8esI/AAAAAAAAAP8/k3l0VBeFSYI/s1600/cartaz-ba%CC%81sico-site2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-ynV5yTBLxMk/U88RhBU8esI/AAAAAAAAAP8/k3l0VBeFSYI/s1600/cartaz-ba%CC%81sico-site2.jpg" height="640" width="451" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Ainda temos 5 vagas para a primeira turma ! </div>
<div class="separator" style="clear: both; text-align: center;">
corram e se inscrevam . </div>
<br />ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com0tag:blogger.com,1999:blog-1821373053886304480.post-59797702942310417862014-07-22T22:28:00.001-03:002014-07-22T22:28:28.745-03:00Linha de Montagem - Arduino Voce já conhece como é montado o seu arduino ?? Não ? Então não deixe de ver o video abaixo<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="//www.youtube.com/embed/21hPmFNYUNo" width="640"></iframe><br />
<br />
E pessoal , apartir do mes que vem teremos pelomenos uma postagem semanal com um projeto novo por postagem ( ou sequencia de posts ) !ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com2tag:blogger.com,1999:blog-1821373053886304480.post-64002929152232564752014-06-17T17:41:00.002-03:002014-06-17T17:41:59.036-03:00Projeto BirutaVario (Opensource)<br />
Olá amigos, estamos desenvolvendo uma espécie de Biruta misturada com Variômetro, que irá apitar de acordo com a velocidade/aceleração do vento, auxiliando no momento ideal para uma decolagem mais tranquila, e como está escrito no título, ela será de código aberto (opensource) ou seja, quem quiser fazer sua própria biruta, basta comprar os materiais necessários que vamos mostrar passo a passo de como deve ser montada, e vamos disponibilizar também o código para o microcontrolador da biruta, responsável por calcular os apitos etc.. e para o caso de alguém que não queira montar, estaremos vendendo elas também.<br />
Segue uma imagem de como pretendemos montar o circuito em uma biruta convencional.. detalhe, a primeira parte da biruta terá que ser rígida, para poder sustentar o peso da placa solar e do speaker.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-1Xv7ybe8S_E/U5_Tpi4OA7I/AAAAAAAAACM/Ny3yOkbbNhw/s1600/10463054_779218385456080_5797616921542565831_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-1Xv7ybe8S_E/U5_Tpi4OA7I/AAAAAAAAACM/Ny3yOkbbNhw/s1600/10463054_779218385456080_5797616921542565831_n.jpg" height="420" width="640" /></a></div>
Por enquanto estamos em fase de testes, adicionando algumas idéias e tirando outras, caso algum piloto queira nos ajudar, por favor nos envie um email (voolivrebrasil1@gmail.com), vou deixar alguns links abaixo do andamento do projeto.. por favor, caso você esteja interessado com a idéia, não deixe de nos mandar sua sugestão!<br />
<br />
Para mais informações <a href="http://www.voolivrebr.blogspot.com/" target="_blank">clique aqui ! </a><br />
<br />
ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com2tag:blogger.com,1999:blog-1821373053886304480.post-14012341565522118522014-06-15T01:02:00.001-03:002014-06-15T01:04:17.465-03:00Como identificar um controle RF433 ( 1/2) Isso ai , estamos de volta (<strike>depois de um grande furacão que passou por aqui </strike>) .<br />
Hoje vou explicar como fazer a decodificação de um radio 433<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-HbhZqr4V5HI/U5zFWFo3oPI/AAAAAAAAAOg/CfOdoZmdVgw/s1600/DSCN5600.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-HbhZqr4V5HI/U5zFWFo3oPI/AAAAAAAAAOg/CfOdoZmdVgw/s1600/DSCN5600.JPG" height="150" width="200" /></a></div>
esse mesmo que voce usa para ligar o alarme da sua casa ou abrir o seu portão eletrônico .<br />
Por um acaso voce ja teve algum dia seu vizinho fechando o carro e abrindo o seu portão ?<br />
Então chega de papo e vamos ao que interessa ! <br />
<br />
<a name='more'></a>Voce vai precisar de :<br />
1- Arduino<br />
1-Receptor RF-433MHz<br />
1-Protoboard<br />
1-Emissor RF-433 ( Controle remoto de portão )<br />
Alguns Jumpers<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-oiir5PkaxeU/U50VIvI_5zI/AAAAAAAAAOw/4mzwBbns9Qc/s1600/DSCN5601.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-oiir5PkaxeU/U50VIvI_5zI/AAAAAAAAAOw/4mzwBbns9Qc/s1600/DSCN5601.JPG" height="150" width="200" /></a></div>
Vamos a ligação<br />
Da esquerda para direita<br />
Terminal 1- GND<br />
Terminal 2 - Saida Digital<br />
Terminal 3 - Saida Analogica<br />
Terminal 4 - Vcc +5V<br />
Terminal 5 - Vcc +5V<br />
Terminal 6 e 7 - GND<br />
Terminal 8 - Antena<br />
<br />
Vamos as ligações <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-W7F5lGH0KOc/U50V8eJj0oI/AAAAAAAAAO4/_BShz-5fIFI/s1600/DSCN5597.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-W7F5lGH0KOc/U50V8eJj0oI/AAAAAAAAAO4/_BShz-5fIFI/s1600/DSCN5597.JPG" height="150" width="200" /></a></div>
Terminal 1- GND<br />
Terminal 2- Porta 2 do arduino<br />
Terminal 3 - Sem ligação<br />
Terminal 4- +5V<br />
Terminal 8 - Um jumper para servir de antena<br />
<br />
<br />
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
--</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
Vamos a programação </div>
<div style="text-align: left;">
<br /></div>
<span style="font-family: Courier New, Courier, monospace;">int x,startbit, startbit1,ctr,dataok,t1,larpulso,larpulso1,larpulso2,larpulso3,larpulso4,bt1,bt2,antcode=0;</span><br />
<span style="font-family: Courier New, Courier, monospace;">unsigned long _data, _data2=0; </span><br />
<span style="font-family: Courier New, Courier, monospace;">unsigned long _dur,_dur1; </span><br />
<span style="font-family: Courier New, Courier, monospace;">byte _pinIn = 2; </span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">#define PPM_Pin 3 </span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">void setup()</span><br />
<span style="font-family: Courier New, Courier, monospace;">{</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Serial.begin(9600);</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Serial.println("Pronto par decodificar");</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> pinMode(PPM_Pin, INPUT);</span><br />
<span style="font-family: Courier New, Courier, monospace;"> pinMode(13, OUTPUT);</span><br />
<span style="font-family: Courier New, Courier, monospace;"> digitalWrite(13, LOW);</span><br />
<span style="font-family: Courier New, Courier, monospace;"> attachInterrupt(PPM_Pin - 2, read_ppm, CHANGE);</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> TCCR1A = 0; </span><br />
<span style="font-family: Courier New, Courier, monospace;"> TCCR1B = 0;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> TCCR1B |= (1 << CS11); </span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;">}</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">void loop()</span><br />
<span style="font-family: Courier New, Courier, monospace;">{</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Serial.println("Conteudo _data2 - " + String(_data2,HEX));</span><br />
<span style="font-family: Courier New, Courier, monospace;"> delay(500);</span><br />
<span style="font-family: Courier New, Courier, monospace;">}</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">void read_ppm(){ </span><br />
<span style="font-family: Courier New, Courier, monospace;"> static unsigned long counter;</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"> counter = TCNT1; </span><br />
<span style="font-family: Courier New, Courier, monospace;"> TCNT1 = 0;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> _dur = counter;</span><br />
<br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> if(_dur > 20000 && _dur < 24000 && startbit==0)</span><br />
<span style="font-family: Courier New, Courier, monospace;"> { </span><br />
<span style="font-family: Courier New, Courier, monospace;"> digitalWrite(13,!digitalRead(13));</span><br />
<span style="font-family: Courier New, Courier, monospace;"> larpulso=_dur/23;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> larpulso1=larpulso-100;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> larpulso2=larpulso+100;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> larpulso3=larpulso+larpulso-50;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> larpulso4=larpulso+larpulso+50;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> startbit=1;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> _dur=0;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> _data=0; </span><br />
<span style="font-family: Courier New, Courier, monospace;"> dataok=0;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> ctr=0;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> }</span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"> if(startbit == 1)</span><br />
<span style="font-family: Courier New, Courier, monospace;"> {</span><br />
<span style="font-family: Courier New, Courier, monospace;"> startbit++;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> }else if (startbit==2 && dataok==0 && ctr < 28 && digitalRead(2) == HIGH) </span><br />
<span style="font-family: Courier New, Courier, monospace;"> { </span><br />
<span style="font-family: Courier New, Courier, monospace;"> ++ctr; </span><br />
<span style="font-family: Courier New, Courier, monospace;"> _dur1 = counter;</span><br />
<br />
<span style="font-family: Courier New, Courier, monospace;"> if(_dur1 > larpulso1 && _dur1 < larpulso2) </span><br />
<span style="font-family: Courier New, Courier, monospace;"> {</span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"> _data = (_data << 1) ; </span><br />
<span style="font-family: Courier New, Courier, monospace;"> }</span><br />
<span style="font-family: Courier New, Courier, monospace;"> else if(_dur1 > larpulso3 && _dur1 < larpulso4) </span><br />
<span style="font-family: Courier New, Courier, monospace;"> {</span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"> _data = (_data << 1) + 1; </span><br />
<span style="font-family: Courier New, Courier, monospace;"> }</span><br />
<span style="font-family: Courier New, Courier, monospace;"> else</span><br />
<span style="font-family: Courier New, Courier, monospace;"> {</span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"> startbit=0;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> }</span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"> }</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">if (ctr==28)</span><br />
<span style="font-family: Courier New, Courier, monospace;"> { </span><br />
<span style="font-family: Courier New, Courier, monospace;"> if (bitRead(_data,0)==1 && bitRead(_data,1)==0 && bitRead(_data,2)==1 && bitRead(_data,3)==0)</span><br />
<span style="font-family: Courier New, Courier, monospace;"> { </span><br />
<span style="font-family: Courier New, Courier, monospace;"> antcode=1;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> } else { </span><br />
<span style="font-family: Courier New, Courier, monospace;"> ctr = 0;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"> }</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> if (antcode==1)</span><br />
<span style="font-family: Courier New, Courier, monospace;"> {</span><br />
<span style="font-family: Courier New, Courier, monospace;"> dataok=1;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"> _data2 = _data;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> ctr=0;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> startbit=0;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> antcode=0;</span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"> }</span><br />
<span style="font-family: Courier New, Courier, monospace;"> </span><br />
<span style="font-family: Courier New, Courier, monospace;"> }</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">}</span><br />
<br />
<br />
<br />
Depois disso abra o monitor serial e aperte um botão em um controle .. irá aparecer o código hexadecimal que identifica o controle .<br />
<br />
<br />
<br />
<br />
<br />ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com9tag:blogger.com,1999:blog-1821373053886304480.post-24065776986049599542014-06-13T11:15:00.001-03:002014-06-13T11:15:37.386-03:00Will be back ! Isso ai mesmo , estamos de volta ! <br />
depois de um longo tempo sem postar nada .. agora estamos de volta ! logo mais já teremos novos projetos que saíram do forno agorinha mesmo .<br />
<br />ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com0tag:blogger.com,1999:blog-1821373053886304480.post-67960255469319362862014-04-18T19:28:00.000-03:002014-04-18T19:28:59.655-03:00Ganhadores do sorteio ! <div style="text-align: center;">
Depois de algum tempo verificando se todos os sorteados cumpriram com o acordo , de comentar certinho e de seguir o blog .<br />
<br />
<br />
Vamos aos felizardos -<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/--CLUULAs4L4/U1GmPlqE1AI/AAAAAAAAANc/g-KhLRVKrls/s1600/image-4.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/--CLUULAs4L4/U1GmPlqE1AI/AAAAAAAAANc/g-KhLRVKrls/s1600/image-4.jpeg" height="320" width="239" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
1- Stellaris | Nailson Rodrigues </div>
<div class="separator" style="clear: both; text-align: center;">
2 - Stellaris | Lucas Silva Chaves</div>
<div class="separator" style="clear: both; text-align: center;">
3 - Ethernet Shield | Herbert Franco</div>
<div class="separator" style="clear: both; text-align: center;">
4 - Arduino Uno | Bruno Bertoldi </div>
<div class="separator" style="clear: both; text-align: center;">
5 - Multimetro | Hugo Rocha </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;">
Aos sorteados estou enviando um email para confirmação do endereço de entrega </div>
<div class="separator" style="clear: both; text-align: center;">
Caso não respondam em 7 dias o prêmio ficará para um próximo sorteio .</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<br /></div>
<div style="text-align: center;">
<span style="font-family: Courier New, Courier, monospace; font-size: large;"><br /></span>
<span style="font-family: Courier New, Courier, monospace; font-size: large;"><br /></span></div>
ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com2tag:blogger.com,1999:blog-1821373053886304480.post-8858404018387824862014-03-26T20:01:00.003-03:002014-03-26T20:01:54.918-03:00Semana de provas --Pessoal , o sorteio já foi feito e ja tenho o nome dos ganhadores .<br />
Mas ainda não tive tempo de editar o video mostrando o sorteio e agora para ajudar um pouco .. começou a minha semana de provas e como todos sabem .. engenharia é onde o filho chora e a mãe não ve .<br />
<br />
Até daqui alguns dias .. aproveitem para fazer todos os projetos que eu já postei aqui e logo logo tem muito mais.<br />
<br />
obrigado galera !!ArduinoBrasilhttp://www.blogger.com/profile/17368746696391961080noreply@blogger.com2tag:blogger.com,1999:blog-1821373053886304480.post-76310109363831251842014-03-18T20:42:00.000-03:002014-04-07T16:48:24.071-03:00Sorteio ! - Atualizado 2<a href="http://4.bp.blogspot.com/-Tdz_GASmKNU/UjNSkoFjKkI/AAAAAAAABX0/n_UCRkjuV88/s1600/image.jpeg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-Tdz_GASmKNU/UjNSkoFjKkI/AAAAAAAABX0/n_UCRkjuV88/s200/image.jpeg" height="200" width="149" /></a>Pessoal , na proxima semana (se tudo der certo ) vai rolar um sorteio aqui no blog !<br />
Ainda estou definindo como será o sorteio .<br />
O ganhador levará pra casa um kit launchpad MSP-430 ! (aká arduino da texas instrument).<br />
<br />
<div style="text-align: center;">
-------</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
E para começarmos 2014 com o pé direito !!! vamos sortear um arduino uno um launchpad MSP-430 e quem sabe alguns componentes / shields </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Para participar é simples , basta <b>comentar nesse post apenas</b> - "Eu quero um arduino do blog arduino brasil ! escrever seu email e seguir o blog ! " que voce ja estará concorrendo .<br />
<br /></div>
<div style="text-align: left;">
o sorteio ainda não tem data definida , será no inicio de fevereiro/2014 , será feito pelo site random.org e o numero que for gerado lá , será contado apartir do primeiro comentário até o felizardo(a) que irá ganhar.</div>
<div style="text-align: left;">
vão ser sorteados uma coisa por vez </div>
<div style="text-align: left;">
1-arduino uno </div>
<div style="text-align: left;">
2-msp-430</div>
<div style="text-align: left;">
3-shield</div>
<div style="text-align: left;">
4- componentes </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Então ... boa sorte a todos !<br />
<br />
<div style="text-align: center;">
---</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: left;">
Tudo comprado galera ! </div>
<div style="text-align: left;">
1- EthernetShield</div>
<div style="text-align: left;">
1-Stellaris LaunchPad</div>
<div style="text-align: left;">
1-Arduino UNO</div>
<div style="text-align: left;">
1-Modulo Bluetooth</div>
<div style="text-align: left;">
1-Multimetro<br />
<br />
Componentes já no bra$il ! estão todos parados na receita , espero não ser taxado .<br />
<br />
Para ajudar a todos .. correios de greve agora ..<br />
BUT -- <b>um</b> dos premios já chegou !<br />
agora resta esperar o resto !<br />
<br />
<div style="text-align: center;">
--</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<a href="http://4.bp.blogspot.com/-WrZfhtxd9GQ/UyjZba9yFHI/AAAAAAAAANI/pAK-PioZ7cI/s1600/image-3.jpeg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-WrZfhtxd9GQ/UyjZba9yFHI/AAAAAAAAANI/pAK-PioZ7cI/s1600/image-3.jpeg" height="239" width="320" /></a></div>
<div style="text-align: left;">
Isso ai pessoal ! depois de muita espera , burocracia ,ineficiencia dos correios , furto dentro dos correios .. chegou (quase) tudo aqui .</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
A ordem do sorteio será :</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
1-Stellaris LaunchPad</div>
<div style="text-align: left;">
2-Stellaris LaunchPad</div>
<div style="text-align: left;">
3-Ethernet Shield </div>
<div style="text-align: left;">
4- Arduino UNO R3 </div>
<div style="text-align: left;">
5-Multimetro </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Aproveitem para concorrer , ainda dá tempo - o sorteio será na sexta feira (21/03) as 18 horas !<br />
<br />
<br />
ps* o módulo bluetooth chegou no brasil e 'sumiu'<br />
<br />
<br />
<br />
<br />
<div style="text-align: center;">
---</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
Por motivos de falta de luz o sorteio está sendo feito agora </div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
---</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
Quem não seguiu as regras do sorteio , está automaticamente excluído .</div>
<div style="text-align: center;">
logo mais eu posto um video do sorteio.</div>
</div>
</div>
<div style="text-align: center;">
<br /></div>
</div>
Unknownnoreply@blogger.com121