Show Posts
Pages: 1 2 [3] 4 5 ... 38
31  Using Arduino / Programming Questions / Re: Send sms whit arduino gsm on: July 22, 2014, 10:05:39 am
The arduino GSM shield needs to be power up (ON). In order to do that you have to press the power button. How is the status of the LEDs?

Remember also that the GSM shield requires  an external power supply that can provide between 700mA and 1000mA.

Regards,

p
32  Using Arduino / Programming Questions / Re: Send sms whit arduino gsm on: July 22, 2014, 09:26:49 am
Did you power up the modem (pressing the power button for a couple of seconds)?
I also recommend you to move your post to the Arduino GSM topic:

http://forum.arduino.cc/index.php?board=90.0

Regards,

p
33  Using Arduino / Programming Questions / Re: Send sms whit arduino gsm on: July 22, 2014, 08:57:00 am
You can start with the SenSMS example in the Arduino IDE.

File->Examples->GSM->SendSMS

Regards,

p
34  Using Arduino / Programming Questions / Re: A3423 on: July 22, 2014, 08:26:15 am
Hola Timoteo,
Is your small turbine magnetized? If so, try to rotate the turbine manually (in both directions) very slowly (with no power) and see how the direction pin changes between LOW and HIGH. Saludos,

p
35  International / Español / Re: duda tiempo entre transmisiones i2c on: July 19, 2014, 11:24:50 am
Hola Erik,
Que estas monitoreando? temperatura? Que esclavos son? Saludos,

p
36  International / Español / Re: duda tiempo entre transmisiones i2c on: July 18, 2014, 01:34:34 pm
Hola erikblade,

Tal y como Naruto128 te indica, los delays dependeran de los dispositivos I2C que uses. Seria bueno si nos dices que I2C esclavos estas usando? Saludos,

p
37  International / Español / Re: COMO GUARDAR 100 DATOS QUE SE TOMAN POR MEDIO DE UNSENSOR EN ARDUINO on: July 11, 2014, 05:04:00 pm
Tambien se podrian guardar en la flash (32KB) solo que cada vez que se programe el Arduino, la data se pierde (anuque esto ultimo suele hacerse una vez). Es solo otra idea. Saludos.

p
38  Products / Arduino Due / Re: How to use more than 3 slaves on Due spi? on: July 11, 2014, 08:53:04 am
Even though the use of common digital gpio pins as CS is the quickest way to solve the ‘more than 3 SPI slaves’ issue, by removing the control of CS from the SPI and letting it handle only the serial communication, I want to bring up the fact that SAM3X8E can be programmed to operate with up to 15 peripherals by using the PCSDEC bit and decoding the four CS lines NPCS0 to NPCS3, but given that Due only has 3 NPCS lines broken out (4,10,52) the maximum amount of SPI slaves that can be operated is 7 using an external multiplexer like 74HC138 (3-to-8) and a couple of SPI functions. In that regard, I started to implement some coding last year but I did set aside for reasons of time. I just did post a message on Atmel web to see whether is possible to complete my implementation. I will keep you posted.

p
39  International / Español / Re: PWM de 12bits? Alguien puede explicarlo? on: July 09, 2014, 09:52:54 pm
Hola ErKiko,

Te dejo un codigo que genera pwm de 12 bits en el pin 9 del Arduino Uno. Si tienes un Arduino Due es mucho mas sencillo ya que solo tienes que usar la funcion analogWriteResolution(12). 

Code:
//Ejemplo que usa el Timer1 para generar pwm de 12 bits (0-4096)
//Atenua e intensifica un led conectado en el pin 9

#define ledValor OCR1A

const int PWMCuentas = 4095;
int valor = 1;
int direccion = 1;

void setup() {
  pinMode(9,OUTPUT);
 
  TCCR1A = (1 << COM1A1) | (1 << WGM11);
  TCCR1B = (1 << WGM13) | (1 << WGM12) | (1 << CS10);
 
  ICR1 = PWMCuentas;
  ledValor = 0;
}

