Date   

Re: monitoring Dc help

koal01
 

Hi Howard,
What I meant when talking about measuring intensity it is more a feature measuring all the current drawn from the relays (I’m using 12 v dc), introducing a kind of ammeter.
Affer some research it seems that what I need is using an ACS712 module that would measure the curent consumed by the accessories (camera, lights, onstep, etc...) and display it on the status panel of OCS. My question is if I plug the output of the ACS712 module to the « S » pin of an analogic pin on the OCS board will it work ?
Sorry for this small mini arduino project in OCS but current in my setup is critical.
Nice sky
Koal01


Re: First board +

Howard Dutton
 
Edited

I don't as a rule distribute that design.  And at this point even I wouldn't build an OCS PCB again.

I feel the eBay relay boards are a better proposition both in terms of cost and for easy implementation.  At some point I plan to design an board that provides some protection to the digital and analog input side but that hasn't been done.  And quite frankly the need for protection is questionable.  After all the Mega2560 is cheap and were something to happen toss it and drop another in.

As I state on my website this system is for capable DIY'ers!


Re: monitoring Dc help

koal01
 

Thank you Howard,

I would say nearly all the features in OCS interest me. LOL
I was wondering if my solar panels 150 Watts X 2 and 2 batteries 100AH could supply OCS and all the equipments that's why i'm interested in monitoring the power.

Just for fun here is my equipments list and max current needs :

#define POWER_DEVICE1_NAME "OnStep_12V-2A"
#define POWER_DEVICE2_NAME "Camera_RAF_12V_4A"
#define POWER_DEVICE3_NAME "Hub_Usb_12V_5A"
#define POWER_DEVICE4_NAME "Heating_IR_5V_0.2A"
#define LIGHT_ORW_RELAY               12 // 12V_1A

Don't know how much amp OCS needs for its on purpose at least 1 A i suppose ?

Again thank you and thank you
Koal01
 


Re: First board +

stefacom1@...
 

I would like to built one version of your solution
http://www.stellarjourney.com/index.php?r=site/observatory_control

Schema , tuto are disponible ?


Re: First board +

Howard Dutton
 

I really don't understand the question; but I don't have anything to do with that sourceforge project nor any interest in it.


Re: monitoring Dc help

Howard Dutton
 

On Wed, Jan 22, 2020 at 01:47 PM, koal01 wrote:
If i want to monitor my external 12 v supply implementing STAT_DC_PS_ANALOG and STAT_DC_CURRENT_ANALOG
i suppose i have to wire the "S" pins on analog pins to the  supply cable 12 V + ?
In my case i chose A0 and A1.
Yes the OCS PCB Analog inputs A0 to A5 can handle measuring 12V DC directly.  The inputs are resistor divided and diode clamped for protection.

Concerning the current i see that we have to complete a function in the misc.ino file ?
Is it a future evolution or do we have to complete the current function ?
Since the individual user must decide on a sensor to measure current there is no one size fits all solution.  Each must be added.  I don't use this feature, nor do I intend to use every feature supported by the OCS, it was designed to be more comprehensive than for just my own use.

For DC the V=IR relationship can easily be used to calculate the voltage drop (V) across a known low resistance (R.)  If you know both V and R you can then calculate (I) the current.
For AC you need a sensor designed for that.

Google is your friend, lots of Arduino projects out there.


First board +

stefacom1@...
 

Hello to all ,

I'm target to build a experimental board for sqm detector for fun, And i have start this tuto .. (electronic in order) , and i have discover this new group by onstep . Than it's more interesting to have a global "Howard solution", and it's so interesting to test develop and debug .. 
https://sourceforge.net/projects/arduinomysqmskyqualitymeter/files/mySQM-v1-Retired/Windows%20App/mySQMGPS_2_2_6_9.zip/download

Do you have some code to distrubate for test it ?

Thanks you very much


monitoring Dc help

koal01
 

Hi Howard,
I'm running the 2.0g and it works fine !
I wired the heater on a relay following you advice and switch it on only in extreme conditions. The rest of the time i switched it off since the box is small, readings can be skewed.

Now i'm concentrating on the status panel and DC voltage/current.
So i have a question.
If i want to monitor my external 12 v supply implementing STAT_DC_PS_ANALOG and STAT_DC_CURRENT_ANALOG
i suppose i have to wire the "S" pins on analog pins to the  supply cable 12 V + ?
In my case i chose A0 and A1.
Concerning the current i see that we have to complete a function in the misc.ino file ?
Is it a future evolution or do we have to complete the current function ?
Sorry if i'm not clear.
Thank you
Koal01


Re: Thanks Howard!

Howard Dutton
 

Thank you.  This same configuration file format has worked out well in my other projects and I find it nice for my own use as well.


Re: version master 2.0g Ntp bug ?

Howard Dutton
 

On Mon, Jan 20, 2020 at 02:42 AM, koal01 wrote:
Was the weather enough good this week-end to install your sqm ?
Snowing like crazy and/or cold as heck so not this time around :)


Re: version master 2.0g Ntp bug ?

koal01
 
Edited

Sorry you were right, it was windy when i updated and did not see a gateway ip error.
It is a great update in config.h and easy to get into, i'm using your "Weather.ino.myObsSetup.txt" 
Was the weather enough good this week-end to install your sqm ?

Thanks a lot !
Koal01


