Date   

OCS Pin Map

 

I plan to build a small observatory using a linear actuator. I'm still confused with the pin map on Oncue OCS. Do I need to use a router to control the observatory via wifi?


Re: Remote Update OCS Sketch

Howard Dutton
 

I will look at this... just hands full at the moment.


Re: Building my SQM

koal01
 

Your sqm customization is very interesting
What's the software behing it's not OCS, is a variant  or totally different  program ?


Re: Remote Update OCS Sketch

koal01
 

I also tested the second remote solution with Ariadne bootloader.
It works fine but this option has 2 little drawbacks :
1- more manipulations with converting hex to bin firmware, using a tftp client to upload, with ArduinoOTA you do everything in the IDE.
2- a static Ip 192.168.1.128 in Ariadne bootloader. if you are in the same network you are lucky but if are not, you'll have to launch a sketch in the example to change this Ip and write your own ip settings in the EEprom that suspend the settings registered in the bootloader. Please note when the board is powered off/on OCS ip settings are lost...
What would be interesting  is that OCS writes ip settings in the EEprom so that we don't have to launch this sketch every time the board is powered off/on.
I tested the cusomized WriteEhernetsettings powering the board off and on and ip settings are never lost.
Really it would very nice

Thank you


Re: Building my SQM

Roman Hujer
 

My DIY SQM is here Another development version is here


Re: Remote Update OCS Sketch

koal01
 
Edited

Fernando glad to see another one suffering on the same issue (joke !).
Acutally the watchdog is off on my OCS.
I'm working on this OTEthernet  sketch as a basis since it works fine.
I mean i can upload it constantly without any problem through the ethernet interface.
The ip used in this sketch is dynamic yes so i added it in Arduino programmer as a second address (see the video), so the first line is the static Ip (OCS) and the second one is the dynamic Ip (OTethernet)
The OTethernet sketch has 2 declarations
one in the void setup 
ArduinoOTA.begin(ip, "Arduino", "password", InternalStorage);
and a second in the loop : 
ArduinoOTA.poll();
I inserted them in OCS at the same place but no way.


Re: Remote Update OCS Sketch

Fernando Nino Sr
 

koal01, are you using this https://github.com/jandrassy/ArduinoOTA/tree/master/examples/OTEthernet ? That is the same sketch I was looking at, did you change the OTEthernet sketch to show a static IP or used DHCP, I have a static ip on my OCS module. Also just wondering if Watchdog is resetting itself after a certain time then try to upload the sketch?
Nino


Re: Remote Update OCS Sketch

koal01
 

Here's a video showing the upload
https://drive.google.com/open?id=1FfFrY63-BuB1sVk5z5QEMB5DSbOY1cs_


Re: Remote Update OCS Sketch

koal01
 

Hi Howard, Fernando,

Yes ArduinoOTA is very interesting and seems quite Easy...seems !
At the beginning I was thinking it was a listening port problem but i was wrong.
Sorry Howard please forget my last demand.
As i said with ArduinoOTA  I can upload  OCS remotely only the first time when the sketch on the mega is running ArduinoOTA  library.
But when OCS is installed ArduinoOTA is not running and then it is not possible to re-upload, etc...
I did not want to bother Howard with a feature that could work on the side but here again i was wrong.
I'm afraid the ArduinoOTA should be mixed with OCS  not sure Howard would be interested in that.
I can write a little small guide of the first steps to help you save some time.
I'm still testing with a little headache i have to admit.
Tell me if you are interested in that
Hear is the github link i'm using
https://github.com/jandrassy/ArduinoOTA
Juraj is the developer and tried to help me but no solution for the moment

Koal01


Re: Remote Update OCS Sketch

Howard Dutton
 

Wheres the sketch that accomplishes this?


On Tue, Mar 3, 2020, 8:12 PM Fernando Nino Sr <ninosr55@...> wrote:
I was wondering about using the ide, whether that would work. Did you use the ota library or a different one? There are different one used.
nino


