Walk Through to get you started with RAGen

New members questions
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Walk Through to get you started with RAGen

Post by rimai »

What is it saying that can't find port?
Can you copy and paste or screenshot of the error?
Roberto.
woods4542000
Posts: 10
Joined: Sat Jan 28, 2012 5:11 pm

Re: Walk Through to get you started with RAGen

Post by woods4542000 »

ragen says problem communicating with board,then I went to generator find controller it then tests com ports, then lists available com portsit says com13-none com3-none. Thanks for the quick reply.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Walk Through to get you started with RAGen

Post by rimai »

Don't worry about that.
Just open Arduino and upload your code.
Roberto.
woods4542000
Posts: 10
Joined: Sat Jan 28, 2012 5:11 pm

Re: Walk Through to get you started with RAGen

Post by woods4542000 »

arduino says problem uploading to board.
woods4542000
Posts: 10
Joined: Sat Jan 28, 2012 5:11 pm

Re: Walk Through to get you started with RAGen

Post by woods4542000 »

theres white and red code underneath won't let me copy
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Walk Through to get you started with RAGen

Post by rimai »

Make sure you have "Reef Angel Controller w/ optiboot" selected under menu Tools->Board
Roberto.
TanksNStuff
Posts: 188
Joined: Fri Dec 30, 2011 6:57 am

Re: Walk Through to get you started with RAGen

Post by TanksNStuff »

First timer here, just starting to get my RA setup.

I installed RA Installer, then installed RA Gen. Was following the instructions in this thread and was able to get up to the part where I uploaded the internal memory to my controller (no error messages in Arduino). I saw the setting data on the controllers LCD so I know that worked fine.

After that was complete, I closed Arduino, then tried to open RA Gen again for the next step (generating my first code). However, a Windows error popped up saying:
ReefAngel Generator Application has stopped working.
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
I've closed and tried to open RAGen several times and keep getting same error. What should I do now?

