|
Re: Problems after implementing weater functions
I2C speed 10000, is in Hz.
Weather stuff updates at 32 second intervals. Log entries every 30 seconds are from running averages read from sensors every 2 seconds. Data is pulled from sensors as
I2C speed 10000, is in Hz.
Weather stuff updates at 32 second intervals. Log entries every 30 seconds are from running averages read from sensors every 2 seconds. Data is pulled from sensors as
|
By
Howard Dutton
·
#395
·
|
|
Re: Problems after implementing weater functions
One problem resolved ! The Weather Charts are now correctly displayed once I have cleared the browser (Firefox) cache...
Now it is time to tackle the I2C bus sensors problem !
Thanks a lot Howard for
One problem resolved ! The Weather Charts are now correctly displayed once I have cleared the browser (Firefox) cache...
Now it is time to tackle the I2C bus sensors problem !
Thanks a lot Howard for
|
By
Laurent HOUSSAYE
·
#394
·
|
|
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
On Wed, Apr 21, 2021 at 10:18 AM, Laurent HOUSSAYE wrote:
But if I open it with Notepad, there is nothing written inside...Oh yes it does have content, I see 225K size is present. It's all spaces " "
On Wed, Apr 21, 2021 at 10:18 AM, Laurent HOUSSAYE wrote:
But if I open it with Notepad, there is nothing written inside...Oh yes it does have content, I see 225K size is present. It's all spaces " "
|
By
Howard Dutton
·
#388
·
|
|
Re: Problems after implementing weater functions
On Wed, Apr 21, 2021 at 09:33 AM, Laurent HOUSSAYE wrote:
The length of the I2C cable is more around 30 m...That's longer than I'd ever consider using. Google it.
On Wed, Apr 21, 2021 at 09:33 AM, Laurent HOUSSAYE wrote:
The length of the I2C cable is more around 30 m...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
On Wed, Apr 21, 2021 at 06:50 AM, Laurent HOUSSAYE wrote:
I need to get these charts correct with these very basic sensors connected before I go further, isn't it ? What would you suggest as further
On Wed, Apr 21, 2021 at 06:50 AM, Laurent HOUSSAYE wrote:
I need to get these charts correct with these very basic sensors connected before I go further, isn't it ? What would you suggest as further
|
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
On Tue, Apr 20, 2021 at 12:51 PM, Laurent HOUSSAYE wrote:
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).
On Tue, Apr 20, 2021 at 12:51 PM, Laurent HOUSSAYE wrote:
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).
|
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
·
|