Brand new

New members questions
Post Reply
Lionfan
Posts: 164
Joined: Wed Nov 26, 2014 8:53 am

Brand new

Post by Lionfan »

I'm brand new to reef angel. Used the wizard, and set up the basics. But that's not why I got a Reef Angel.I want vto be able to control everything.. Idk where to begin on the code. I don't even know enough to ask questions..
Image
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: Brand new

Post by lnevo »

You can look at my code for some examples of all the things you can do. How much experience with C do you have? Let us know what you'd like to do next so we can point you in the right direction. You can view the API at http://www.easte.net/ra/html
Lionfan
Posts: 164
Joined: Wed Nov 26, 2014 8:53 am

Re: Brand new

Post by Lionfan »

I have no experience with C. Or any programming. But I will try to learn as much as I can
Image
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Brand new

Post by cosmith71 »

Check this out. It's a tutorial I wrote on basic code structure. It's a good place to get familiar with basics.

http://forum.reefangel.com/viewtopic.php?f=14&t=3353

Next, decide what you want to do. Easier said than done. :mrgreen: Like Lee said, go to the "My PDE/INO" board and check out what other folks have done. Don't worry if you don't understand it. If you see something you like we can help you adapt it.

--Colin
Lionfan
Posts: 164
Joined: Wed Nov 26, 2014 8:53 am

Re: Brand new

Post by Lionfan »

Thanks for the link. Makes a little more sense. What id like to do is have a graph on the controller, and label the ports
Image
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Brand new

Post by cosmith71 »

Labeling the ports on the controller.

Add this to the setup() section:

Code: Select all

  // Define labels for 2014 LCD screen
  ReefAngel.CustomLabels[0]="Fan"; 
  ReefAngel.CustomLabels[1]="Heater"; 
  ReefAngel.CustomLabels[2]="Skimmer"; 
  ReefAngel.CustomLabels[3]="Return"; 
  ReefAngel.CustomLabels[4]="Swabbie"; 
  ReefAngel.CustomLabels[5]="Sump Light"; 
  ReefAngel.CustomLabels[6]="Canopy Fans"; 
  ReefAngel.CustomLabels[7]="Refugium Light";

  ReefAngel.CustomLabels[Box1_Port1Label] = "Alk Pump";
  ReefAngel.CustomLabels[Box1_Port2Label] = "Cal Pump";
  ReefAngel.CustomLabels[Box1_Port3Label] = "Top Off";
  ReefAngel.CustomLabels[Box1_Port4Label] = "";
  ReefAngel.CustomLabels[Box1_Port5Label] = "";
  ReefAngel.CustomLabels[Box1_Port6Label] = "";
  ReefAngel.CustomLabels[Box1_Port7Label] = "";
  ReefAngel.CustomLabels[Box1_Port8Label] = "";

  ReefAngel.CustomLabels[Box2_Port1Label] = "Virt Alk";
  ReefAngel.CustomLabels[Box2_Port2Label] = "Virt Cal";
  ReefAngel.CustomLabels[Box2_Port3Label] = "";
  ReefAngel.CustomLabels[Box2_Port4Label] = "";
  ReefAngel.CustomLabels[Box2_Port5Label] = "";
  ReefAngel.CustomLabels[Box2_Port6Label] = "";
  ReefAngel.CustomLabels[Box2_Port7Label] = "";
  ReefAngel.CustomLabels[Box2_Port8Label] = "";
The first set is the included relay box, and the second and third sections are for expansion relays. Just use what you need.

The old main screen had a graph, but the old main screen is terrible. Maybe someone can chime in on how to add one to the 2014 screens.

--Colin
Lionfan
Posts: 164
Joined: Wed Nov 26, 2014 8:53 am

Re: Brand new

Post by Lionfan »

Thanks a lot!
Image
Post Reply