tag:blogger.com,1999:blog-86528325750151312332024-03-12T17:28:16.429-07:00GuriduinoCompartilhando Projetos com ArduínoGurihttp://www.blogger.com/profile/14410025790657788988noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-8652832575015131233.post-55504058141698387472013-06-09T11:46:00.001-07:002013-06-10T20:29:21.486-07:00Guriduino: Ponte H<div style="text-align: justify;">
<span style="font-family: 'Trebuchet MS', sans-serif;">Ponte H é um circuito
eletrônico que permite que um micro controlador controle um </span>motor<span style="font-family: 'Trebuchet MS', sans-serif;"> DC, o micro
controlador que no caso é o arduino, por sí não consegue "dar" a corrente necessária para o
funcionamento do motor, e ainda torna possível que o motor rode tanto para um
sentido quanto o outro. Estes circuitos são geralmente utilizados em </span>robótica<span style="font-family: 'Trebuchet MS', sans-serif;"> e
estão disponíveis em circuitos prontos ou podem ser construídos por
componentes.</span></div>
<div>
<div style="text-align: justify;">
<span style="font-family: 'Trebuchet MS', sans-serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Trebuchet MS, sans-serif;"><o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<b><span style="font-family: Trebuchet MS, sans-serif;">Funcionamento:<o:p></o:p></span></b></div>
<div class="MsoNormal" style="text-align: justify;">
<b><span style="font-family: Trebuchet MS, sans-serif;"><br /></span></b></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">O nome ponte H é dado pela forma que assume o circuito
quando montado. O circuito é construído com quatro "chaves" ( <i>S1</i>-<i>S4</i>
) que são acionadas de forma alternada ( <i>S1</i> e <i>S4</i> ou <i>S2</i> e <i>S3</i>).
Para cada configuração das chaves o motor gira em um sentido.<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsvm0xurvNMaKeiXotW4l0joIqr7tlm_U-wjet_fzaOTRyqQEimDzbmPFhCVuRDRqCahqmma5H5IA2GTfAdH1j1kDF2CLauPZcgC_iQJIIJltjZzhDGanuzbmQ9o46ooga-jyLsaCFxFQ/s1600/Ponte+001.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="122" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsvm0xurvNMaKeiXotW4l0joIqr7tlm_U-wjet_fzaOTRyqQEimDzbmPFhCVuRDRqCahqmma5H5IA2GTfAdH1j1kDF2CLauPZcgC_iQJIIJltjZzhDGanuzbmQ9o46ooga-jyLsaCFxFQ/s1600/Ponte+001.png" width="400" /></a></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<span style="font-family: Trebuchet MS, sans-serif;"></span><br />
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<span style="font-family: Trebuchet MS, sans-serif;">
</span>
<br />
<div class="MsoNormal" style="text-align: justify;">
<b><span style="font-family: Trebuchet MS, sans-serif;">Componentes:<o:p></o:p></span></b></div>
<div class="MsoNormal" style="text-align: justify;">
<b><span style="font-family: Trebuchet MS, sans-serif;"><br /></span></b></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">2 TIPS 122;<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">2 TIPS 127;<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">4 Resistores de 3K;<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif; font-size: x-small;"><b><br /></b></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif; font-size: x-small;"><b>Observações: Nesse nosso caso a alimentação é feita por
uma bateria de celular de 3,7V - 950mAh, para tanto foram utilizados resistores
de 3K.</b></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><b>Caso deseje alimentar seu circuíto de outra forma, recomendamos que assista <a href="http://www.youtube.com/watch?v=tB4WJuPn5mc" target="_blank">este vídeo</a> para saber mais sobre o cálculo de resistores e descobrir o valor correto a ser utilizado no seu projeto.</b><span style="font-size: x-small;"><o:p></o:p></span></span><br />
<b><span style="font-family: Trebuchet MS, sans-serif; font-size: x-small;">Não esqueça também de aterrar o arduino junto ao (GND) da sua bateria de alimentação do circuito.</span></b></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif; font-size: x-small;"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<b><span style="font-family: Trebuchet MS, sans-serif;">Diagrama:<o:p></o:p></span></b></div>
<div class="MsoNormal" style="text-align: justify;">
<b><span style="font-family: Trebuchet MS, sans-serif;"><br /></span></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRT9H-J8KQrKN0lhsr_ASi5hrqYMexODnZ-bFBBT8-DiKtqTb1ggWMQMOiPqEdaODT0lumGcqdldaQ7i1891crAI_KmUgPl5RulkSSNXNOj_UXNe3E0VOZBHn19jv9NGKuZKstr1Wd9IU/s1600/Ponte+002.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="220" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRT9H-J8KQrKN0lhsr_ASi5hrqYMexODnZ-bFBBT8-DiKtqTb1ggWMQMOiPqEdaODT0lumGcqdldaQ7i1891crAI_KmUgPl5RulkSSNXNOj_UXNe3E0VOZBHn19jv9NGKuZKstr1Wd9IU/s1600/Ponte+002.png" width="320" /></a></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><b>Código fonte:</b></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<code>
//Derivado do blink, esse código fará o motor girar de um lado para outro, no intervalo de 1s
int motor_ladoA = 13; //Porta arduino A do diagrama
int motor_ladoB = 12; //Porta arduino B do diagrama
void setup() {
pinMode(motor_ladoA, OUTPUT);
pinMode(motor_ladoB, OUTPUT);
}
void loop() {
digitalWrite(motor_ladoA, HIGH);
digitalWrite(motor_ladoB, LOW);
delay(1000);
digitalWrite(motor_ladoA, LOW);
digitalWrite(motor_ladoB, HIGH);
delay(1000);
}
</code>
<br />
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<!--[endif]--><span style="font-family: Trebuchet MS, sans-serif;"><b>Fontes:</b><o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<b><span style="font-family: Trebuchet MS, sans-serif;"><br /></span></b></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><a href="http://pt.wikipedia.org/wiki/Ponte_H">http://pt.wikipedia.org/wiki/Ponte_H</a><o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><a href="http://www.youtube.com/watch?v=tB4WJuPn5mc" target="_blank">Este vídeo do Renato Aloi possui o passo a passo de como construir sua ponte H</a>.<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<br />
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
</div>
Gurihttp://www.blogger.com/profile/14410025790657788988noreply@blogger.comtag:blogger.com,1999:blog-8652832575015131233.post-34318043031248589692013-06-01T13:48:00.001-07:002013-06-01T16:14:19.709-07:00Guriduino: Relé<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">Um <a href="http://pt.wikipedia.org/wiki/Rel%C3%A9">relé</a> é um interruptor eletromecânico. A movimentação física deste interruptor ocorre quando a corrente elétrica percorre as espiras da bobina do relé, criando assim um campo magnético que por sua vez atrai a alavanca responsável pela mudança do estado dos contatos. </span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;">O circuito para acionar um relé é muito simples, requer poucos componentes e possui várias aplicações, tornando-se indispensável quando se quer fazer o chaveamento de tensões altas como por exemplo ligar uma lâmpada.
</span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: justify;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Trebuchet MS, sans-serif;"><b>Componentes:</b><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Trebuchet MS, sans-serif;">1 Relé 12V DC - 220V AC;<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Trebuchet MS, sans-serif;">1 Resistor de 1K (marrom,
preto, vermelho);<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Trebuchet MS, sans-serif;">1 Transistor BC548 ou similar;<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Trebuchet MS, sans-serif;">1 Diodo 1N4004 <o:p></o:p></span><span style="font-family: 'Trebuchet MS', sans-serif;">ou similar.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p><span style="font-family: Trebuchet MS, sans-serif;"><br /></span></o:p></div>
<div style="text-align: justify;">
</div>
<div class="MsoNormal">
<span style="font-family: Trebuchet MS, sans-serif;"><b>Diagrama:</b></span><o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOqa5QaZI_J3TnE15W1pc7nPzdLZ5wLqRsRhn8XvTEdQWivsL9NVa56scQ2p8wrUC6fPpOQg6gFHmfCcruPSrY0FnSEEEb0ntiHw9d7q4X_zVxP9a5-67BZzYc9-YDh_ZJJBW6QpCEhgU/s1600/rele+arduino.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOqa5QaZI_J3TnE15W1pc7nPzdLZ5wLqRsRhn8XvTEdQWivsL9NVa56scQ2p8wrUC6fPpOQg6gFHmfCcruPSrY0FnSEEEb0ntiHw9d7q4X_zVxP9a5-67BZzYc9-YDh_ZJJBW6QpCEhgU/s1600/rele+arduino.png" height="209" width="320" /></a></div>
<div class="MsoNormal">
<span style="line-height: 115%;"><span style="font-family: Trebuchet MS, sans-serif; font-size: x-small;">Observação: Este exemplo usa uma relé de 12V para
acionamento da bobina, portanto utilize uma fonte externa. Não esqueça de
conectar o (GND) do arduino com a da fonte externa.</span></span></div>
<div class="MsoNormal">
<span style="line-height: 115%;"><span style="font-family: Trebuchet MS, sans-serif; font-size: x-small;"><br /></span></span></div>
<div class="MsoNormal">
<span style="line-height: 115%;"><span style="font-family: Trebuchet MS, sans-serif; font-size: x-small;"><br /></span></span></div>
<div class="MsoNormal">
<span style="font-family: Trebuchet MS, sans-serif;"><b>Código fonte:</b></span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><b><br /></b></span></div>
<code>
//Esse código na verdade é o exemplo Blink, nele o relé vai ligar e desligar a cada 1s
int rele = 13;
void setup() {
pinMode(rele, OUTPUT);
}
void loop() {
digitalWrite(rele, HIGH);
delay(1000);
digitalWrite(rele, LOW);
delay(1000);
}
</code>
Gurihttp://www.blogger.com/profile/14410025790657788988noreply@blogger.comtag:blogger.com,1999:blog-8652832575015131233.post-26917341509156759102012-10-12T14:09:00.002-07:002012-10-12T14:09:43.902-07:00Guriduino: Ultrasom + arduino + buzzer <div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/tpTKQbL4C2I?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<div style="text-align: center;">
<span style="font-family: Arial,Helvetica,sans-serif; font-size: small;">Em breve o passo a passo desse projeto</span></div>
Gurihttp://www.blogger.com/profile/14410025790657788988noreply@blogger.comtag:blogger.com,1999:blog-8652832575015131233.post-90089030562541990922012-08-08T19:24:00.000-07:002012-08-08T19:26:10.162-07:00LIGAR UM LED PELO CONTROLE REMOTO<div style="font-family: Arial,Helvetica,sans-serif;">
</div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; text-align: justify;">
Este projeto é muito simples, tem como principal função,
acionar qualquer tipo de dispositivo através de um controle remoto (Pode ser da TV, DVD, Ar condicionado, etc...), neste
exemplo é feito o acionamento de um led, mas para projetos futuros, podemos
ligar uma lâmpada, um motor e outra infinidade de aparelhos.</div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; text-align: justify;">
Iremos utilizar para este projeto além do arduino, um
receptor de infravermelho 38Khz,<span style="mso-spacerun: yes;"> </span>1 Led e
um resistor de 220Ohm.</div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; text-align: justify;">
Obs: Para saber qual o valor correspondente ao botão no
controle remoto, basta abrir o exemplo
"File>Examples>IRremote>IRrecvDump" na IDE do arduino, e
retirar a conversão para hexadecimal no comando Serial.println na linha 70,
assim será mostrado o valor decimal do botão.</div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif;">
<br /></div>
<div class="separator" style="clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbvr0_ey69OT-iVZvUWoK4zbMqAzyveGLhwP0wdRSWy5GgNUQ4dDrMy0jnizhA2prPtiBX0Cq7Pw_qo05hS2Nw12GKHv9fb6wyiKDoLhVIyC937zwer7JnuJQSZ_slHcGWAK-N3fT9KDo/s1600/postagem+%23003+-+acender+led+IR_bb.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbvr0_ey69OT-iVZvUWoK4zbMqAzyveGLhwP0wdRSWy5GgNUQ4dDrMy0jnizhA2prPtiBX0Cq7Pw_qo05hS2Nw12GKHv9fb6wyiKDoLhVIyC937zwer7JnuJQSZ_slHcGWAK-N3fT9KDo/s400/postagem+%23003+-+acender+led+IR_bb.jpg" width="400" /></a></div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif;">
</div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; text-align: justify;">
<b>Fonte do projeto:</b></div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; text-align: justify;">
O código abaixo faz ligar/desligar o led utilizando o mesmo
botão do controle remoto.</div>
<div class="MsoNormal" style="font-family: Arial,Helvetica,sans-serif; text-align: justify;">
<br /></div>
<code>
#include <IRremote.h>
int RECEPTOR_IR = 8; //Pino onde esta ligado o receptor IR
int LED = 13; //Pino do led
long VALOR_BOTAO = 16637983; //Valor do botao
boolean TESTADOR; //Variavel para testar se o led esta ligado ou desligado
IRrecv irrecv(RECEPTOR_IR);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
pinMode(LED, OUTPUT);
TESTADOR = false; //inicia com o led desligado
}
void loop() {
if (irrecv.decode(&results)) {
if((results.value) == VALOR_BOTAO){ //Se o botao for pressionado
if(TESTADOR){ //Se ligado->desliga
digitalWrite(LED, LOW);
TESTADOR = false;
}else{ //Se desligado->liga
digitalWrite(LED, HIGH);
TESTADOR = true;
}
}
irrecv.resume(); // Receive the next value
}
}
</code>Gurihttp://www.blogger.com/profile/14410025790657788988noreply@blogger.comtag:blogger.com,1999:blog-8652832575015131233.post-27901958625141830672012-07-22T17:43:00.001-07:002012-07-22T17:54:56.569-07:00Guriduíno estará presente no fisl13<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQK4asMVhxjFSMV7IapF-PE2mpR5Lbr6G1SNlMxqYCh0_nHS1jB4GT44zjJToG6ISI5tlcnW9qBhXLN49tlnKZH0ZvkJl6xyqW7ujpTcEFoeXlEW3YXAMv3loZK3kcD0_QsAdHMWiya9I/s1600/%C3%8Dndice.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQK4asMVhxjFSMV7IapF-PE2mpR5Lbr6G1SNlMxqYCh0_nHS1jB4GT44zjJToG6ISI5tlcnW9qBhXLN49tlnKZH0ZvkJl6xyqW7ujpTcEFoeXlEW3YXAMv3loZK3kcD0_QsAdHMWiya9I/s320/%C3%8Dndice.png" width="226" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />Gurihttp://www.blogger.com/profile/14410025790657788988noreply@blogger.comtag:blogger.com,1999:blog-8652832575015131233.post-3387280209107720052012-07-01T15:38:00.000-07:002013-06-10T20:14:03.897-07:00Seja Bem-Vindo<div style="font-family: "Trebuchet MS",sans-serif; text-align: justify;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSVF61PpuB4JgapUbvArfz7579sWt8jOHtENK58U0lUiBLpsrlhD9n4ZBVBYNTVI_uY5JFqH8bq6AbHuW7VzTRGpCzWmOHzpIUpj7aM5euZq9PmsbesYxClqMPC6cXXK9oLwnigt5-2iw/s1600/avatar+guriduino.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSVF61PpuB4JgapUbvArfz7579sWt8jOHtENK58U0lUiBLpsrlhD9n4ZBVBYNTVI_uY5JFqH8bq6AbHuW7VzTRGpCzWmOHzpIUpj7aM5euZq9PmsbesYxClqMPC6cXXK9oLwnigt5-2iw/s200/avatar+guriduino.png" width="197" /></a></div>
<br />
<br />
<br />
Esse portal é dedicado ao compartilhamento dos resultados obtidos com projetos e testes realizados com o Arduino, visando sempre a procura de novos conhecimentos.</div>
<div style="font-family: "Trebuchet MS",sans-serif; text-align: justify;">
<br /></div>
<div style="font-family: "Trebuchet MS",sans-serif; text-align: justify;">
"A informação só tem valor, quando é de conhecimento de todos".</div>
<div style="font-family: "Trebuchet MS",sans-serif; text-align: justify;">
<br /></div>
Gurihttp://www.blogger.com/profile/14410025790657788988noreply@blogger.com