I'm using Vista Ultimate 64bit if that matters any. Also, I uninstalled Arduino and reinstalled it several times and it kept increasing my com port # each time. It's now set at COM 9. (COM 3 - 8 are shown as "in use" in Device Manager, but they aren't assigned to anything that I can tell.)

Any help would be appreciated. This prog looked like it was going to make life easy for me. :cry:

***EDIT***
I rebooted my PC, then tried RA Gen again - Same message. I then stumbled onto This thread and updated my libraries... then RAGen worked for me again. I think it's fixed for now... will report back if I have issues again.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Walk Through to get you started with RAGen

Post by rimai »

I think you still may have problems. Please follow the instructions in this post:
http://forum.reefangel.com/viewtopic.php?p=5291#p5291
Roberto.
TanksNStuff
Posts: 188
Joined: Fri Dec 30, 2011 6:57 am

Re: Walk Through to get you started with RAGen

Post by TanksNStuff »

Yea, when I thought I had those two progs working right, I installed the RA Client Suite. After installing the RA Client Suite I had issues with that getting my internal memory from the controller. The Client also showed "Dev Lib Version xx.xx.xx.xx" (or some combination of x's). I figured at that point that there is an issue with the Dev. Libraries still... or maybe something else going on.

I haven't been able to upload any pde files to my controller through these GUI programs. I was only able to do it directly from the Arduino program.

Another issue I seem to be having is that my COM port keeps increasing with every reinstall of the RA installer. I'm up to COM9 and Device Manager shows COMs 3-8 as "in use" even though nothing is using them as far as I can tell. I found some info online showing how to release those, so I'll try that before I proceed again tonight.

After that, I'll try the instructions in that link tonight and let you know if I'm all good.
Seedlessone
Posts: 135
Joined: Tue Jan 24, 2012 6:20 pm

Re: Walk Through to get you started with RAGen

Post by Seedlessone »

Why are you re installing ra installer? Is it because you are getting errors while opening ragen? And are you using the library updater program?
TanksNStuff
Posts: 188
Joined: Fri Dec 30, 2011 6:57 am

Re: Walk Through to get you started with RAGen

Post by TanksNStuff »

Yes, I was getting errors when trying to open RAGen. I kept uninstalling / reinstalling thinking that there was an install problem. I always ran the install "as administrator" too (Vista Ultimate 64bit).

I kept trying to wipe my comp clean from all Arduino / RA software... then start fresh with installing the Arduino installer, which as I said kept increasing the COM port #.

I was able to open RAGen after running the library updater. But then I had issues with the Client Suite not working right.

Could part of the issue also be that I still reverted back to the Demo code after doing the tutorials? Not sure if that mixed with installing Dev Libs is throwing a wrench into everything.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Walk Through to get you started with RAGen

Post by rimai »

Yeah, the Client will only work with code that was generated by RAGen and also you have to make sure to checkmark wifi on the features tab.
The Demo code is not going to work with anything :( It's just too outdated.
The reason RAGen crashes is the wrong paths and fixing is is explained in the post I previously posted.
Roberto.
TanksNStuff
Posts: 188
Joined: Fri Dec 30, 2011 6:57 am

Re: Walk Through to get you started with RAGen

Post by TanksNStuff »

I figured that might be part of it. I'm slowly picking all this up through trial and error. Unfortunately, there seems to be more error than trial. :lol:

Seriously though, I'm seeing what this controller is capable of and I'm getting more confidence with it as I go.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Walk Through to get you started with RAGen

Post by binder »

The path error will be fixed with the next release. Just have lots of other "cool" things to add to it to make it function better than ever. :)
TanksNStuff
Posts: 188
Joined: Fri Dec 30, 2011 6:57 am

Re: Walk Through to get you started with RAGen

Post by TanksNStuff »

Sounds good Curt. Will that be out in the next day or two or slightly longer? If so, I may just wait for the new release, if not, I'll do the fix that Seedlessone posted.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Walk Through to get you started with RAGen

Post by binder »

Longer than a day or two. The release should coincide with the next major library release which isn't quite ready to go yet. Lots of big stuff that Roberto has been working on plus a few additions by myself.
I'd suggest using the fix. It will get you going without any delay.
TanksNStuff
Posts: 188
Joined: Fri Dec 30, 2011 6:57 am

Re: Walk Through to get you started with RAGen

Post by TanksNStuff »

Roger that. Is there a post somewhere showing what new goodies are planned for this next big release?
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Walk Through to get you started with RAGen

Post by binder »

TanksNStuff wrote:Roger that. Is there a post somewhere showing what new goodies are planned for this next big release?
No. But, I can give you a little preview....
  • Inclusion of ALL (yes, I said ALL) currently available features, in a check-able list
  • Ability to Save only the features file to update it if necessary
  • Compatibility with Arduino 1.0 (handled with a new library release, 0.9.0)
  • Change of PDE tab to be Main Relay
  • Folder locations are preset and fixed (for arduino, sketch and library folders)
  • Moved Wavemakers to default on Ports 5 & 6 respectively, as the relay box is designed for this
  • Development libraries mode is the default. Standard libraries still exist but are discouraged.
  • A "Show Installed Libraries" box to display what the library version is that RAGen finds and is using.
New features tab
New features tab
features.png (23.64 KiB) Viewed 12631 times
Ignore the PDE / INO tab, that now says Main Relay

That's what I've got so far. There might be the ability to set the number of expansion relays for the controller but no customizing the relay boxes yet. There might also be the ability to edit and create a custom menu inside the application. I've also got some other ideas too, but I don't know if they will be included or not....just depends on how much time I have available.
TanksNStuff
Posts: 188
Joined: Fri Dec 30, 2011 6:57 am

Re: Walk Through to get you started with RAGen

Post by TanksNStuff »

Wow! That is a big update/improvement list.

Did the Arduino 1.0 release delay the RAGen release? Or was some of the new features added as a result of Arduino 1.0?

If you could add the customization of the expansion relay boxes to this, there wouldn't be much more I would ask for! Big thumbs up Curt.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Walk Through to get you started with RAGen

Post by binder »

TanksNStuff wrote:Wow! That is a big update/improvement list.

Did the Arduino 1.0 release delay the RAGen release? Or was some of the new features added as a result of Arduino 1.0?

If you could add the customization of the expansion relay boxes to this, there wouldn't be much more I would ask for! Big thumbs up Curt.
The Arduino release made for some significant changes to the libraries. With that being said, we made other big changes at the same time since it just maid sense. With the big change to the libraries, RAGen needed updating.
Also, I had been working on some concepts of an improvement to RAGen for over 6 months. This just forced me to make the changes.

Customization to the expansion relay boxes are definitely desirable and planned but more testing is needed to make sure that my ideas will work properly. Baby steps. :)
frostyballz
Posts: 4
Joined: Thu Mar 01, 2012 11:48 am

Re: Walk Through to get you started with RAGen

Post by frostyballz »

so just recieved my RA today and was wondering, using the new ragen how do i adjust the times and settings for each port? or do i have to code that
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Walk Through to get you started with RAGen

Post by rimai »

You can either generate an internal memory file on RAGen or change it with the Client or the smart phone phone apps.
On RAGen, go to Controller->Internal Memory
Roberto.
frostyballz
Posts: 4
Joined: Thu Mar 01, 2012 11:48 am

Re: Walk Through to get you started with RAGen

Post by frostyballz »

dont have the WIFI module, so the smartphone app is out (unless i can use without WIFI) but the internal memory portion was what i needed, thanks
grafspee1217
Posts: 84
Joined: Sun Mar 11, 2012 10:38 am

Re: Walk Through to get you started with RAGen

Post by grafspee1217 »

I connected my new Reef Angel today. I downloaded the library update tool and it downloaded the latest development libraries. I generated the internal memory code and when I tried to upload it I get a compiling error.
This is what I get:
// Autogenerated file by RAGen (v1.2.1.158), (03/23/2012 20:25)
// Memory_032312_2025.ino
//
// This file sets the default values to the Internal Memory
//


#include <ReefAngel_Features.h>
#include <Globals.h>
#include <Time.h>
#include <OneWire.h>
#include <RA_NokiaLCD.h>
#include <avr/pgmspace.h>
#include <InternalEEPROM.h>
#include <Wire.h>
#include <Memory.h>


RA_NokiaLCD e;

void setup()
{
    e.Init();
    e.Clear(COLOR_WHITE,0,0,132,132);
    e.BacklightOn();

    InternalMemory.MHOnHour_write(8);
    InternalMemory.MHOnMinute_write(0);
    InternalMemory.MHOffHour_write(15);
    InternalMemory.MHOffMinute_write(0);
    InternalMemory.MHDelay_write(5);
    InternalMemory.StdLightsOnHour_write(8);
    InternalMemory.StdLightsOnMinute_write(0);
    InternalMemory.StdLightsOffHour_write(15);
    InternalMemory.StdLightsOffMinute_write(0);
    InternalMemory.DP1OnHour_write(20);
    InternalMemory.DP1OnMinute_write(0);
    InternalMemory.DP2OnHour_write(22);
    InternalMemory.DP2OnMinute_write(30);
    InternalMemory.DP1Timer_write(10);
    InternalMemory.DP2Timer_write(10);
    InternalMemory.DP1RepeatInterval_write(60);
    InternalMemory.DP2RepeatInterval_write(60);
    InternalMemory.ATOTimeout_write(60);
    InternalMemory.ATOHighTimeout_write(60);
    InternalMemory.ATOHourInterval_write(0);
    InternalMemory.ATOHighHourInterval_write(0);
    InternalMemory.FeedingTimer_write(900);
    InternalMemory.LCDTimer_write(600);
    InternalMemory.LEDPWMActinic_write(49);
    InternalMemory.LEDPWMDaylight_write(50);
    InternalMemory.WM1Timer_write(200);
    InternalMemory.WM2Timer_write(354);
    InternalMemory.HeaterTempOn_write(780);
    InternalMemory.HeaterTempOff_write(791);
    InternalMemory.ChillerTempOn_write(810);
    InternalMemory.ChillerTempOff_write(785);
    InternalMemory.OverheatTemp_write(850);
    InternalMemory.PHMax_write(840);
    InternalMemory.PHMin_write(550);
    InternalMemory.SalMax_write(2550);
    InternalMemory.RFMode_write(Constant);
    InternalMemory.RFSpeed_write(140);
    InternalMemory.RFDuration_write(8);
    InternalMemory.RFDuration_write(8);
    InternalMemory.PWMSlopeStartD_write(15);
    InternalMemory.PWMSlopeEndD_write(128);
    InternalMemory.PWMSlopeDurationD_write(60);
    InternalMemory.PWMSlopeStartA_write(15);
    InternalMemory.PWMSlopeEndA_write(128);
    InternalMemory.PWMSlopeDurationA_write(60);
    InternalMemory.IMCheck_write(0x5241494D);
}

void loop()
{
    // display success screen
    e.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*2, "Internal Memory Set");
    e.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*4, "Now load your");
    e.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*5, " RA code file");
    delay(5000);
}


