Date   

Re: New OCS developments

Howard Dutton
 

This weekend I finished installing most of the control functions for the new OCS3 hardware at the observatory.

The thermostat inside heat, roll-off roof, and warm and observing room red and white LED lights. I ran the roof for several cycles and it works great, no signs of trouble, good to have things basically working again.

I still have to wire in the weather sensors, next time hopefully.


Re: OCS 3 debugging

Howard Dutton
 

The OCS hardware is on EasyEDA, its still beta so hopefully it all works acceptably, AFAIK it does.

The OCS doesn't use the OnStep ASCOM drivers.  And unlike OnStep, the ASCOM drivers for the OCS are not free, there is a small charge to obtain them.


Re: OCS 3 debugging

Fernando Nino Sr
 

Good Morning Howard, any idea when the Beta OCS Board and BOM will be ready to purchase and will this new OCS work with your ASCom driver. Just asking due it takes a while to get the parts, just wanted to get a head start on the electronic parts needed.
Thanks
Nino


Re: OCS 3 debugging

koal01
 

Hi

Actually I have a doubt concerning the RevP. I’ll check the wiring, I suspect a cable problem, I’ll check that tomorrow.
The other 2 sensors not working 
-the bmp180 : I’m using the bmp180 library in my 2.3i version but you are using the  bmp085 library in the latest version, maybe this lib has a problem in this version.
-the IR sensor is not working for a reason I don’t know.
Thank you Howard


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.

1 - 20 of 492