Pages: 1 ... 8 9 [10]
 91 
 on: Today at 08:40:48 am 
Started by arduinoadrian - Last post by arduinoadrian
Sorry, no its is not open source.

 92 
 on: Today at 08:39:39 am 
Started by alexalbert2000 - Last post by johnwasser
Are you going for:
Quote
Control the MaxSonar Sensors to Range Simultaneously
(works for most instances)
or
Quote
Sequentially Read Each MaxSonar®
(Always Works)
?

 93 
 on: Today at 08:37:30 am 
Started by patricio_74 - Last post by patricio_74
Saludos.Gracias por responder.Referente a lo que me comentas,parto de solo los dos componentes mencionados:
-Arduino Uno(sin clemas);
y
-Sensor fotoelectrico(salida rele):http://es.rs-online.com/web/p/sensores-fotoelectricos/4805039/
Segun mencionas;¿ debería por tanto integrarle bornas a Arduino con el fin de poder realizar la conexión?.
Gracias por la propuesta de código para el conteo.

Un saludo.

 94 
 on: Today at 08:37:03 am 
Started by alb12 - Last post by alb12
Ok, je n'avais pas vu ça dans ce sens.
Ce que je voudrais, c'est savoir quand le carillon sonne. smiley-wink

 95 
 on: Today at 08:36:26 am 
Started by Shiki225 - Last post by raschemmel
I don't know why that delay doesn't work inside the FOR loop. That's a question for more advanced programmers. Good luck with that. It seems a mystery but there is probably some simple explanation .

 96 
 on: Today at 08:34:16 am 
Started by DaveO - Last post by SurferTim
If your code uses dns to resolve the domain name of the server, the dns server is not localnet, and the dsl is down, that code will never connect. If the internet part is down, the length of the delay will not matter. If your code can't connect, it can't connect.

Actually, you are lucky. Normally PaulS will refer you to http://www.snippets-r-us.com. Please post all your code.

 97 
 on: Today at 08:34:08 am 
Started by lazarus00 - Last post by PaulRB
Did it work 100% before the change?

EDIT: you changed the sketch since my original reply! You made a correction from "(matrix)" to "(matrix [ i ])". I wondered if that was an error. Did you make the corresponding change in my suggested version?

 98 
 on: Today at 08:33:46 am 
Started by y27648909 - Last post by y27648909
hi, i want to control a servo motor by using a IR remote.
here is my code:
Code:
#include <IRremote.h>  
#include <Servo.h>
                
const int irReceiverPin = 30;            
IRrecv irrecv(irReceiverPin);            
decode_results result;                
const int ledPin =  13;
Servo myservo;




void setup()
{
  Serial.begin(9600);                    
  irrecv.enableIRIn();                  
  pinMode(ledPin, OUTPUT);
    myservo.attach(10);

}

void showIRProtocol(decode_results *result)
{
  Serial.print("Protocol: ");
  
  switch(result->decode_type) {
   case NEC:
     Serial.print("NEC");
     break;
   case SONY:
     Serial.print("SONY");
     break;
   case RC5:
     Serial.print("RC5");
     break;
   case RC6:
     Serial.print("RC6");
     break;
   default:
     Serial.print("Unknown encoding");  
  }  

  Serial.print(", irCode: ");            
  Serial.print(result->value, HEX);    
  Serial.print(",  bits: ");          
  Serial.println(result->bits);            
}

void loop()
{
  myservo.write(value);

  if (irrecv.decode(&result)) {        
    showIRProtocol(&result);            
    irrecv.resume();                      
  }  
  

  
  if(result.value == 0x490){
    digitalWrite(ledPin, HIGH);
  }
  
    if(result.value == 0xC90){
    myservo.write(130);

  }
}
from the serial monitor, i can get the same IR code and protocol name every time pressing the same button.
for example :  Protocol : $ony,  IR code : AAAA
 however, once i add this
Code:
myservo.attach(10);
, the protocol become unknown and i cannot get the same IR code.
It becomes:   Protocol: Unknown, IR code: FDSAS65
                          Protocol: Unknown, IR code: QWEW1451
and i delete the above code, the IRcode and protocol will back to normal.
pls help!!

 99 
 on: Today at 08:33:32 am 
Started by Quick_questions - Last post by raschemmel
Why not a stepper ?

 100 
 on: Today at 08:32:56 am 
Started by jimallen60 - Last post by AWOL
I guess the error messages were too long to post also?

Pages: 1 ... 8 9 [10]