ATO Water Expansion (Single) Code

Do you have a question on how to do something.
Ask in here.
Post Reply
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

ATO Water Expansion (Single) Code

Post by aranax »

I'm sure this has been written to death but I can't find code that works.

I have a Single-type Water Expansion Module (not the float switch) and I want to:

Turn on Box1_port8 when the water level is 0 (empty)
Turn off Box1_port 8 when the water level is 100 <or some value> (full)
Display the current water level (detected by this sensor).

This sensor is inside of a ATO reservoir not directly in the sump. Basically the sensor should sense when the reservoir is low and fill it back up.

Additionally, can some one please tell me how to display the current intensity of a Vortech? I have code that shows what wave type its on but I can't get the intensity to display. Thanks.

Jeremiah
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: ATO Water Expansion (Single) Code

Post by rimai »

The wizard does that, but here is the code:

Code: Select all

    ReefAngel.WaterLevelATO( Port1,60,0,100 );
60s timeout, 0% to 100% range.
For the RF speed, use something like this:

Code: Select all

      char text[10];
      ConvertNumToString(text, ReefAngel.RF.Speed, 1);
      ReefAngel.LCD.DrawLargeText(DPColor, DefaultBGColor, 10, 10, text);
Roberto.
aranax
Posts: 120
Joined: Thu Jun 02, 2011 11:54 pm

Re: ATO Water Expansion (Single) Code

Post by aranax »

Thanks Robert. I tried the code generated by the wizard earlier and it didn't work...initially. I just found that issue...I didn't calibrate the 0% and 100% properly :).

Everything works great now. Thanks for your help.

Jeremiah
Image
Post Reply