no internal memory

Basic / Standard Reef Angel hardware
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

no internal memory

Post by hawaiiensis38 »

hello
someone can help me?
i got the RA that show no internal memory
i upload the file correcly the file but, still the same error.
i read some topic about this error and found this one
the seems to be the same thing like mine, the log too
- http://forum.reefangel.com/viewtopic.ph ... und#p36316
i read this one but i don't understand how i can used the file
- http://forum.reefangel.com/viewtopic.php?f=15&t=4085
someone can tell me step by step how to do
merci
olivier
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

the libraries version is : 1.1.1
olivier
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: no internal memory

Post by rimai »

Add this right before ReefAngel.Init() to your code:

Code: Select all

    InternalMemory.IMCheck_write(0xCF06A31E);
Upload the code again.
Roberto.
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

hello rimai
How can i do this, just on the open window when i open the Ardino?
can i dot that without connecting the ph and temp prob on the RA?
thanks
olivier
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

Hello rimai

i make what you told me

but, it still the same No Internal memory Found
here the log:
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <AI.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <Salinity.h>
#include <PH.h>
#include <WaterLevel.h>
#include <ReefAngel.h>

void setup()
{
    ReefAngel.Init();
    InternalMemory.MHOnHour_write(15);
    InternalMemory.MHOnMinute_write(30);
    InternalMemory.MHOffHour_write(21);
    InternalMemory.MHOffMinute_write(0);
    InternalMemory.MHDelay_write(7);
    InternalMemory.StdLightsOnHour_write(14);
    InternalMemory.StdLightsOnMinute_write(0);
    InternalMemory.StdLightsOffHour_write(21);
    InternalMemory.StdLightsOffMinute_write(30);
    InternalMemory.DP1OnHour_write(20);
    InternalMemory.DP1OnMinute_write(0);
    InternalMemory.DP2OnHour_write(22);
    InternalMemory.DP2OnMinute_write(30);
    InternalMemory.DP1Timer_write(4);
    InternalMemory.DP2Timer_write(4);
    InternalMemory.DP1RepeatInterval_write(60);
    InternalMemory.DP2RepeatInterval_write(60);
    InternalMemory.ATOHourInterval_write(0);
    InternalMemory.FeedingTimer_write(900);
    InternalMemory.LCDTimer_write(600);
    InternalMemory.LEDPWMActinic_write(20);
    InternalMemory.LEDPWMDaylight_write(20);
    InternalMemory.WM1Timer_write(10);
    InternalMemory.WM2Timer_write(15);
    InternalMemory.HeaterTempOn_write(766);
    InternalMemory.HeaterTempOff_write(770);
    InternalMemory.ChillerTempOn_write(774);
    InternalMemory.ChillerTempOff_write(770);
    InternalMemory.OverheatTemp_write(1500);
    InternalMemory.PHMax_write(830);
    InternalMemory.PHMin_write(540);
    InternalMemory.SalMax_write(2550);
    InternalMemory.ORPMax_write(285);
    InternalMemory.ORPMin_write(1400);
    InternalMemory.RFMode_write(Constant);
    InternalMemory.RFSpeed_write(50);
    InternalMemory.RFDuration_write(8);
    InternalMemory.RFDuration_write(8);
    InternalMemory.PWMSlopeStartD_write(15);
    InternalMemory.PWMSlopeEndD_write(100);
    InternalMemory.PWMSlopeDurationD_write(60);
    InternalMemory.PWMSlopeStartA_write(15);
    InternalMemory.PWMSlopeEndA_write(100);
    InternalMemory.PWMSlopeDurationA_write(60);
    InternalMemory.PWMSlopeStart0_write(15);
    InternalMemory.PWMSlopeEnd0_write(100);
    InternalMemory.PWMSlopeDuration0_write(60);
    InternalMemory.PWMSlopeStart1_write(15);
    InternalMemory.PWMSlopeEnd1_write(100);
    InternalMemory.PWMSlopeDuration1_write(60);
    InternalMemory.PWMSlopeStart2_write(15);
    InternalMemory.PWMSlopeEnd2_write(100);
    InternalMemory.PWMSlopeDuration2_write(60);
    InternalMemory.PWMSlopeStart3_write(15);
    InternalMemory.PWMSlopeEnd3_write(100);
    InternalMemory.PWMSlopeDuration3_write(60);
    InternalMemory.PWMSlopeStart4_write(15);
    InternalMemory.PWMSlopeEnd4_write(100);
    InternalMemory.PWMSlopeDuration4_write(60);
    InternalMemory.PWMSlopeStart5_write(15);
    InternalMemory.PWMSlopeEnd5_write(100);
    InternalMemory.PWMSlopeDuration5_write(60);
    InternalMemory.ATOExtendedTimeout_write(120);
    InternalMemory.ORPMin_write(2050);
    InternalMemory.ORPMax_write(450);
    InternalMemory.ActinicOffset_write(30);
    InternalMemory.CO2ControlOn_write(770);
    InternalMemory.CO2ControlOff_write(760);
    InternalMemory.PHControlOn_write(800);
    InternalMemory.PHControlOff_write(810);
    InternalMemory.AISlopeStartW_write(0);
    InternalMemory.AISlopeEndW_write(100);
    InternalMemory.AISlopeDurationW_write(60);
    InternalMemory.AISlopeStartB_write(0);
    InternalMemory.AISlopeEndB_write(100);
    InternalMemory.AISlopeDurationB_write(60);
    InternalMemory.AISlopeStartRB_write(0);
    InternalMemory.AISlopeEndRB_write(100);
    InternalMemory.AISlopeDurationRB_write(60);
    InternalMemory.RadionSlopeStartW_write(0);
    InternalMemory.RadionSlopeEndW_write(100);
    InternalMemory.RadionSlopeDurationW_write(60);
    InternalMemory.RadionSlopeStartRB_write(0);
    InternalMemory.RadionSlopeEndRB_write(100);
    InternalMemory.RadionSlopeDurationRB_write(60);
    InternalMemory.RadionSlopeStartR_write(0);
    InternalMemory.RadionSlopeEndR_write(100);
    InternalMemory.RadionSlopeDurationR_write(60);
    InternalMemory.RadionSlopeStartG_write(0);
    InternalMemory.RadionSlopeEndG_write(100);
    InternalMemory.RadionSlopeDurationG_write(60);
    InternalMemory.RadionSlopeStartB_write(0);
    InternalMemory.RadionSlopeEndB_write(100);
    InternalMemory.RadionSlopeDurationB_write(60);
    InternalMemory.RadionSlopeStartI_write(0);
    InternalMemory.RadionSlopeEndI_write(100);
    InternalMemory.RadionSlopeDurationI_write(60);
    InternalMemory.DelayedStart_write(7);
    InternalMemory.PHExpMax_write(2500);
    InternalMemory.PHExpMin_write(500);
    InternalMemory.WaterLevelMax_write(3575);
    InternalMemory.WaterLevelMin_write(2875);
    InternalMemory.SalTempComp_write(750);
    InternalMemory.WaterLevelLow_write(60);
    InternalMemory.WaterLevelHigh_write(65);
    InternalMemory.DP3Timer_write(4);
    InternalMemory.DP3RepeatInterval_write(60);
    InternalMemory.DCPumpMode_write(0);
    InternalMemory.DCPumpSpeed_write(50);
    InternalMemory.DCPumpDuration_write(50);
    InternalMemory.WaterLevel1Max_write(1900);
    InternalMemory.WaterLevel1Min_write(590);
    InternalMemory.WaterLevel2Max_write(1900);
    InternalMemory.WaterLevel2Min_write(590);
    InternalMemory.WaterLevel3Max_write(1900);
    InternalMemory.WaterLevel3Min_write(590);
    InternalMemory.WaterLevel4Max_write(1900);
    InternalMemory.WaterLevel4Min_write(590);
    
    InternalMemory.IMCheck_write(0xCF06A31E);
    ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+20, MENU_START_ROW*3, "Memory Updated");
    ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+25, MENU_START_ROW*6, "You can now");
    ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+25, MENU_START_ROW*7, "upload your");
    ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+33, MENU_START_ROW*8, "INO code") ;
}