The error I get is:
C:\Users\Adrian\Documents\Arduino\libraries\RA_NokiaLCD\RA_NokiaLCD.cpp: In member function 'void RA_NokiaLCD::DrawEEPromImage(int, int, byte, byte, int, int)':
C:\Users\Adrian\Documents\Arduino\libraries\RA_NokiaLCD\RA_NokiaLCD.cpp:1158: error: 'class TwoWire' has no member named 'write'
C:\Users\Adrian\Documents\Arduino\libraries\RA_NokiaLCD\RA_NokiaLCD.cpp:1159: error: 'class TwoWire' has no member named 'write'
C:\Users\Adrian\Documents\Arduino\libraries\RA_NokiaLCD\RA_NokiaLCD.cpp:1165: error: 'class TwoWire' has no member named 'read'
grafspee1217
Posts: 84
Joined: Sun Mar 11, 2012 10:38 am

Re: Walk Through to get you started with RAGen

Post by grafspee1217 »

Let me explain what I think I am supposed to do in case I am doing something wrong. I have an LED light that I will use to simulate a sunrise/sunset. I think I read somewhere that the preloaded code wont support this. I also have the wifi unit as well. My understanding is that I am supposed to generate the internal memory code first and upload that to the controller. The next step would be to add the wifi?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Walk Through to get you started with RAGen

