Show Posts
Pages: 1 [2] 3 4 ... 38
16  Using Arduino / Displays / Re: Arduino 1.77" SPI TFT Blank White Screen Only on: July 27, 2014, 11:37:29 pm
Yes. I wanted to discard a possible issue with your eleven or the SPI library. Thus, the problem could be with the TFT library or the LCD shield. Regarding both the 1.0.5 only works with the red tab that your LCD had (The plastic cover on the screen) and the 1.5.6   works with the green tab. DO you remember what tab your screen had? I'm about to sleep now but let's keep in touch. Night.

p
17  Using Arduino / Displays / Re: Arduino 1.77" SPI TFT Blank White Screen Only on: July 27, 2014, 10:47:02 pm
Let's now test the SPI port of your eleven.
With your eleven alone, make a jumper between pins 11 (MOSI) and 12 (MISO).
The following code will send and receive a string via the SPI port.
If the test is successful, you should see the string "SPI TEST OK" in the serial monitor of the Arduino IDE.

Code:
//Loop Back test for the SPI port of the Arduino
#include <SPI.h>
char outByte [20] = "SPI TEST OK";
char inByte;
int i = 0;                                                         
 
void setup()
{
  Serial.begin(9600); 
  SPI.begin(); 
  delay(100); 
}
 
void loop()
{   
  for(i = 0; outByte [i] != '\0'; i ++) 
  {
    inByte = SPI.transfer(outByte [i]);
    Serial.write(inByte);   
  }
  Serial.println();
  delay(1000);
}

18  Using Arduino / Displays / Re: Arduino 1.77" SPI TFT Blank White Screen Only on: July 27, 2014, 09:33:17 pm
Let's try one more thing: Could you wire your eleven with the LCD according to the arduino UNO wiring as shown in the following link?

http://arduino.cc/en/Guide/TFTtoBoards#.UyWQNNyP4p0

p
19  Using Arduino / Displays / Re: Arduino 1.77" SPI TFT Blank White Screen Only on: July 27, 2014, 05:06:26 pm
Hello Thorium234,
Are you powering the Arduino only through the USB connector? If so, can you try using an external power supply?
It's known that some LCDs (like some modems) have high power consumption to work accordingly. Regards,

p
20  Using Arduino / Displays / Re: Arduino 1.77" SPI TFT Blank White Screen Only on: July 27, 2014, 12:00:50 am
Here http://arduino.cc/en/Main/OldSoftwareReleases

p
21  Using Arduino / Displays / Re: Arduino 1.77" SPI TFT Blank White Screen Only on: July 26, 2014, 10:49:16 pm
What IDE version you are using? Could you try with the Arduino IDE 1.5.6-r2?

p
22  Using Arduino / Displays / Re: Arduino 1.77" SPI TFT Blank White Screen Only on: July 26, 2014, 10:15:20 pm
Could you run the following code to see if the white background is real or not? I mean, if the TFTscreen.background is working.

Code:
#include <TFT.h>  // Arduino LCD library
#include <SPI.h>
#define cs   10
#define dc   9
#define rst  8 
TFT TFTscreen = TFT(cs, dc, rst);

void setup() {
  TFTscreen.begin(); 
}

void loop() {
TFTscreen.background(255,0,0); // red
delay(1000);
TFTscreen.background(0,255,0); // green
delay(1000);
TFTscreen.background(0,0,255); // blue
delay(1000);
}

p
 
23  Using Arduino / Displays / Re: Arduino 1.77" SPI TFT Blank White Screen Only on: July 26, 2014, 06:37:12 pm
Hello Thorium234,

The example doesn't require SD card and it is written for hardware SPI use which means MOSI (pin 11) and SCLK (pin 13) by default. Could you post your code and how are you connecting the 11/LCD? Regards.

p
24  Products / Arduino Due / Re: How to use more than 3 slaves on Due spi? on: July 25, 2014, 04:08:06 pm
Hello Aue11,

Did you came up with a solution for your 4 SPI slaves need?

After a question to Atmel tech. support, here they answer:

The following are two pseudo code options to control more than three SPI port using a multiplexer with Arduino Due:

Option 1:
1. Call spi_enable_peripheral_select_decode
2. Set the chip select using spi_set_peripheral_chip_select_value
3. Use spi_write and spi_read
4. Set uc_last to end the transfer and to deassert the chip select.

Option 2:
1. Call spi_enable_peripheral_select_decode
2. Call spi_set_variable_peripheral_select to enable variable chip select
3. Use spi_write and spi_read with the required uc_pcs value for a slave.
4. End the transfer with uc_last in spi_write.