void loop()
{
  wdt_reset();
}
I don't now what to do now, except to throw away the RA
i have it since one year but never exploited them so, I'm disappointed
regards
olivier
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: no internal memory

Post by rimai »

No, not this code.
You should add it to the code you are going to use on your RA.
Just use the Wizard and when it choose to generate the code and then add that line to the code before you upload it to your RA.
Roberto.
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

hi Rimai
I'm not a specialist like you can you please send me an screen shot please how to do
my email address: olivier3821@free.fr
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

i know that is a piss of cat for you
but for me!!!
olivier
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: no internal memory

Post by rimai »

Did you follow the instructions on the manual to upload a code?
Are you able to upload any of the example codes?
Can you post the code you are trying to upload that is generating the error and what exactly the error is?
I'm not sure I'm understanding what you are getting.
Roberto.
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

Absolutely, i follow step by step
the RA was working well, showing everything but not the light parameters
now, that i have built my DIY Led light i want to used it with the RA
- Setup the computer with the latest version
- Loading the Initial Memory and the RA shows this error
" No Internal Memory Found"
Olivier
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: no internal memory

Post by rimai »

Add this right before ReefAngel.Init() to the code you posted above:

Code: Select all

    InternalMemory.IMCheck_write(0xCF06A31E);
Upload the code again.
Roberto.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: no internal memory

