Forum >Replies by ecangis
userhead ecangis
Replies (3)
  • You Reply: yeah, hi, respected to the spa connection i have all connected to the icsp pins on the board, which should correspond to the arduino board if i'm not wrong, maybe i made a mistake talking of spi.

    respecte to the code my hole code is the next:
    Code: Select all
     #include <SPI.h>
    #include <SD.h>
    #include <LiquidCrystal.h>

    //constantes
    Sd2Card card;
    SdVolume volume;

    File root;
    char* files[1];

    int Sdpin = 8;
    int Irpin = 9;
    LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
    int x=0;

    void setup() {
      //Start serial connection and pin setup

      Serial.begin(9600);
      pinMode(Irpin, INPUT);
     
      //begin lcd screen
     
      lcd.begin(16, 2);
     
      lcd.clear();
      lcd.print("Iniciando");
      lcd.setCursor(0,1);
      lcd.print("sistema");

      //Try connect sd card
     
      if(!card.init(SPI_HALF_SPEED, Sdpin)){
        lcd.clear();
        lcd.print("Sin conexion con");
        lcd.setCursor(0,1);
        lcd.print("tarjeta Sd");
      } else {
        lcd.clear();
        lcd.print("Tarjeta Sd");
        lcd.setCursor(0,1);
        lcd.print("iniciada");
        delay (1500);
        lcd.clear();
      }
     
    }

    void loop(void) {

    }


    any help would be mostly appreciate, thanks so much.
  • You Reply: As I say, I'm new so maybe I'm missunderstanding something but in the wiki say "Easily recognitive interfaces of sensors ("A" for analog and "D" for digital)", doesn't it means that can be used as analog?
  • You Reply: I don't want to be a pain in The... You get The expresion, but according to the wiki, it has the option to be used as analog as much as digital, and it actually have three pin exit, couldn't it be put in analog and get a different entry or something?? I'm kind of new.