5. Group the set of slaves which would be operating with the similar modes.
6. For read only operations, a dummy spi_write is always needed to generate the SPI clock for a spi_read operation.

Note: The control registers for 0-3 is a single register SPI_CSR0 and similarily for 4-7, 8-11, 12-15.

I've been busy (as usual) but trying to write a code to this alternative way to the GPIO one.

Regards,

p
25  Using Arduino / Displays / Re: Help Me - 3,5 TFT Touch LCD Screen Display - I can not make it work, help. on: July 25, 2014, 01:34:31 pm
Hello Lucas,

Your link (including the pictures) does not provide any information of the board. The code close to the touchscreen lines also doesn't   mean anything. Could find the brand and model number of the LCD (may be with a booklet or other document in the shipping package?). Regards,

p
26  Using Arduino / Programming Questions / Re: NewSoftSerial.h errors on: July 25, 2014, 01:27:35 pm
Hello Scott,
Could you also post the SSerial2Mobile.h library file? regards,

p
27  International / Software / Re: Hacer dos cosas simultaneas on: July 25, 2014, 11:25:07 am
Hola dssp,

El siguiente ejemplo hace dos cosas simultaneas usando la función millis().

1 - led 12 parpadea cada 5 segundos
2 -led 13 parpadea cada segundo.

Code:
// Parametros del pin 12
const int pinLed12 = 12;
long intervalo1 = 5000;
long timer1 = millis();
int estadoPin12 = LOW;

// Parametros del pin 13 
const int pinLed13 = 13;
long intervalo2 = 1000;
long timer2 = millis();
int estadoPin13 = LOW;

void setup() {
  pinMode(pinLed12, OUTPUT); //pin 12 como salida
  pinMode(pinLed13, OUTPUT); //pin 13 como salida
}

void loop() {
 
  if ( (millis() - timer1) > intervalo1){
    parpadeo_12(); //invoca rutina de parpadeo pin 12
  }
  if ( (millis() - timer2) > intervalo2){
    parpadeo_13(); //invoca rutina de parpadeo pin 13
  }
}

void parpadeo_12(){ //rutina de parpadeo pin 12
  if (estadoPin12 == LOW)
      estadoPin12 = HIGH;
    else
      estadoPin12 = LOW;
    digitalWrite(pinLed12, estadoPin12);
    timer1 = millis();
}

void parpadeo_13(){ //rutina de parpadeo pin 13
  if (estadoPin13 == LOW)
      estadoPin13 = HIGH;
    else
      estadoPin13 = LOW;
    digitalWrite(pinLed13, estadoPin13);
    timer2 = millis();
}

Si deseas puedes cambiar los tiempos de intervalos y/o colocar lo que necesites en las rutinas de parpadeo. Saludos.

p
28  International / Español / Re: Hola. Dudas y cuestiones. (Arduino Due related) on: July 25, 2014, 09:34:29 am
...Y donde la mayor parte de los ejemplos no funcionan. El "Hello World" no funciona! Es un golpe psicológico a todos los iniciados a la programación. XDDD...
... De hecho para poder correr el Hello World tuve que quitar el include y dejar que el compilador se buscara la vida y ya está....

Javier, no entiendo cuando dices que 'el Hello World no funciona' y que tuviste que quitar el include.
Aunque para mi el Hello World! consiste en hacer parpadear el led 13 cada segundo, si te refieres a mostrar la frase, te dejo un ejemplo sencillo que siempre corre y que no usa includes.

Code:
void setup() {
  Serial.begin(9600);
  Serial.println("Hello World!");
}

void loop() {
}

Tal vez no entendi el fallo que mencionas. Saludos,

p
29  International / Software / Re: Muy basico on: July 24, 2014, 08:43:56 pm
Cuando recién me inicié en la plataforma de Arduino (hace como tres años), le hice esa misma pregunta a Massimo Banzi y me respondió diciéndome que nunca se atreverían siquiera a intentar crear dicha herramienta (convertir el código compilado en el Arduino de nuevo al código fuente).  Saludos.

p
30  International / Software / Re: Muy basico on: July 24, 2014, 08:25:06 pm
Hola javijusti,
Si te refieres a transferir/recuperar el programa del Arduino a tu nueva PC, lamento informarte que ello es imposible. Tal y como the indica Naruto128, la unica manera es copiando de tu vieja PC el programa. Saludos.

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