Post by rimai »

Or upload this newer version of the code:

Code: Select all

#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <AI.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <Salinity.h>
#include <PH.h>
#include <WaterLevel.h>
#include <ReefAngel.h>

void setup()
{
    InternalMemory.MHOnHour_write(15);
    InternalMemory.MHOnMinute_write(30);
    InternalMemory.MHOffHour_write(21);
    InternalMemory.MHOffMinute_write(0);
    InternalMemory.MHDelay_write(7);
    InternalMemory.StdLightsOnHour_write(14);
    InternalMemory.StdLightsOnMinute_write(0);
    InternalMemory.StdLightsOffHour_write(21);
    InternalMemory.StdLightsOffMinute_write(30);
    InternalMemory.DP1OnHour_write(20);
    InternalMemory.DP1OnMinute_write(0);
    InternalMemory.DP2OnHour_write(22);
    InternalMemory.DP2OnMinute_write(30);
    InternalMemory.DP1Timer_write(4);
    InternalMemory.DP2Timer_write(4);
    InternalMemory.DP1RepeatInterval_write(60);
    InternalMemory.DP2RepeatInterval_write(60);
    InternalMemory.ATOHourInterval_write(0);
    InternalMemory.FeedingTimer_write(900);
    InternalMemory.LCDTimer_write(600);
    InternalMemory.LEDPWMActinic_write(20);
    InternalMemory.LEDPWMDaylight_write(20);
    InternalMemory.WM1Timer_write(10);
    InternalMemory.WM2Timer_write(15);
    InternalMemory.HeaterTempOn_write(766);
    InternalMemory.HeaterTempOff_write(770);
    InternalMemory.ChillerTempOn_write(774);
    InternalMemory.ChillerTempOff_write(770);
    InternalMemory.OverheatTemp_write(1500);
    InternalMemory.PHMax_write(830);
    InternalMemory.PHMin_write(540);
    InternalMemory.SalMax_write(2550);
    InternalMemory.ORPMax_write(285);
    InternalMemory.ORPMin_write(1400);    
    InternalMemory.RFMode_write(Constant);
    InternalMemory.RFSpeed_write(50);
    InternalMemory.RFDuration_write(8);
    InternalMemory.RFDuration_write(8);
    InternalMemory.PWMSlopeStartD_write(15);
    InternalMemory.PWMSlopeEndD_write(100);
    InternalMemory.PWMSlopeDurationD_write(60);
    InternalMemory.PWMSlopeStartA_write(15);
    InternalMemory.PWMSlopeEndA_write(100);
    InternalMemory.PWMSlopeDurationA_write(60);
    InternalMemory.PWMSlopeStart0_write(15);
    InternalMemory.PWMSlopeEnd0_write(100);
    InternalMemory.PWMSlopeDuration0_write(60);
    InternalMemory.PWMSlopeStart1_write(15);
    InternalMemory.PWMSlopeEnd1_write(100);
    InternalMemory.PWMSlopeDuration1_write(60);
    InternalMemory.PWMSlopeStart2_write(15);
    InternalMemory.PWMSlopeEnd2_write(100);
    InternalMemory.PWMSlopeDuration2_write(60);
    InternalMemory.PWMSlopeStart3_write(15);
    InternalMemory.PWMSlopeEnd3_write(100);
    InternalMemory.PWMSlopeDuration3_write(60);
    InternalMemory.PWMSlopeStart4_write(15);
    InternalMemory.PWMSlopeEnd4_write(100);
    InternalMemory.PWMSlopeDuration4_write(60);
    InternalMemory.PWMSlopeStart5_write(15);
    InternalMemory.PWMSlopeEnd5_write(100);
    InternalMemory.PWMSlopeDuration5_write(60);
    InternalMemory.ATOExtendedTimeout_write(120);
    InternalMemory.ORPMin_write(2050);
    InternalMemory.ORPMax_write(450);
    InternalMemory.ActinicOffset_write(30);
    InternalMemory.CO2ControlOn_write(770);
    InternalMemory.CO2ControlOff_write(760);
    InternalMemory.PHControlOn_write(800);
    InternalMemory.PHControlOff_write(810);
    InternalMemory.AISlopeStartW_write(0);
    InternalMemory.AISlopeEndW_write(100);
    InternalMemory.AISlopeDurationW_write(60);
    InternalMemory.AISlopeStartB_write(0);
    InternalMemory.AISlopeEndB_write(100);
    InternalMemory.AISlopeDurationB_write(60);
    InternalMemory.AISlopeStartRB_write(0);
    InternalMemory.AISlopeEndRB_write(100);
    InternalMemory.AISlopeDurationRB_write(60);
    InternalMemory.RadionSlopeStartW_write(0);
    InternalMemory.RadionSlopeEndW_write(100);
    InternalMemory.RadionSlopeDurationW_write(60);
    InternalMemory.RadionSlopeStartRB_write(0);
    InternalMemory.RadionSlopeEndRB_write(100);
    InternalMemory.RadionSlopeDurationRB_write(60);
    InternalMemory.RadionSlopeStartR_write(0);
    InternalMemory.RadionSlopeEndR_write(100);
    InternalMemory.RadionSlopeDurationR_write(60);
    InternalMemory.RadionSlopeStartG_write(0);
    InternalMemory.RadionSlopeEndG_write(100);
    InternalMemory.RadionSlopeDurationG_write(60);
    InternalMemory.RadionSlopeStartB_write(0);
    InternalMemory.RadionSlopeEndB_write(100);
    InternalMemory.RadionSlopeDurationB_write(60);
    InternalMemory.RadionSlopeStartI_write(0);
    InternalMemory.RadionSlopeEndI_write(100);
    InternalMemory.RadionSlopeDurationI_write(60);
    InternalMemory.DelayedStart_write(7);
    InternalMemory.PHExpMax_write(2500);
    InternalMemory.PHExpMin_write(500);
    InternalMemory.WaterLevelMax_write(3575);
    InternalMemory.WaterLevelMin_write(2875);
    InternalMemory.SalTempComp_write(750);
    InternalMemory.WaterLevelLow_write(60);
    InternalMemory.WaterLevelHigh_write(65);
    InternalMemory.DP3Timer_write(4);
    InternalMemory.DP3RepeatInterval_write(60);
    InternalMemory.DCPumpMode_write(0);
    InternalMemory.DCPumpSpeed_write(50);
    InternalMemory.DCPumpDuration_write(50);
    InternalMemory.WaterLevel1Max_write(1900);
    InternalMemory.WaterLevel1Min_write(590);
    InternalMemory.WaterLevel2Max_write(1900);
    InternalMemory.WaterLevel2Min_write(590);
    InternalMemory.WaterLevel3Max_write(1900);
    InternalMemory.WaterLevel3Min_write(590);
    InternalMemory.WaterLevel4Max_write(1900);
    InternalMemory.WaterLevel4Min_write(590);

    InternalMemory.IMCheck_write(0xCF06A31E);
    ReefAngel.Init();
    ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+20, MENU_START_ROW*3, "Memory Updated");
    ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+25, MENU_START_ROW*6, "You can now");
    ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+25, MENU_START_ROW*7, "upload your");
    ReefAngel.LCD.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL+33, MENU_START_ROW*8, "INO code") ;
}

