Forum Software Ferduino code PB ethernet when ugrade to new Ferduino code

PB ethernet when ugrade to new Ferduino code


Post Number:#1 Post Sun Mar 05, 2017 6:51 pm
Posts: 92
Topics: 10
Solve rating: 0
Joined: Sat May 17, 2014 9:03 am
Topics: 10
Age: 43
Gender: None specified
National Flag:
France
Hello Fernando, it's been a long time since I came. You have done a good job since and I congratulate you!
I have just updated my Ferduino mega but I have a problem with ethernet yet I have:

Const byte SD_CARD = 0;
Const byte ETHER_CARD = 1;
Const byte RFM = 2;
Const byte ChipSelect_SD = 5;
Const byte SelectSlave_ETH = 53;
Const byte ChipSelect_RFM = 69;


In debug it does not return the correct ip and MQTT does not connect!

Can you help me ?

Post Number:#2 Post Mon Mar 06, 2017 8:16 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!

Don't change this part of code.

For Ferduino Mega you should only comment this two lines:

//#define USE_PIN_4_FOR_SD_CARD
//#define USE_PIN_53_FOR_SD_CARD


Problems with wrong IP are normally related with SD card, try format it as FAT.

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 Wed Mar 08, 2017 6:55 pm
Posts: 92
Topics: 10
Solve rating: 0
Joined: Sat May 17, 2014 9:03 am
Topics: 10
Age: 43
Gender: None specified
National Flag:
France
i was making too many changes on your code for adapt to my installation.

i restart to your original code and it's ok now. but sometimes the "webcontrol" website say me "Your controller is not responding".

Post Number:#4 Post Thu Mar 09, 2017 8:30 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!

I think your controller is disconnecting from server (broker) continuously, look for serial monitor.

Maybe there some problem with electric noise in your power supply making the W5100 not working correctly.

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 Mon Mar 13, 2017 5:34 pm
Posts: 92
Topics: 10
Solve rating: 0
Joined: Sat May 17, 2014 9:03 am
Topics: 10
Age: 43
Gender: None specified
National Flag:
France
Hi, thank you for your reponse, but i have an IBM serveur power supply and with your old code on JOY REEF it worked well

At the start up, it's connected and after failed:

Controller IP: 192.168.0.103
Attempting MQTT connection...
Connected!
Command: Aurelien/*******/topic/command
Free memory: 3074
Free memory: 3074
Free memory: 3074
Socket:0
Attempting MQTT connection...
Connect failed
Attempting MQTT connection...
Connect failed
Attempting MQTT connection...
Connect failed
Attempting MQTT connection...
Connect failed
Attempting MQTT connection...
Connect failed
Free memory: 3074


Do you still think of power supply or see something else?

Post Number:#6 Post Mon Mar 13, 2017 6:08 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!

Yes, I think it's problem with power supply.

Try power the board only with USB cable to see what happens. Maybe the voltage won't be enough to make the RTC work.

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:#7 Post Tue Mar 14, 2017 5:54 pm
Posts: 92
Topics: 10
Solve rating: 0
Joined: Sat May 17, 2014 9:03 am
Topics: 10
Age: 43
Gender: None specified
National Flag:
France
HI!

You were right, but after unplugging the + 5v wire of my Ferduino, he briefly touched the 12v and my Ferduino flashed!

I managed to restart it but the time and date is incoherent and even after tuning I changed the DS1307 IC but still the same

Do you have a new and good idea?

Post Number:#8 Post Wed Mar 15, 2017 12:57 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!

As I told the RTC won't work with low voltage.

Try a power supply with more than 7V.

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:#9 Post Wed Mar 15, 2017 5:57 pm
Posts: 92
Topics: 10
Solve rating: 0
Joined: Sat May 17, 2014 9:03 am
Topics: 10
Age: 43
Gender: None specified
National Flag:
France
Hi Fernando, it is the + 5v general card and not the 7v-9v power supply which touched the 12v very briefly.

Now the RTC Ds1307 no longer responds even after replacing the integrated circuit.

Did you get an idea, or my ferduino board died?

Best regards !

Logs with ethernet off :

Time: 27:85:85
Free memory: 4578

Time: 27:85:85
Free memory: 4578
Last edited by Fernando Garcia on Wed Mar 15, 2017 6:58 pm, edited 1 time in total.
Reason: Please use the tags [code][/code] to post a code.

Post Number:#10 Post Wed Mar 15, 2017 6:58 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!

You don't understand what I'm talking.

When there a 5V power supply connected to power plug the voltage drop around 4V then the RTC doesn't work.

Try the test code to scan I2C devices available on forum.

Don't forget to move the RTC jumpers to position 2-3 (pins 20 -21).

The address should be 0x68 for RTC and 0x20 for PCF8575.

Your board is not damaged I think was not needed replace the RTC.

Best regards.
Last edited by Fernando Garcia on Wed Mar 15, 2017 9:54 pm, edited 1 time in total.
Reason: Fix typo
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 Wed Mar 15, 2017 7:11 pm
Posts: 92
Topics: 10
Solve rating: 0
Joined: Sat May 17, 2014 9:03 am
Topics: 10
Age: 43
Gender: None specified
National Flag:
France
I understand what you say but I do not power the card with the power plug but directly on the + 5v

When use the I2c scan i read that on monitor with jumpers on 2-3:
Scanning...
I2C device found at address 0x20 !
done
Last edited by Fernando Garcia on Wed Mar 15, 2017 9:56 pm, edited 1 time in total.
Reason: Please use the tags [code][/code] to post a code.

Post Number:#12 Post Wed Mar 15, 2017 9:57 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

So the RTC is not working.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#13 Post Mon Mar 27, 2017 5:33 pm
Posts: 92
Topics: 10
Solve rating: 0
Joined: Sat May 17, 2014 9:03 am
Topics: 10
Age: 43
Gender: None specified
National Flag:
France
Hi Fernando !

installed the module DS3231 as you advised me and it works well, but my wiznet chips work very bad even with 5v by USB.

I have ESP and i buy a logic level converter quickly.

Post Number:#14 Post Mon Mar 27, 2017 6:32 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!

Try add an electrolytic capacitor of 15 uF or less to 3.3 V circuit to reduce the noise.

The 3.3 V regulator is IC16 next of wavemaker connector. See here: http://ferduino.com/wp-content/uploads/ ... a-2560.pdf

The tab is the positive.

The problem to make ESP8266 work with Ferduino Mega is the serial port.

Serial 2 is used for stamps, maybe with the library SoftwareSerial you can emulate a serial port using 2 free pins.

I haven't tested it.

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:#15 Post Wed Apr 05, 2017 4:50 pm
Posts: 92
Topics: 10
Solve rating: 0
Joined: Sat May 17, 2014 9:03 am
Topics: 10
Age: 43
Gender: None specified
National Flag:
France

Post Number:#16 Post Wed Apr 05, 2017 6:08 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!

I'm sorry for it. :(

Are you using softwareSerial library or serial 3?

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




  • Similar Topics
    Replies
    Views
    Last post

Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron