Forum Hardware Main board Ferduino mega crash

Ferduino mega crash  [SOLVED]


Post Number:#1 Post Fri Jan 12, 2018 9:07 am
Posts: 33
Topics: 10
Images: 8
Solve rating: 1
Joined: Wed Jan 10, 2018 7:30 am
Topics: 10
Age: 44
Gender: None specified
National Flag:
Italy
Hi Fernando.
Thank you so much for the wonderful work!
I bought a used mega ferduino card and I'm testing it. I found that after a few hours the card crashes. The screen remains with the image locked and I have to turn off and restart.
I also have problems with relays-1. When I connect it to the board the LEDs of the relay that should control the pumps and the heater(pin A6/A7/A8) turn on but I can not turn them off from the webcontrol.
Do I have to change the code? Can you help me?
Thank you very much

-------------------------------- Last edited Fri Jan 12, 2018 2:17 pm --------------------------------

I'll give you some more information. I have enabled the watch dog, disabled the prints and feed the card with a 7.5v charger.
Thanks

Post Number:#2 Post Fri Jan 12, 2018 11:28 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Welcome Juan!

First thing disable the watch dog for now.

I bought a used mega ferduino card and I'm testing it. I found that after a few hours the card crashes. The screen remains with the image locked and I have to turn off and restart.


You should test it with basic code without modules connected then will step by step activating features until find where's the problem.

I also have problems with relays-1. When I connect it to the board the LEDs of the relay that should control the pumps and the heater(pin A6/A7/A8) turn on but I can not turn them off from the webcontrol.


You should try it first with test code to see if the wiring is alright. This module has inverted logic (I mean LOW to ON and HIGH to OFF)?

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:#3 Post Tue Jan 16, 2018 5:14 pm
Posts: 33
Topics: 10
Images: 8
Solve rating: 1
Joined: Wed Jan 10, 2018 7:30 am
Topics: 10
Age: 44
Gender: None specified
National Flag:
Italy
hello fernado, thanks again!
I did as you told and I found that the board goes in block when compiles the code part for the network .
after two or three hours everything stops.
in this period the connection to the webcontrol is unstable, I connect for a second and then I'm down for a few minutes (error 28). then another fast connection and so on until it stops.
I try to open some doors on the router (5000 ; 6000) and I think the problem is not that.
but I have to change the code by inserting the door open?
thank you so much for your help

Post Number:#4 Post Tue Jan 16, 2018 10:45 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Ferduino now works with MQTT, port forwarding is not needed anymore.

This type of issue is related to electric noise. Ethernet circuit is very sensitive.

Try replace your power supply and / or add a module like this to try remove the noise.

Image


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:#5 Post Wed Jan 17, 2018 4:07 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

If the problem persists you can add a WiFi module to your controller as Thomas did.