void loop()
{
  wdt_reset();
}
Roberto.
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

hello rimai
thanks for the reply
but, like i told you since the beginning how to add this code to the RA
you hav emy email please send me some screen shot how to do
je suis charlie
merci
olivier
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

and can i do hat without connecting the ph and temp sensor?
olivier
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

No help???
i will try myself to find how to do
i will never return to this forum
hawaii
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: no internal memory

Post by lnevo »

Have you read the manual? Have you uploaded code before? I'm not sure what difficulty you are having. You don't need anything connected to upload code but power and the serial cable.
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

Inievo
i make this step several times
here is what i do to upload the RA:
Setup your computer
Windows
1.Download the latest version of the Reef Angel Installer
at http://www.reefangel.com/download.aspx
2.Follow the step by step instructions of the installer.
3.It will take care of installing all the necessary drivers and software.
For more detailed information, please watch the installation videos here:
http://forum.reefangel.com/viewtopic.php?f=15&t=60

2)Loading your Initial Memory Settings The Reef Angel Controller stores several setting in a non
- volatile type of memory, which means you can rest
assured that your settings will remain intact and won’t be lost in the case of power interruption or
reboot of the controller.
A newly acquired Reef Angel will not have any settings stored in the memory and you need to set them up before
you can start using any custom code.
1.Make sure the Reef Angel Controller is powered up.
2. Connect the USB
- TTL converter cable to your PC.
3. Connect the USB
- TTL converter cable to your Reef Angel Controller.
Note: Make sure you connect the cable as the picture below.
The black wire must be the right
- most position and the 2 left
- most pins must be unconnected. Failure to do so can lead to damage to your Reef Angel Controller head unit and/or cable.
4. Open the Arduino Environment software.
5. Depending on which controller you purchased, make sure you have “Reef Angel Controller w/optiboot”
or “Reef Angel Plus Controller” selected under the menu “Tools
- > Board”.
6. Go to menu “File
- >Sketchbook
- >Example Codes” and select “InitialInternalMemory”
7. Click the button “Upload” or go to menu “File” and select “Upload”
8. The controller will start blinking the status LED and will show your initial settings on the screen when it
has completed the upload process.

After this i have the message on the RA "No Internal memory Found"
before my RA was showing all the menu except the light menu
Merci for your help
regards
olivier
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

hello

i found the error, it was not necessary to connect the the ph & temp probe for this.
with the new version code that rimai give tome it works.

i loading my first code and restore back the preloaded code to the RA.

But, why on the main menu i have:
1. Feeding
2. Water Change
3. Ato Clear
4. overheat clear
5. Ph Calibration
6. Version
7. Exit
i don't have the "Light; Timeouts; Setup" option?
"Temp" because, the probe are not connected?

all the number 1 to 8 are in red

the date: 01/01/00
the time is correct

Thank you for all you support, i will play with and found how to used it properly

regards

Olivier
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

I configure the RA with or without the dimming expansion and wifi attachment
but, he cannot generate and upload the code
i have a message "an error was occurred please try again"

i can only generate

but, i can see all the menu that i have created and the light option too

tomorrow i will attach and connect everything that i need on the RA and use it basically

hawaii
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

hello
what i can do for have the right code for use the RA
to incriminate the date
i use the driver Mean Well ELN-60-48P can i start the % level dimming level at 10%instead 15ùat the controller show
hawaii
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: no internal memory

Post by rimai »

Use the wizard to create the code. It's easier to set the controller and settings with it.
Roberto.
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

