Page 2 of 2

Re: Sorry - Another "what do I need" thread

Posted: Wed Mar 19, 2014 9:07 am
by rimai
Yes, you can use coaxial with BNC connectors.

Re: Sorry - Another "what do I need" thread

Posted: Wed Mar 19, 2014 9:22 am
by Sacohen
Roberto;

I wanted to use 2 Salinity Probes (1 for the tank and 1 for my water change water).
I tried using an BNC A/B switch (like this one http://www.monoprice.com/Product?seq=1& ... OgodpRQAEg) with BNC cables going to each probe and I did see a drop in the salinity reading of the probes.

It could have been a bad cable that I was using, but theoretically would this work.

Re: Sorry - Another "what do I need" thread

Posted: Wed Mar 19, 2014 9:27 am
by rimai
It could work.
I don't know what's inside of the box, but if it is just a mechanical switch, it could work.

Re: Sorry - Another "what do I need" thread

Posted: Wed Mar 19, 2014 9:52 am
by Sacohen
I'll try it again with cables that I'll have one of the engineers in the studio make for me.
If I still see fluctuation it could be a bad switch that I found lying around in the back of the studio. That may be why it wasn't being used.

Re: Sorry - Another "what do I need" thread

Posted: Tue Mar 25, 2014 3:40 am
by wolffman64
Hi,

Ok I have most of it connected and up and running, apart from the water level sensor for my ATO "container. I'm also temporarily using the relays to control my T5's and moonlight, since my LED upgrade for my RSM250 hasn't arrived yet.

I have used the wizard to create the basic code that I'm now trying to modify and add to, but I have a number of questions, that I have looked all over this excellent forum for answer but not found. I have done a fair bit of programming in the start of my career, but obviously not in this language, so I would be very grateful for some help.

1) What does the line "ReefAngel.CustomLabels[0]="Return Pump";" do? I understand that it defines the first relay port as the RT, but does it show up somewhere?

2) I'm struggling big time with the different modes for the Jebao WP40. In the main thread "Wave patterns", it explains what the different patterns are, but the code in the beginning seem to be old way of coding the patterns, and later on people are using "ReefAngel.PWM.SetDaylight( ReefCrestMode(50,20,true) ) to create the ReefCrest, with 50% average and +-20% variation. If you then use the wizard for wave crest (and put in 100% as the value), it creates the line "ReefAngel.DCPump.SetMode( ReefCrest,100,10 ); which doesn't make sense to start with since it can't go over 100%, and where does the 10 come from?

3) Can I find all the new codes for the pump modes somewhere?

4) All these cool and new defined pre-defined phrases, like DCPump.SetMode and CustomLabel, are they written down and described somewhere, or do I have to go through every single thread here to find them?

Lastly, the RA is such a cool device, I am soo keen to get into the programming of it :P :P :P

Re: Sorry - Another "what do I need" thread

Posted: Tue Mar 25, 2014 4:35 am
by wolffman64
And I just went through Inevo's full code, and understood absolutely nothing..... Hmmmmm

Re: Sorry - Another "what do I need" thread

Posted: Tue Mar 25, 2014 5:27 am
by lnevo
Just use the wizard to define the DCPump. You don't have to do any more coding on wave patterns once you have that. Everything from the Wave Pattern thread is now built in.

You can browse the code documentation here:

http://www.easte.net/RA/html

My code is pretty advanced, but whats important to note is that each function is pretty stand alone. It also makes extensive use of internal memory so you can change things on the fly. All the InternalMemory calls are just storing and recalling saved variables essentially.

Re: Sorry - Another "what do I need" thread

Posted: Tue Mar 25, 2014 6:29 am
by wolffman64
Well, the wizard can't handle that I want to have different wave patterns during the day, ie reefcrest during the day, nutrient transport a couple of hours in the evening, and then lagoon during the night.

Right now I however have a slight disaster here. When I tried to upload my latest sketch, it compiled fine, starts to transfer the code and then gets stuck, with the orange text talking about a "time out" and the same segment comes up over and over again with a couple of seconds delay. I had reboot the PC, reboot RA, and it is now not working at all!!!!!
The whole RA is in some sort of lockdown mode, with the red light blinking and I can't get it to communicate at all. All relay switches are off, tank is completely dead.

The RA is very close to go out through the window.....
Please any suggestions?? I'm desperate..

Re: Sorry - Another "what do I need" thread

Posted: Tue Mar 25, 2014 7:08 am
by wolffman64
Well, I got it working again, by restarting everything again, and uploading a new code.
It seems like I can only do 1 upload of a new code. If I try it a second time, I get time out errors in the middle of the upload, and everything locks up.

Anybody seen this before??

Re: Sorry - Another "what do I need" thread

Posted: Tue Mar 25, 2014 8:18 pm
by wolffman64
Anyone? Pretty please? ;)