|
Re: Problems after implementing weater functions
An interesting extract from a forum :
"The insane sounding lengths like 10, 25, and 100m are perfectly possible, and I use the method often (with UART not I2C, but the method stands) when I need to
An interesting extract from a forum :
"The insane sounding lengths like 10, 25, and 100m are perfectly possible, and I use the method often (with UART not I2C, but the method stands) when I need to
|
By
Laurent HOUSSAYE
·
#393
·
|
|
Re: Problems after implementing weater functions
I forgot to join a picture :
I forgot to join a picture :
|
By
Laurent HOUSSAYE
·
#392
·
|
|
Re: Problems after implementing weater functions
Goodnews !!! I opened OCS web page from another computer in my home and Weather chart is OK !!!! software is Firefox on both computers... I will clear the cache tomorrow morning on the "faulty"
Goodnews !!! I opened OCS web page from another computer in my home and Weather chart is OK !!!! software is Firefox on both computers... I will clear the cache tomorrow morning on the "faulty"
|
By
Laurent HOUSSAYE
·
#391
·
|
|
Re: Problems after implementing weater functions
Now... did you ever clear the browser cache?
This is specifically designed so the OCS doesn't need to send that big file every time a page is loaded, so a bad copy in the web browser cache can keep it
Now... did you ever clear the browser cache?
This is specifically designed so the OCS doesn't need to send that big file every time a page is loaded, so a bad copy in the web browser cache can keep it
|
By
Howard Dutton
·
#390
·
|
|
Re: Problems after implementing weater functions
I2C rates?
See Weather.ino near the bottom...
// slow down i2c so long distances work, still plenty fast for our little data being moved around
Wire.setClock(20000);
I2C rates?
See Weather.ino near the bottom...
// slow down i2c so long distances work, still plenty fast for our little data being moved around
Wire.setClock(20000);
|
By
Howard Dutton
·
#389
·
|
|
Re: Problems after implementing weater functions
Oh yes it does have content, I see 225K size is present. It's all spaces " " and data is positioned by line
OCS is writing the file and SD is working.
Btw:
Size = exactly 80 bytes per line x 2
Oh yes it does have content, I see 225K size is present. It's all spaces " " and data is positioned by line
OCS is writing the file and SD is working.
Btw:
Size = exactly 80 bytes per line x 2
|
By
Howard Dutton
·
#388
·
|
|
Re: Problems after implementing weater functions
That's longer than I'd ever consider using. Google it.
That's longer than I'd ever consider using. Google it.
|
By
Howard Dutton
·
#387
·
|
|
Re: Problems after implementing weater functions
I have run the following sketch to test the SD card communication (copied from internet) :
#include <SPI.h>
#include <SD.h>
File myFile;
String buffer;
String filename = "test";
void setup() {
I have run the following sketch to test the SD card communication (copied from internet) :
#include <SPI.h>
#include <SD.h>
File myFile;
String buffer;
String filename = "test";
void setup() {
|
By
Laurent HOUSSAYE
·
#386
·
|
|
Re: Problems after implementing weater functions
I have inserted another SD card (8 Gb reformatted) with Chart.js placed in the root directory, but no change : Weather charts are empty.
New : I now have a file written on the SD Card :
But if I open
I have inserted another SD card (8 Gb reformatted) with Chart.js placed in the root directory, but no change : Weather charts are empty.
New : I now have a file written on the SD Card :
But if I open
|
By
Laurent HOUSSAYE
·
#385
·
|
|
Re: Problems after implementing weater functions
The length of the I2C cable is more around 30 m...
The length of the I2C cable is more around 30 m...
|
By
Laurent HOUSSAYE
·
#384
·
|
|
Re: Problems after implementing weater functions
I have inserted a 16 Gb SD card. May be it is to much ? Up to now, no file is written on the SD card, which only contains Chart.js.
Also what is the maximum length of cable for the i2c bus ? Can the
I have inserted a 16 Gb SD card. May be it is to much ? Up to now, no file is written on the SD card, which only contains Chart.js.
Also what is the maximum length of cable for the i2c bus ? Can the
|
By
Laurent HOUSSAYE
·
#383
·
|
|
Re: Problems after implementing weater functions
Check the SD card contents to see that the log files are being written. They are plain text files, you can open them in notepad on a PC.
Read up on the Arduino SD card support, what works and what
Check the SD card contents to see that the log files are being written. They are plain text files, you can open them in notepad on a PC.
Read up on the Arduino SD card support, what works and what
|
By
Howard Dutton
·
#382
·
|
|
Re: Problems after implementing weater functions
A statement like this:
Leads me to think you were implying the relay state could impact stability.
A statement like this:
Leads me to think you were implying the relay state could impact stability.
|
By
Howard Dutton
·
#381
·
|
|
Re: Problems after implementing weater functions
Good morning,
Status of this morning : There are still reboots, even with the the relays HIGH (i.e. no 220 V AC current transiting the output terminals of the relay).
Let me make it clearer :
Good morning,
Status of this morning : There are still reboots, even with the the relays HIGH (i.e. no 220 V AC current transiting the output terminals of the relay).
Let me make it clearer :
|
By
Laurent HOUSSAYE
·
#380
·
|
|
Re: Problems after implementing weater functions
If you're saying switching mains (or even the act of switching relays) is crashing the system go back to my first post in reply to this.
Interference:
EMI
RF
Back EMF.(flyback from relay coils.)
High
If you're saying switching mains (or even the act of switching relays) is crashing the system go back to my first post in reply to this.
Interference:
EMI
RF
Back EMF.(flyback from relay coils.)
High
|
By
Howard Dutton
·
#379
·
Edited
|
|
Re: Problems after implementing weater functions
When the relays are HIGH (220 V AC in Open Circuit at the relay ouput terminals) the system is stable : no reboot in more than 88 minutes). See screen copy :
I let it in this state for the night and
When the relays are HIGH (220 V AC in Open Circuit at the relay ouput terminals) the system is stable : no reboot in more than 88 minutes). See screen copy :
I let it in this state for the night and
|
By
Laurent HOUSSAYE
·
#378
·
|
|
Re: Problems after implementing weater functions
What about that I2C bus...
Bus and all sensors are 5V rated/compatible? Level translation for 3V3?
Loading resistors?
Twisted pair? How long?
What about that I2C bus...
Bus and all sensors are 5V rated/compatible? Level translation for 3V3?
Loading resistors?
Twisted pair? How long?
|
By
Howard Dutton
·
#377
·
|
|
Re: Problems after implementing weater functions
I would tackle problems one at a time...
Get the rain sensor working first, that should be a basic device right?
I would tackle problems one at a time...
Get the rain sensor working first, that should be a basic device right?
|
By
Howard Dutton
·
#376
·
|
|
Re: Problems after implementing weater functions
Or perhaps corrupt signaling on the I2C bus locks up the (Arduino) Wire library.
Or perhaps corrupt signaling on the I2C bus locks up the (Arduino) Wire library.
|
By
Howard Dutton
·
#375
·
|
|
Re: Problems after implementing weater functions
The OCS reads the "Chart.js" file and sends it to your web browser to run.
I commented on the likely causes already. I just started from scratch here in that last go around, my development laptop
The OCS reads the "Chart.js" file and sends it to your web browser to run.
I commented on the likely causes already. I just started from scratch here in that last go around, my development laptop
|
By
Howard Dutton
·
#374
·
Edited
|