i do that but the message are:"an error was occurred please try again"
i can only "generate" but not "upload and generate"
hawaii
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: no internal memory

Post by lnevo »

So generate and then save the file. Then try again to upload. This way you can see what the upload error is.
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

Inievo
i try to do what you propose
same thing, i Upload the code
here is what i found
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <DCPump.h>
#include <PAR.h>
#include <ReefAngel.h>

////// Place global variable code below here


////// Place global variable code above here


void setup()
{
    // This must be the first line
    ReefAngel.Init(); //Initialize controller
    ReefAngel.SetTemperatureUnit( Celsius ); // set to Celsius Temperature

    ReefAngel.AddStandardMenu(); // Add Standard Menu

    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = 0;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = 0;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = Port7Bit | Port8Bit;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = 0;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 280 );


    // Ports that are always on
    ReefAngel.Relay.On( Port5 );
    ReefAngel.Relay.On( Port7 );
    ReefAngel.Relay.On( Port8 );

    ////// Place additional initialization code below here
    

    ////// Place additional initialization code above here
}

void loop()
{
    ReefAngel.StandardHeater( Port1,245,260 );
    ReefAngel.DosingPumpRepeat( Port2,0,60,60 );
    ReefAngel.CO2Control( Port3,701,699 );
    ReefAngel.StandardATO( Port4,300 );
    ReefAngel.StandardLights( Port6,11,0,23,0 );
    ReefAngel.PWM.SetDaylight( PWMParabola(11,0,22,0,15,100,15) );
    ReefAngel.PWM.SetActinic( PWMParabola(10,0,23,0,15,100,15) );
    ////// Place your custom code below here
    

    ////// Place your custom code above here

    // This should always be the last line
    ReefAngel.ShowInterface();
}


On the RA main menu or setup :LED PMW
Setup LED what means "AP" and "DP"
i have the value 20% on each

hawaii
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

I forget i don't have the possibilities to change the time and date
hawaii
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: no internal memory

Post by lnevo »

Put this in the setup custom code section

ReefAngel.AddDateTimeMenu();

AP = Actinic Port
DP = Daylight Port
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: no internal memory

Post by rimai »

We need to know what the error that you are getting and not your code.
I have a feeling that you have a standard RA that has very limited memory space and you are going above the memory capacity.
What RA do you have?
Roberto.
hawaiiensis38
Posts: 36
Joined: Sat Feb 22, 2014 7:16 am

Re: no internal memory

Post by hawaiiensis38 »

i do what you tell me but, not working

i put the code here tell me if it's correct:
    ////// Place your custom code below here
    ReefAngel.AddDateTimeMenu();

    ////// Place your custom code above here

    // This should always be the last line
    ReefAngel.ShowInterface();
then upload nothing

on the wizard screen on the little windows down i have this in frenchi cannot copy:
binary size of the sketch: 34 162 octets (max 32256)
processing.app.debug.RunnerException: Sketch to big
http://www.ardino.cc/en/guide/Troubleshooting#size for help
at processing.app.Sketch.size (Sketch.java:1844)
at processing.app.Sketch.build (Sketch.java.1775)
at processing.app.Sketch.exportApplet (Sketch.jav.1797)
at processing.app.Sketch.exportApplet (Sketch.java.1783)
at processing.app.Editor$DefaultExportHandler.run Editor.java:2357)
at java.lang.Thread.run(Thread.java:619)

=> The RA is a standard and old one about 3 years now

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

Re: no internal memory

Post by rimai »

There is your problem.
You don't have enough space upload this code.
Your RA has a very limited memory size and you are trying to do too much with it.
I recommend you upgrading to the RA+ and you won't have any problems with memory size.
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: no internal memory

Post by lnevo »

Your other options to download an older version (1.0.9) of the libraries and try with that.
Post Reply