void loop() {
  //Atenua el led entre 0 and 4095 y luego vuelve a 0
  valor += direccion;
  if (valor <=0){
    direccion = 1;
  }
  else if (valor >= PWMCuentas){
    direccion = -1;
  }
  ledValor = valor;
  delay(1);
}

Espero que te sirva. Saludos cordiales.

p
40  Products / Arduino Due / Re: Small-footprint Due on: July 09, 2014, 09:26:30 pm
Hello Val!
I hope everything is going well with your tests of the small-footprint Due. I am eager to work with it and specially interested in the CAN bus functionality. Regards,

41  Products / Arduino Due / Re: How to use more than 3 slaves on Due spi? on: July 09, 2014, 09:12:40 am
Hello Aue11,

Due supports three Chip Select (SS) pins (10, 4 and 52). If you need more than that the best solution IMO is to use a decoder/demultiplexer. Regards,

p
42  International / Español / Re: Ayuda con codigo on: July 09, 2014, 08:29:55 am
Hola millox,

readString es la palabra (o cadena de caracteres) que usas para cambiar el estado de los pines 12 y 13.

Solo tienes que agregas un par de funciones if usando diferentes palabras  para seleccionar el pin que desees activar.

Aqui te dejo un codigo de ejemplo donde:
Si tipeas ON, se activan los pines 12 y 13 (como antes)
Si tipeas OFF, se desactivan los pines 12 y 13 (como antes)
Si tipeas LED1, solo se activa el pin 13
Si tipeas LED2, solo se activa el pin 12

Code:
int ledPinA = 13;
int ledPinB =12;
String readString;

void setup() {
  Serial.begin(9600);
  pinMode(ledPinA, OUTPUT);
  pinMode(ledPinB, OUTPUT);
}

void loop() {
  while (Serial.available()) {
    delay(3);  
    char d = Serial.read();
    readString += d;
    
  }
  if (readString.length() >0) {
    Serial.println(readString);
    if (readString == "ON")    
    {
      digitalWrite(ledPinA, HIGH);
      digitalWrite(ledPinB, HIGH);
    }
    if (readString == "LED1")    
    {
      digitalWrite(ledPinA, HIGH);
      digitalWrite(ledPinB, LOW);
    }
    if (readString == "LED2")    
    {
      digitalWrite(ledPinA, LO);
      digitalWrite(ledPinB, HIGH);
    }
    if (readString == "OFF")
    {
      digitalWrite(ledPinA, LOW);
      digitalWrite(ledPinB, LOW);
    }
    readString="";
  }
}

Saludos

p
43  Community / Website and Forum / Member name, icon and gender does not show up in posts on: July 05, 2014, 07:11:44 am
I am not sure if this has been mentioned lately but when I post in the Spanish forum, my User name, logo and gender icon don't show up in the post. Only my country! Regards.

p
44  International / Software / Re: Como puedo mostrar el signo º en un lcd 16x2? on: July 03, 2014, 04:48:41 pm
Hola quiero que el LCD 16x2 me muestre después de la temperatura el signo en grados º

Estas son las lineas que tengo

 lcd.setCursor(0, 1);

  lcd.print("Temp=");
  lcd.print((float)DHT11.temperature, 0);
  lcd.print("º");   // AQUI ENTRE COMILLAS EL LCD ME APARECEN 2 CARACTERES DISTINTOS.
  Serial.print("Temperature (oC): ");
  Serial.println((float)DHT11.temperature, 2);


Agradecido de antemano.

Hola carlets,

Intenta con

Quote
lcd.print((char)223);

Saludos cordiales,

p
45  International / Español / Re: problema conexion serial on: July 03, 2014, 04:41:45 pm
Hola Jesus,

Asegurate que el convertidor RS232 que tienes convierte a TTL. Recuerda que los pines RX/TX del Arduino son TTL (0 a 5V) y no son directamente compatibles con RS232 (+/- 7.5V). Los mas populares son basados en el MAX232.

Una prueba para asegurarte que tienes el convertidor correcto es conectarlo a tu PC/laptop con un cable USB-Serial.

Saludos,

p
Pages: 1 2 [3] 4 5 ... 38