Show Posts
Pages: [1]
1  International / Español / Re: Mega no reconoce el puerto COM ¿Qué puedo hacer? on: February 20, 2013, 02:07:02 am
Gracias noter y heke, prové varias veces lo del reset justo cuando acababa la compilación, el caso es que los leds no parpadean ya que no reconoce el puerto COM y me sale el mensaje de arduino no conectado al puerto o no encontrado...

Heke, ¿Cómo puedo cargar el bootloader?, ¿me puedo comunicar con la placa por otro puerto?

Gracias por vuestra ayuda
2  Using Arduino / Programming Questions / Re: sd module in Mega "Card failed, or not present" What I doing wrong? on: February 19, 2013, 09:00:53 am
Hi guys,

all works ok!!!!!!

THANKS TO ALL!

I'm doing exactly you tell me but nothing happen, my problem stay unsolved. In this point I'm remove all the conexions and start again with new wires and ... it is run well, then I'm looking for scratches on the wires and found one of them breaked.

My problem was solved.
Thank you I'm appreciate the help given.

This post can be closed
3  International / Español / Re: Mega no reconoce el puerto COM ¿Qué puedo hacer? on: February 19, 2013, 04:50:14 am
Gracias por contestar, pensaba que ya nadie podría solucionarlo.

Me explico: al comprarlo, configuré siguiendo las indicaciones e instalé el driver perfectamente. Me ha funcionado muy bien, en el administrador de dispositivos me aparecia el puerto COM que utilizaba y todo perfecto, el cargar programas al Mega bien también. Estaba probando las interrupciones y para comprobar la respuesta del Mega configuré el puerto serie con Serial.begin (9600); y un delay (10); para imprimir en el "Monitor serial". Pues bien, al acabar la prueba, intenté bajar otro sketch, el de liquid_cristal y ya no me reconocía el puerto COM, tampoco aparecía en el administrador de dispositivos. Desprecinté el otro Mega y se conectó perfectamente, ahora lo utilizo para seguir aprendiendo pero claro, quiero volver a disponer del primero.

Uf que palo te he metido...

Por favor si conoceis alguna manera de volver a la vida mi Mega os lo agradeceré.

Saludos
4  Using Arduino / Programming Questions / Re: sd module in Mega "Card failed, or not present" What I doing wrong? on: February 19, 2013, 02:06:17 am
Thank you, thank you. I'm re-wired the connections

50 MISO
51 MOSI
52 SCK
53 CS

in the sketch

...
const int chipSelect = 53;
...
pinMode(53, OUTPUT);
...

and just foward to the next step. Card is found, but can't open the file. This is the result: "Initializing SD card...card initialized.error opening datalog.txt". The Sd-card is an 4Gb card and formated as Fat16.

Thanks in advance
5  Using Arduino / Programming Questions / Re: sd module in Mega "Card failed, or not present" What I doing wrong? on: February 18, 2013, 10:05:12 am
Thank you,
I'm re-wired cs to pin 10 but same issue.

 smiley-cry
6  International / Español / Mega no reconoce el puerto COM ¿Qué puedo hacer? on: February 18, 2013, 09:08:00 am
Hola,
tengo dos Mega, uno lo utilizo para aprender, ya que empecé hace poco, me ha funcionado perfectamente hasta hace dos días. He ido probando diferentes ejemplos y siempre ha funcionado perfectamente, el otro día no me reconocía el puerto de comunicación por lo que no me puedo conectar. ¿Alguna sugerencia?. ¿Existe un hard reset?

Gracias
7  Using Arduino / Programming Questions / sd module in Mega "Card failed, or not present" What I doing wrong? on: February 18, 2013, 09:02:16 am
Hi, I'm trying to implement a datalogger in a Mega and I can't comunicate with the Sd card.

This is the example code that I'm using