Re: version master 2.0g Ntp bug ?

Howard Dutton
 

Doubt it, NPT works here.  The gateway address, etc. needs to be correct and of course NTP sometimes doesn't answer.


Thanks Howard!

Fernando Nino Sr
 

Just checked the updated sketch, it is a lot easier to read and decipher, lots of work on your part,  Also thanks for the example code on sensors.
Thanks again for the changes
Nino


version master 2.0g Ntp bug ?

koal01
 

Hi Howard, 
For feedback
I'm testing this version and can't update time.
Downgrading to 1.4f and same ip timeserver and time is now ok

Koal01


Re: relay question

Howard Dutton
 
Edited

On Thu, Jan 16, 2020 at 02:27 PM, koal01 wrote:
I intend to use relay 4 to monitor heating in the box when it's freezing.
This relay was designed for heating an observatory but  i'm not going to use it in the near future.
The relay to be used seems to be this one :
#define HEAT_RELAY 4                // Relay# for heating
Relay 4 isn't specific to anything.  The HEAT_RELAY in this case just happens to be #4, it could be any supported relay.  Observatory or box shouldn't really matter the feature is for thermostatic heat control.

What does the parameter _MEMORY_ON/OFF in the Power panel section means in the config.h ?
The memory setting if enabled preserves the relay state across power cycles.  If you turn the relay on and the power is lost... when the power comes back on it'll be turned on again.

You should take a look with the OCS version 2... the Config.h file is much more intuitive.

// POWER PANEL ---------------------------------------------------------------------------------------------------------------------
#define POWER                          ON //    OFF, ON to enable the OCS website power panel display.                        Option

#define POWER_DEVICE1_RELAY             1 //    OFF, n. Where n=1..14 (Relay#) with _NAME below.                              Option
#define POWER_DEVICE1_MEMORY          OFF //    OFF, ON to enable memory (across power cycles) for this relay state.          Option
#define POWER_DEVICE1_NAME "RELAY 1"

#define POWER_DEVICE2_RELAY             2 //    OFF, n. Where n=1..14 (Relay#) with _NAME below.                              Option
#define POWER_DEVICE2_MEMORY          OFF //    OFF, ON to enable memory (across power cycles) for this relay state.          Option
#define POWER_DEVICE2_NAME "RELAY 2"
.
etc.
.

// THERMOSTAT PANEL ----------------------------------------------------------------------------------------------------------------

// See Thermostat.ino for user inside temperature and humidity sensor functions
#define THERMOSTAT                    OFF //    OFF, ON to enable the OCS website thermostat panel display.                   Option
#define HEAT_RELAY                    OFF //    OFF, n. Where n=1..14 (Relay#) for indoor heat.                               Option
#define COOL_RELAY                    OFF //    OFF, n. Where n=1..14 (Relay#) for cooling/venting.                           Option
#define THERMOSTAT_HUMIDITY           OFF //    OFF, ON displays indoor humidity.                                             Option

// LIGHTING PANEL ------------------------------------------------------------------------------------------------------------------
#define LIGHT                         OFF //    OFF, ON to enable the OCS website lighting panel display.                     Option
#define LIGHT_WRW_RELAY               OFF //    OFF, n. Where n=1..14 (Relay#) for Warm room white lights.                    Option
#define LIGHT_WRR_RELAY               OFF //    OFF, n. Where n=1..14 (Relay#) for Warm room red lights.                      Option
#define LIGHT_ORW_RELAY               OFF //    OFF, n. Where n=1..14 (Relay#) for Observing room white lights.               Option
#define LIGHT_ORR_RELAY               OFF //    OFF, n. Where n=1..14 (Relay#) for Observing room red lights.                 Option
#define LIGHT_OUTSIDE_RELAY           OFF //    OFF, n. Where n=1..14 (Relay#) for Outside flood.                             Option
#define LIGHT_SW_SENSE                OFF //    OFF, n. Where n=1..6 (Sense#) for switch to turn WRW lights on/off.           Option


relay question

koal01
 

Howard,
I intend to use relay 4 to monitor heating in the box when it's freezing.
This relay was designed for heating an observatory but  i'm not going to use it in the near future.
The relay to be used seems to be this one :
#define HEAT_RELAY 4                // Relay# for heating

What does the parameter _MEMORY_ON/OFF in the Power panel section means in the config.h ?

Thanks
Koal01


Re: Building my SQM

koal01
 

Fingercrossed ! Hope the weather will change so that you can install it
Sqm sensor is absolutely magic !
Good luck 


Re: Yikes Do I have to replace my relays?

Fernando Nino Sr
 

Thanks Howard, that was the other thing I was looking at, switching to a higher amp relays
Nino


Re: Building my SQM

Howard Dutton
 

BTW, this is done and waiting for installation...
I'll be up there (at the observatory) this weekend but I doubt I will have the opportunity to install due to poor weather conditions. :)


Re: IR sensor heating

Howard Dutton
 

On Thu, Jan 16, 2020 at 05:29 AM, koal01 wrote:
i have a basic question for you, can i use the 12 V- wire (from the wind sensor) for another purpose and use the 5V- instead ? can the wind sensor work with a 12V+ and 5V- ? Since all the negative wires are connected together it should be possible ?
I don't have a schematic to see what exactly you have wired to what but generally speaking yes a common ground can be run on one wire.

461 - 480 of 536