viewtopic.php?f=19&t=443&hilit=esp8266
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 Thu Jan 18, 2018 5:21 pm
Posts: 33
Topics: 10
Images: 8
Solve rating: 1
Joined: Wed Jan 10, 2018 7:30 am
Topics: 10
Age: 44
Gender: None specified
National Flag:
Italy
hi fernando,
I installed the filter but the situation does not change.
I can't connect permanently to the webcontrol and the card always hangs. if the ethernet card is not enabled, the card remains in operation without problems (tested for 24 hours).
I tried to load a simple sketch and the card goes on the net in a stable way. the router with this sketch accepts port forwarding on port 5000 and I also call the card out of the lan without problems (http://151.20.146.88:5000) without any crash.
I'm really little expert on arduino but I think that the problem may be in some of my mistakes on the code.
if I can not do otherwise I will try as thomas hoping it is not too complicated

thanks for the help

Post Number:#7 Post Thu Jan 18, 2018 8:08 pm
Posts: 33
Topics: 10
Images: 8
Solve rating: 1
Joined: Wed Jan 10, 2018 7:30 am
Topics: 10
Age: 44
Gender: None specified
National Flag:
Italy
others information...
when I open the serial monitor it connects and communicates and after two or three times starts to write free memory 3125. if I close and reopen the monitor the same situation.
ty

Post Number:#8 Post Fri Jan 19, 2018 8:10 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

I'm really little expert on arduino but I think that the problem may be in some of my mistakes on the code.
ty


I don't think that you did something wrong on code. There others users with this problem too.


others information...
when I open the serial monitor it connects and communicates and after two or three times starts to write free memory 3125. if I close and reopen the monitor the same situation.
ty


It's an expected behaviour.

After some time you will see on monitor the board trying to reconnect to the MQTT broker. Because it's losing the connection all time.

Like this:

Free memory: 3115
Free memory: 3115
Free memory: 3115
Free memory: 3115
Attempting MQTT connection...
Connect failed
Attempting MQTT connection...
Connected!
Command: xxxxx/xxxxxx/topic/command


Try power the board only using USB cable to see if it stay stable.

Best regards.
Last edited by Fernando Garcia on Fri Jan 19, 2018 9:03 am, edited 2 times in total.
Reason: Fix message on monitor serial
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#9 Post Thu Jan 25, 2018 11:36 am
Posts: 33
Topics: 10
Images: 8
Solve rating: 1
Joined: Wed Jan 10, 2018 7:30 am
Topics: 10
Age: 44
Gender: None specified
National Flag:
Italy
hello fernando,
I bought the nodemcu and I did the installation as you showed.
But even in this I do not have a stable connection.
from the pages of the esp-ling wading the debugging voice I have the message that you report below.
It seems like the same problem I had with the network cable.

conn 0x3fff7988
 48920> MQTT: Disconnected from ferduino.com:1883
 48921> MQTT Client: Disconnected
 49602> MQTT: Connect to ferduino.com:1883 0x3fff7988 (client=0x3fff63e0)
 49638> MQTT: ip 104.131.49.99
 49639> MQTT: connecting...
 49775> MQTT: TCP connected to ferduino.com:1883
 49776> MQTT: Send type=TYPE_CONNECT id=0000 len=51
 49921> MQTT: Recv type=CONNACK id=0000 len=4; Pend type=NULL id=00
 49921> MQTT Client: Connected
 49922> MQTT: Disconnect CB, freeing espconn 0x3fff7988
 49922> MQTT: Disconnected from ferduino.com:1883
 49922> MQTT Client: Disconnected
 50602> MQTT: Connect to ferduino.com:1883 0x3fff7988 (client=0x3fff63e0)
 50638> MQTT: ip 104.131.49.99
 50639> MQTT: connecting...
 50764> MQTT: TCP connected to ferduino.com:1883
 50764> MQTT: Send type=TYPE_CONNECT id=0000 len=51
 50894> MQTT: Recv type=CONNACK id=0000 len=4; Pend type=NULL id=00
 50894> MQTT Client: Connected
 50895> MQTT: Disconnect CB, freeing espconn 0x3fff7988
 50895> MQTT: Disconnected from ferduino.com:1883
 50895> MQTT Client: Disconnected
 51602> MQTT: Connect to ferduino.com:1883 0x3fff7988 (client=0x3fff63e0)
 51641> MQTT: ip 104.131.49.99
 51642> MQTT: connecting...
 51755> MQTT: TCP connected to ferduino.com:1883
 51755> MQTT: Send type=TYPE_CONNECT id=0000 len=51
 51777> HTTP GET /menu: 200, 45ms, h=13632
 51792> HTTP GET /log/dbg: 200, 58ms, h=14736
Last edited by Fernando Garcia on Thu Jan 25, 2018 6:03 pm, edited 1 time in total.
Reason: Please use tags [code][/code] to post any code here.

Post Number:#10 Post Thu Jan 25, 2018 6:05 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 40
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

The connection is stable with Ferduino M. disconnected from NodeMCU?

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:#11 Post Thu Jan 25, 2018 7:59 pm
Posts: 33
Topics: 10
Images: 8
Solve rating: 1
Joined: Wed Jan 10, 2018 7:30 am
Topics: 10
Age: 44
Gender: None specified
National Flag:
Italy
I found the solution. Unfortunately, it must be my internet provider. now the board is connected in tethering with my smartphone and everything works!
Thank you very much for your availability




Return to Main board





Who is online

Users viewing this topic: No registered users and 0 guests