Date   

Re: OCS 3 debugging

Howard Dutton
 

On Fri, Oct 8, 2021 at 06:42 AM, koal01 wrote:
weather panel : 3/6 sensors working
Without knowing what exactly is attached I can't check code...

Barometric pressure isn't working; it works for my BME280.
Wind speed isn't working; it works for my Modern Devices Rev.P on the T4.1 based OCS (is your analog input really correct?)
Sky conditions isn't working; I haven't tested yet.


Re: OCS 3 debugging

Howard Dutton
 

I did a fair bit of testing this morning and most of what I need the OCS to do seems to be working correctly now (software and hardware.)

Roof seems to do what it should.  DC motor MOSFET works.  Nice having the LED to see it kick on and regulate the power.
Direction relays work.  Limit switch inputs work.

Had some bugs in the thermostat code but that seems fixed now.  Buffer overflow, incomplete refactoring, etc.  Sees the inside temperature and turns on the heat relay as it should.

I have a few touch-ups to do with soldering and move the onboard (inside) BME280 address so it can co-exist with the outside one.  Basically it's done and ready though.

Looking good for installation this Saturday.


Re: OCS 3 debugging

Howard Dutton
 

On Sun, Oct 24, 2021 at 08:51 AM, Fernando Nino Sr wrote:
Howard, when will the link for the new PCB be ready to order?
I guess there's an 80% chance the revised OCS board is actually ok and everything works.  No-one has ever built one to know for sure, so I call it "beta"...

https://easyeda.com/hdutton/ocs3


Re: OCS 3 debugging

Fernando Nino Sr
 

Howard, when will the link for the new PCB be ready to order?
Thanks
Nino


Re: OCS 3 debugging

koal01
 

Nice to see the new OCS pcb soldered ! Good job ! 
I look forward to knowing about  the results when you install it.
Thanks for sharing Howard


Re: OCS 3 debugging

Howard Dutton
 
Edited

There were a few mistakes on rev 0 but nothing that couldn't be worked around.  OCS software more or less works too, I have the webpage up but not sure if the logging is really right.  If all goes well I'll install it next weekend.  Probably I'll order the corrected PCBs and build another controller with all the fixes and swap this one out at some point, I have most of the parts for two.  Then I'll have one for development and testing.


Re: OCS 3 debugging

koal01
 

OK I decided to flash the mega with my usb1 port instead of the usb 3 one and the mega has recovered, interesting !
The mega is now stable and i can reach the webpage 
All panels are working :
status panel : ok 
power panel : all relays ok
weather panel : 3/6 sensors working
lights :ok
The charts are empty, maybe in the future i think.
I can stay on that version if you need some debugging information or test anything




Thank you Howard
Koal01


Re: OCS 3 debugging

koal01
 

192.168.4.50 is my computer address, i'm pinging 4.10 (OCS board)as you can see in the screeshot


Re: OCS 3 debugging

Howard Dutton
 

On Fri, Oct 8, 2021 at 05:46 AM, Howard Dutton wrote:
The debug messages are saying the OCS is at 192.168.4.10 and you're pinging 192.168.4.50.
Oh... I see in the window title it's 4.10, other than that no idea.


Re: OCS 3 debugging

Howard Dutton
 

The debug messages are saying the OCS is at 192.168.4.10 and you're pinging 192.168.4.50.


OCS 3 debugging

koal01
 

Hi, I'm testing OCS on the Mega, i've desactivated all sensors, power panel and light panel.
The debug mode is on "VERBOSE" status but no clear information.
As we can see in the screenshot no ping in the cmd console while the monitor display successively only success status.
They are no warning orany information that can help to understand what is going wrong
Question : is seems that the communication between the 5100 and the mega is perturabated ? Is there something i can do some test around this ?


Re: New OCS developments

koal01
 
Edited

Maybe we can focus on the mega for a week and then test the compilation on The Teensy board
I know it's a job to debug several boards at a time and especially on a very new board like the Teensy 4.1

Thank you Howard for integrating my old BMP180 in your design
I'll use the 3.c version with the bmp085 introduction in OCS3 for my second test tomorrow


Re: New OCS developments

Howard Dutton
 

On Thu, Oct 7, 2021 at 12:45 PM, Howard Dutton wrote:
an an issue on the T3.5 or T3.6 ... those have been around a lot longer.
And from a hardware standpoint they have a lot more in common with each other than they have with the T4.1.


Re: New OCS developments

Howard Dutton
 

On Thu, Oct 7, 2021 at 12:15 PM, koal01 wrote:
Talking about the Teensy 4.1 the compilation is now ok in the 3.b version, a light error concerning the TSL2591 (not with the Mega) but non blocking
Note: The chances of some given I2C device library having a problem running/compiling on the T4.1 is greater than an issue on the T3.5 or T3.6 ... those have been around a lot longer.


Re: New OCS developments

koal01
 

Talking about the Teensy 4.1 the compilation is now ok in the 3.b version, a light error concerning the TSL2591 (not with the Mega) but non blocking
I'll test this version tomorrow on the mega 2560 and see if it is stable 
Ok for the verbose mode if needed
Very big job !


Re: New OCS developments

Howard Dutton
 

Also, I added the BMP085 (supports BMP180 also) to the OCS, both thermostat and weather.  Uses the Adafruit library.


Re: New OCS developments

Howard Dutton
 

On Thu, Oct 7, 2021 at 10:39 AM, koal01 wrote:
I’ve also ordered a Teensy 4.1 with headers, less expensive than the 3.6 and quite interesting 
The Mega2560 is fast enough to run the OCS.  The Teensy3.6 is about 60x faster with far more resources (RAM especially.)  The T4.1 is about another 6x faster than a T3.6.

The OCS doesn't do anything that requires that kind of speed but having that RAM is definitely a big deal...  The T3.5 and 3.6 have 256KB of RAM.  The T4.1 has 1MB but  "only" 512KB is accessible without jumping through hoops.  The Mega2560 has 2KB of RAM, and that's a real limitation.

Flash memory on the Mega2560 is easily sufficient and obviously the Teensy's have no issue there either, 512KB on a T3.5 to 8MB on a T4.1.


Re: New OCS developments

koal01
 

I’ve also ordered a Teensy 4.1 with headers, less expensive than the 3.6 and quite interesting 


Re: New OCS developments

Howard Dutton
 

On Thu, Oct 7, 2021 at 07:32 AM, Fernando Nino Sr wrote:
Howard, which Teensy are we looking at for the new OSC3.  I might as well order a couple of them to have for testing.
Thanks
Nino
I'll probably use a T4.1.


Re: New OCS developments

Fernando Nino Sr
 

Howard, which Teensy are we looking at for the new OSC3.  I might as well order a couple of them to have for testing.
Thanks
Nino

41 - 60 of 528