Forum Members section DIY Ferduino controller blocked touch screen

blocked touch screen  [SOLVED]

Ask here about your controller made with pieces purchased in other shops.

Post Number:#1 Post Sat Jan 14, 2017 5:48 pm
Posts: 31
Topics: 9
Solve rating: 0
Joined: Tue Jan 10, 2017 2:19 pm
Topics: 9
Age: 41
Gender: None specified
National Flag:
Brazil
using teh code Ferduino_with_webcontrol_beta-máster
i notice that sometimes the screen blocks for almost 20 seconds´

my connections

plug the ethernet making bridge pin 10 to pin 53
disconected pin 10, 11, 12 ,13
Image

conected only the necessary
Image

make a bridge pin 4 to resistor R 16 and disconect one side of it
Image

disconect pin 50, 51, 52, 53 of tft shield
Image

so i decided to test all codes

having problem when testing code onde by on on sketchbook

tft and touch = the touch scrren didn´t work
utouch calibration = the touch scrren didn´t work
simple webserver running on sd card = message on serial monitor= sdcard initialization failed

i have already tried to remove sd card or use it, search in the fóruns but does´t find the solution...

Post Number:#2 Post Sat Jan 14, 2017 7:38 pm
Posts: 31
Topics: 9
Solve rating: 0
Joined: Tue Jan 10, 2017 2:19 pm
Topics: 9
Age: 41
Gender: None specified
National Flag:
Brazil
when complete ferduino with web control beta

i still dont´t have erors, just this warnings



In file included from C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\DS1307.cpp:39:0:

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:95:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

 };

 ^

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:95:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:95:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:95:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:95:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:95:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:95:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:95:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:95:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:95:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:95:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:95:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:100:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

 };

 ^

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:100:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:100:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:100:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:100:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:100:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:100:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:106:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

 };

 ^

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:106:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:106:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:106:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:106:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:106:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:106:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:106:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:106:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:106:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:106:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:106:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:111:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

 };

 ^

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:111:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:111:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:111:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:111:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:111:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\Translation.h:111:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\DS1307.cpp: In member function 'char* DS1307::getTimeStr(uint8_t)':

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\DS1307.cpp:119:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

  char *output= "xxxxxxxx";

                ^

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\DS1307.cpp: In member function 'char* DS1307::getDateStr(uint8_t, uint8_t, char)':

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\DS1307.cpp:150:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

  char *output= "xxxxxxxxxx";

                ^

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\DS1307.cpp: In member function 'char* DS1307::getDOWStr(uint8_t)':

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\DS1307.cpp:265:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

  char *output= "xxxxxxxxx";

                ^

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\DS1307.cpp: In member function 'char* DS1307::getMonthStr(uint8_t)':

C:\Users\Marcelo\Desktop\arduino-1.6.10-windows\arduino-1.6.10\libraries\DS1307_HENNING\DS1307.cpp:282:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

  char *output= "xxxxxxxxx";

                ^


O sketch usa 169.888 bytes (66%) de espaço de armazenamento para programas. O máximo são 253.952 bytes.
Variáveis globais usam 4.431 bytes (54%) de memória dinâmica, deixando 3.761 bytes para variáveis locais. O máximo são 8.192 bytes.


--if i configure the date on lcd screen, when i leave this configuration, it did´t stay storage

---the touch screen Works 15 seconds and get blocked for 20 seconds

Post Number:#3 Post Sat Jan 14, 2017 9:59 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

The LCD is not blocked in fact, Arduino is not multitask so it can't make things simultaneously.

When the LCD is unavailable is because the controller is making another function.

In this case the controller is trying connect to MQTT server and will try every 30 seconds if it is not connected.

Look to serial monitor and you will see this message:

Attempting MQTT connection...
Connect failed
Attempting MQTT connection...
Connect failed


Try make your controller work with this example first and don't forget to change the IP if needed.

Put the IP on browser to see it's working and open the serial monitor to see debug messages.

#include <SPI.h>
#include <Ethernet.h>

byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192, 168, 0, 177); // Change the IP according to your local network

//const byte SelectSlave_SD = 5; // For Ferduino Mega
const byte SelectSlave_SD = 4; // For ethernet shield
const byte SelectSlave_ETH = 53;
const byte SelectSlave_RFM = 69;

EthernetServer server(80);

void setup()
{
   pinMode(SelectSlave_SD, OUTPUT);
   pinMode(SelectSlave_RFM, OUTPUT);
   digitalWrite(SelectSlave_SD, HIGH);
   digitalWrite(SelectSlave_RFM, HIGH);
// Open serial communications and wait for port to open:
   Serial.begin(9600);
   while (!Serial)
   {
      ; // wait for serial port to connect. Needed for Leonardo only
   }
   // start the Ethernet connection and the server:
   Ethernet.begin(mac, ip, SelectSlave_ETH);
   server.begin();
   Serial.print("server is at ");
   Serial.println(Ethernet.localIP());
}