/*
  SD card file dump
 
 This example shows how to read a file from the SD card using the
 SD library and send it over the serial port.
    
 The circuit:
 * SD card attached to SPI bus as follows:
 ** MOSI - pin 11
 ** MISO - pin 12
 ** CLK - pin 13
 ** CS - pin 4
 
 created  22 December 2010
 by Limor Fried
 modified 9 Apr 2012
 by Tom Igoe
 
 This example code is in the public domain.
    
 */

#include <SD.h>

// On the Ethernet Shield, CS is pin 4. Note that even if it's not
// used as the CS pin, the hardware CS pin (10 on most Arduino boards,
// 53 on the Mega) must be left as an output or the SD library
// functions will not work.
// const int chipSelect = 4;
const int chipSelect = 10;
void setup()
{
 // Open serial communications and wait for port to open:
  Serial.begin(9600);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }


  Serial.print("Initializing SD card...");
  // make sure that the default chip select pin is set to
  // output, even if you don't use it:
  // pinMode(10, OUTPUT);
    pinMode(53, OUTPUT);
 
  // see if the card is present and can be initialized:
  if (!SD.begin(chipSelect)) {
    Serial.println("Card failed, or not present");
    // don't do anything more:
    return;
  }
  Serial.println("card initialized.");
 
  // open the file. note that only one file can be open at a time,
  // so you have to close this one before opening another.
  File dataFile = SD.open("datalog.txt");

  // if the file is available, write to it:
  if (dataFile) {
    while (dataFile.available()) {
      Serial.write(dataFile.read());
    }
    dataFile.close();
  } 
  // if the file isn't open, pop up an error:
  else {
    Serial.println("error opening datalog.txt");
  }
}

void loop()
{
}

and the wirings:

MISO on pin 51
MOSI on pin 50
CLK on pin 52
CS on pin 53

What I'm doing wrong?

Thanks in advance
8  Using Arduino / Programming Questions / Re: OutputPin allways HIGH on: January 17, 2013, 10:49:20 am
Oh my god!. Thank you very much. WORKS PERFECT!!!!   smiley-red smiley-red smiley-red smiley-red

You can close this post
Carlos
9  Using Arduino / Programming Questions / Re: OutputPin allways HIGH on: January 17, 2013, 06:58:14 am
Thanks Tack I'm retyping the code.

int Pin40 = 40;

but the led wasn't collaborate smiley-eek it's remain On during 3 secons without In signal on Pin52.

AWOL, I'm using a protoboard just to try. But now I'm wired directly on the Arduino. Just one more, if I let the Arduino on the table ( wood table ) and only the led wired on pin 40 ( well, a litle pin post insert on pin 7 )and put my finger on the pin poste, the led blink on and off during a little time, non repetitive blinking.

Perhaps a shield is needed?, and Why you recomended wired in?
I'm use the IOREF for Inputs

The Arduino be supplied with a standard 223vAC to 12vDC 1.5A (18w) conversor

Thanks in advance

Carlos
10  Using Arduino / Programming Questions / OutputPin allways HIGH on: January 16, 2013, 10:41:13 am
Hello all,
I'm newest and sorry for my english.
Last week bought an Mega 2560 and try to starter with a simply code.

int Pin7 = 7;
int Pin40 = 0;

void setup() {
 
  pinMode(7,INPUT); 
  pinMode(40, OUTPUT);
  Serial.begin(9600);
}
void loop() {

  Pin7 = digitalRead(7); 
  if(Pin7 == HIGH)
  {
    digitalWrite (40,HIGH);
  }
  else
    {
    digitalWrite (40,LOW);
    }
  delay(100);
  Serial.print("  Pin7= ");
  Serial.print(Pin7);
  Serial.print("\t"); 
  Serial.print("  Pin40= ");
  Serial.print(Pin40);
  Serial.print("\n");
}

my surprise was when I switch on "Pin7" the led works ok but when switch off, the led remains ON during 3 seconds more without any INPUT.

What I do wrong?
Thanks in advance.

Carlos
Pages: [1]