Post by rimai »

Sorry, I have to update this thread with new videos and new links :(
The new installer should come with the updated libraries and also the new Arduino.
The one you downloaded from the original post is outdated.
Thank you for bringing that up.
I'll fix it today.
But, to resolve your issue, uninstall everything you have installed and use the latest installer in the download page: http://www.reefangel.com/Download.ashx
I'm sorry for the trouble.
Roberto.
grafspee1217
Posts: 84
Joined: Sun Mar 11, 2012 10:38 am

Re: Walk Through to get you started with RAGen

Post by grafspee1217 »

I deleted everything on my computer and downloaded the latest installer. I generated a new ino file and tried uploading the internal memory again with the same result.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Walk Through to get you started with RAGen

Post by rimai »

What is the version of Arduino that was used when you got the error?
Roberto.
grafspee1217
Posts: 84
Joined: Sun Mar 11, 2012 10:38 am

Re: Walk Through to get you started with RAGen

Post by grafspee1217 »

It's version 1.0
grafspee1217
Posts: 84
Joined: Sun Mar 11, 2012 10:38 am

Re: Walk Through to get you started with RAGen

Post by grafspee1217 »

I tried searching to see if I am using the correct version of Arduino. There were numerous older posts concerning incompatibility with 1.0 and the development libraries. These posts were from 2011 however so I suspect this is a non issue since the version I am using was downloaded with the latest installer.
Post Reply