void loop()
{
   // listen for incoming clients
   EthernetClient client = server.available();
   if (client)
   {
      uint8_t remoteIP[4];
      client.getRemoteIP(remoteIP);
      Serial.print("New client: ");
      Serial.print(remoteIP[0]);
      Serial.print(".");
      Serial.print(remoteIP[1]);
      Serial.print(".");
      Serial.print(remoteIP[2]);
      Serial.print(".");
      Serial.println(remoteIP[3]);

      // an http request ends with a blank line
      boolean currentLineIsBlank = true;
      while (client.connected())
      {
         if (client.available())
         {
            char c = client.read();
            Serial.write(c);
            // if you've gotten to the end of the line (received a newline
            // character) and the line is blank, the http request has ended,
            // so you can send a reply
            if (c == '\n' && currentLineIsBlank)
            {
               // send a standard http response header
               client.println("HTTP/1.1 200 OK");
               client.println("Content-Type: text/html");
               client.println("Connection: close");  // the connection will be closed after completion of the response
               client.println("Refresh: 5");  // refresh the page automatically every 5 sec
               client.println();
               client.println("<!DOCTYPE HTML>");
               client.println("<html>");
               // output the value of each analog input pin
               for (int analogChannel = 0; analogChannel < 6; analogChannel++)
               {
                  int sensorReading = analogRead(analogChannel);
                  client.print("analog input ");
                  client.print(analogChannel);
                  client.print(" is ");
                  client.print(sensorReading);
                  client.println("<br />");
               }
               client.println("</html>");
               break;
            }
            if (c == '\n')
            {
               // you're starting a new line
               currentLineIsBlank = true;
            }
            else if (c != '\r')
            {
               // you've gotten a character on the current line
               currentLineIsBlank = false;
            }
         }
      }
      // give the web browser time to receive the data
      delay(1);
      // close the connection:
      client.stop();
      Serial.println("client disonnected");
   }
}


Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#4 Post Sun Jan 15, 2017 12:21 am
Posts: 31
Topics: 9
Solve rating: 0
Joined: Tue Jan 10, 2017 2:19 pm
Topics: 9
Age: 41
Gender: None specified
National Flag:
Brazil
appears this messages on my serial monitor


Image

Image

Image

the sensors are disconected
only conected do wire cable

Post Number:#5 Post Sun Jan 15, 2017 9:44 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Everything seems fine with ethernet shield.

Do you have problem with touch screen yet?

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#6 Post Sun Jan 15, 2017 5:20 pm
Posts: 31
Topics: 9
Solve rating: 0
Joined: Tue Jan 10, 2017 2:19 pm
Topics: 9
Age: 41
Gender: None specified
National Flag:
Brazil
i never had this message

Attempting MQTT connection...
Connect failed
Attempting MQTT connection...
Connect failed


i think the problem is not this

look at the vídeo

Watch on youtube.com

Post Number:#7 Post Sun Jan 15, 2017 6:22 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

I can't see any other reason for this problem.

Maybe the controller is trying get the time from RTC.

Check if the line below is commented in your code.

#define USE_PINS_18_AND_19_FOR_RTC


In "ProcessMyTouch" tab add:

Serial.print("X: ");
Serial.println(x);
Serial.print("Y: ");
Serial.println(y);


After:

#ifndef INVERT_TOUCH
  x = myTouch.getX();
  y = myTouch.getY();


Then check if there coordinates on serial monitor even without touch the LCD.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#8 Post Tue Jan 17, 2017 1:33 am
Posts: 31
Topics: 9
Solve rating: 0
Joined: Tue Jan 10, 2017 2:19 pm
Topics: 9
Age: 41
Gender: None specified
National Flag:
Brazil
Solved... Just coment the line
Thanks :ymhug:

Post Number:#9 Post Tue Jan 17, 2017 7:11 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Which line was commented?

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#10 Post Sat Jan 21, 2017 7:10 pm
Posts: 31
Topics: 9
Solve rating: 0
Joined: Tue Jan 10, 2017 2:19 pm
Topics: 9
Age: 41
Gender: None specified
National Flag:
Brazil
//define USE_PINS_18_AND_19_FOR_RTC


use this way... solved

Post Number:#11 Post Sun Jan 22, 2017 3:51 pm
Posts: 31
Topics: 9
Solve rating: 0
Joined: Tue Jan 10, 2017 2:19 pm
Topics: 9
Age: 41
Gender: None specified
National Flag:
Brazil
//define USE_PINS_18_AND_19_FOR_RTC


use this way... solved... but the problem came back just when the internet cable is disconected




Return to DIY Ferduino controller





Who is online

Users viewing this topic: No registered users and 1 guest