Page 1 of 1

RaGen and Mac

Posted: Thu Feb 09, 2012 9:41 am
by wagner7123
1. I have a Mac, which as it turns out is not compatible with RaGen. The basic pre loaded code is not sufficient for my needs. How can I get the coding I need with out learning how to write code line for line?

2. I learned that RaGen is not compatible only after deleting the preloaded code for the blink code. The only version of the preload I can find causes an error "phillips6610lcdinv" does not name a type. There are about 60 similar errors through out the code, is there a newer version somewhere? If so where?

Thank you for your help.

Re: RaGen and Mac

Posted: Thu Feb 09, 2012 10:14 am
by binder
My github account has some default sketches that you can use as examples. Check out RAMenus.pde for a "standard" code base. The only difference with it (that I haven't changed yet) is that Wavemakers should be on Ports 5 & 6 instead of Ports 4 & 5.

https://github.com/curtbinder/SketchBook

Also, these sketches are compatible with my development libraries and not with the standard libraries. If you need the standard libraries, we can post a standard code for you.

Re: RaGen and Mac

Posted: Thu Feb 09, 2012 10:47 am
by wagner7123
tried ramenus.pde error says "Reef Angel was not declared in this scope"

Re: RaGen and Mac

Posted: Thu Feb 09, 2012 11:07 am
by wagner7123
This is what I am looking for:

Controller 1
Outlet
1 Light timed on/off
2 Light timed on/off
3 Light timed on/off
4 Light timed on/off
5 Skimmer Pump off for feeding and water change
6 Ato Pump (controlled by float switches)
7 Ato Heater
8 Tank heater off for feeding and water change

Controller 2
Outlet
1 Wavemaker Pump
2 Wavemaker Pump
3 Wavemaker Pump
4 Wavemaker Pump
5 Return pump off for feeding and water change
6 Media reactor pump off for feeding and water change
7 Sump Light Timed on/off
8 Generic off for feeding and water change

PWM
Moonlight module control moon phase cycle (or just timed on/off if not dimmable)
Temp Sensor controls tank heater
2x float switches 1 high limit 1 low limit
PH sensor

Re: RaGen and Mac

Posted: Thu Feb 09, 2012 12:02 pm
by binder
See if you can run the Update utility to update your libraries to the latest development libraries:
http://forum.reefangel.com/viewtopic.php?f=8&t=2

If you cannot run the utility, you will want to download the latest libraries:
https://github.com/curtbinder/ReefAngel ... /v0.8.5.19

and unzip them into this folder:

Code: Select all

~/Documents/Arduino/libraries
make sure you replace any of the folders and files if it prompts you to.
You may also need this file as well: https://github.com/downloads/curtbinder ... raries.zip
Unzip and place in the same directory mentioned above.

Once you have the libraries installed, try compiling RAMenus.pde again. That should at least compile to confirm it's working.

One other thing that I forgot to mention, there is another sketch called SetInternalMemory.pde. That file also needs to be loaded before you load RAMenus.pde. The reason is that it will initialize the internal memory values before use. Otherwise you will get undesired results (ports turning on/off rapidly, etc).

So, let's start there first and work up from there.

Re: RaGen and Mac

Posted: Thu Feb 09, 2012 12:54 pm
by wagner7123
I have installed both libraries, and then tried to compile the ramenus.pde again, new error says error compiling. Then I tried to add the setInternalMemory.pde that one brought back the original error "phillips6610lcdinv"

so far the only thing I have ever been able to upload is the blink program, which works like a champ

Re: RaGen and Mac

Posted: Thu Feb 09, 2012 8:07 pm
by binder
here's the phillips library:
https://github.com/downloads/curtbinder ... LCDInv.zip

add it to the libraries folder and then setinternalmemory should compile for you