Re: Remote Update OCS Sketch

Fernando Nino Sr
 

I was wondering about using the ide, whether that would work. Did you use the ota library or a different one? There are different one used.
nino


Re: Remote Update OCS Sketch

koal01
 

Hi Howard,
I can update OCS remotely when a specific sketch installed on the mega listens at the 65280 port.  Is there a a way to make OCS listens at the same port because after one update I can’t repeat that since OCS is not listening at the same port. I’ve found a simple way to update quickly from the Ide using an Ethernet port. If it’s possible to make this port available then it would be possible to use this nice feature.
thank you



Re: Remote Update OCS Sketch

koal01
 

Hi,
I've received my ISP programmer and about to burn the bootloader with it.
I'll tell you if i can progress to something interesting.
Koal01


Remote Update OCS Sketch

Fernando Nino Sr
 

Lots of reading on OTA or using alamode, lots of confusion. So I when back to step one, how to update my sketch to the OCS Arduino mega2560 with what I have around the observatory.
1. I already am using RPi4 with Stellarmate, and I installed the Arduino IDE. So I can download update OCS sketches using VNC.  Well that is one option but presents several questions.
a. will I be able to keep the usb plug inserted into the Mega and use it only when uploading the sketch?
b. Arduino is powered via 5v external power supply due to I have it running 24/7.
c. will having both plugged in do any damage? I have googled the subject and it comes to "whether the chicken or the egg came first". There are so many different answers on this subject. Ok, so I found somewhat of an answer from the website.  Open Electronics , they claim that "Therefore it is clear that if you apply the voltage to the USB port and an external source to the JACK socket at the same time, it will be this last one to power the circuit, while the USB connection will keep working for the data exchange with the computer and no longer as a power source. We remind that in both cases the 5 V socket cannot be used as input, but only as output."

Then I was thinking, maybe I can use a relay to turn on/off the OCS Arduino while I use the USB connection to upload the sketch, but the usb cable would still be in place when I get done uploading the sketch. So when I turn the OCS back on will there be a issue with the cable still plugged into the RPI4?
How about direct connection using intranet to upload sketch, or somehow make the OCS into a hotspot just to upload the sketch via wifi.
Comments, Ideas or Thoughts,  anybody?


Re: monitoring Dc help

koal01
 

Hi Howard,
The ACS172 20 Amp is working nicely thanks to your misc.ino update
Sorry I was testing with my 2 spots in my shelter thinking they were 12V-1A but actually my spots are 12V-1W that it is to say 12V-0.08 Amp, using very low amps !
So the ACS was displaying around 0.2 Amps and i was expecting 2 Amps...shame !
I spent the afternoon launching gotos with OnStep, so interesting to see how much intensity drivers are drawing, never exceding 1.5 Amp.
I like this feature and you made it possible to do that. The status panel is done.

Thank you so much
Koal01


Re: New OCS developments

Howard Dutton
 

I just made a minor update to the OCS (GitHub master) which should improve the web-site display on mobile devices.  This stems from an identical update made to OnStep.


Re: Moved Set Up Out To Observatory For Testing

Howard Dutton
 

Yes, I was planning to use the WDT.

The OCS already has an option to reset itself automatically using the WDT if something hangs but that seems to have problems so we keep it turned off.  Just need to revisit it.


Re: Moved Set Up Out To Observatory For Testing

Fernando Nino Sr
 

I forgot to add this one to about resetting the arduino.
http://blog.industrialshields.com/en/how-to-reset-a-plc-using-the-ethernet-shield/


Re: Moved Set Up Out To Observatory For Testing

Fernando Nino Sr
 

That is the same website I was looking at. Lots of great info.
Nino


Re: Moved Set Up Out To Observatory For Testing

Fernando Nino Sr
 

Sub Zero Temps( -16.9), still working great! 

421 - 440 of 537