Page 1 of 1

Xender

Posted: Thu May 11, 2017 5:52 am
by Xender
Hello,

working on my ReefAngel RA Star prototype only me and Lee have (no touch screen) :

Can you help me plz?

I have Dimming module(not wired), and RANet relais (I don't have the basic relais).
Dimming module is for Meanwell Drivers eln60-48p pwm 0-10V

In the wizard what do I have to select? Can I do it for my model on the wizard? Or sould I use http://forum.reefangel.com/webwizard better?

For now I have selected :
ReefAngel Plus
Dimming PWN
Rope Leak Detector
RANet Add-On

I Would like :
Standard Light On port 1 and 2 from 8:00 AM to 11:00 PM
CO2 on port 3
Auto Top Off Port 4
Leak detect --> make OFF port 4
Heater Port 5
Always ON : Port 6 -> 8
Dimming parabola on Dimming module all channels from 8:00 AM to 11:00 PM
Radom Cloud mode on Dimming module when activated
Over Heat 29°C --> OFF Port 5
Buzzer --> Leak detected and ATO time out
Temperature : Celcius

Email notifications :
when over heat
when leak detected
when Auto Top Off ON and when stop

View on U-app + Portal

Thanks for your help !

Re: Xender

Posted: Thu May 11, 2017 6:34 am
by Xender
Generated by the webwizard

Code: Select all

#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.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 <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.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.Star();
    ReefAngel.AddRANet();  // RANet Add-On Module
    ReefAngel.SetTemperatureUnit( Celsius );  // set to Celsius Temperature
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = 0;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port5Bit;
    // Ports turned off when Leak is detected
    ReefAngel.LeakShutoffPorts = Port4Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = Port1Bit | Port2Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 290 );

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

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


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

void loop()
{
    ReefAngel.StandardLights( Port1,8,0,23,0 );
    ReefAngel.StandardLights( Port2,8,0,23,0 );
    ReefAngel.CO2Control( Port3,720,710 );
    ReefAngel.StandardATO( Port4,60 );
    ReefAngel.StandardHeater( T1_PROBE,Port5,750,770 );
    ReefAngel.PWM.SetChannel( 0,PWMParabola( 9,0,23,0,15,100,0 ) );
    ReefAngel.PWM.SetChannel( 1,PWMParabola( 9,0,23,0,15,100,0 ) );
    ReefAngel.PWM.SetChannel( 2,PWMParabola( 9,0,23,0,15,100,0 ) );
    ReefAngel.PWM.SetChannel( 3,PWMParabola( 9,0,23,0,15,100,0 ) );
    ReefAngel.PWM.SetChannel( 4,PWMParabola( 9,0,23,0,15,100,0 ) );

    boolean buzzer=false;
    if ( ReefAngel.isATOTimeOut() ) buzzer=true;
    if ( buzzer ) ReefAngel.BuzzerOn(2); else ReefAngel.BuzzerOff();

    ////// Place your custom code below here


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

    ReefAngel.Network.Cloud();
    // This should always be the last line
    ReefAngel.ShowTouchInterface();
}



// RA_STRING1=**********************
// RA_STRING2=null
// RA_STRING3=null


Re: Xender

Posted: Thu May 11, 2017 9:37 am
by rimai
I would start with just the very basic and see if you can get Uapp to connect, because you don't have a screen to see what is going on.

Re: Xender

Posted: Thu May 11, 2017 11:06 am
by Xender
Hi !
thx for your help
I tried this code
RA_STRING1 is made by the web wizard, is it normal that each time it change with the same password?
Uapp is not working
Name : my name
IP : empty
port : empty
Username : Xender
Password : my password not encrypted

Can I try with local IP too?

Code: Select all

#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.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 <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.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.Star();
    ReefAngel.AddRANet();  // RANet Add-On Module
    ReefAngel.SetTemperatureUnit( Celsius );  // set to Celsius Temperature
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = 0;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port5Bit;
    // Ports turned off when Leak is detected
    ReefAngel.LeakShutoffPorts = Port4Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = Port1Bit | Port2Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 290 );

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

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


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

void loop()
{
    ReefAngel.StandardLights( Port1,8,0,23,0 );
    ReefAngel.StandardLights( Port2,8,0,23,0 );
    ReefAngel.CO2Control( Port3,720,710 );
    ReefAngel.StandardATO( Port4,60 );
    ReefAngel.StandardHeater( T1_PROBE,Port5,750,770 );
    ReefAngel.PWM.SetChannel( 0,PWMParabola( 9,0,23,0,15,100,0 ) );
    ReefAngel.PWM.SetChannel( 1,PWMParabola( 9,0,23,0,15,100,0 ) );
    ReefAngel.PWM.SetChannel( 2,PWMParabola( 9,0,23,0,15,100,0 ) );
    ReefAngel.PWM.SetChannel( 3,PWMParabola( 9,0,23,0,15,100,0 ) );
    ReefAngel.PWM.SetChannel( 4,PWMParabola( 9,0,23,0,15,100,0 ) );

    boolean buzzer=false;
    if ( ReefAngel.isATOTimeOut() ) buzzer=true;
    if ( buzzer ) ReefAngel.BuzzerOn(2); else ReefAngel.BuzzerOff();

    ////// Place your custom code below here


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

    ReefAngel.Network.Cloud();
    // This should always be the last line
    ReefAngel.ShowTouchInterface();
}



// RA_STRING1=$$$$$$$$
// RA_STRING2=null
// RA_STRING3=null


Re: Xender

Posted: Thu May 11, 2017 11:16 am
by rimai
Open Arduino IDE and use serial monitor to check the log.
What does it say?

Re: Xender

Posted: Thu May 11, 2017 11:24 am
by Xender
Ardruino won't start on mac. It's says that the file is corrupt even if trying with ctrl open

Re: Xender

Posted: Thu May 11, 2017 11:35 am
by rimai
Use coolterm instead then.
Open serial port at 57600 baud

Re: Xender

Posted: Thu May 11, 2017 12:11 pm
by Xender
Made working again ardruino :
Serial :

Code: Select all

RA Init
SPI Init
LCD Init
Network Init
Unknown Touch controller
Touch Init
SD Found: 0
192.168.1.39
MQTT Connecting...
MQTT failed
MQTT Connecting...
MQTT failed

Code: Select all

#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.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 <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.h>

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


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


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

    //ReefAngel.AddStandardMenu();  // Add Standard Menu

    //ReefAngel.Use2014Screen();  // Let's use 2014 Screen 
    ReefAngel.AddPHExpansion();  // pH Expansion Module
    // 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 = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = 0;
    // Ports turned off when Leak is detected
    ReefAngel.LeakShutoffPorts = 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( 300 );


    // Ports that are always on

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

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

void loop()
{
    ////// Place your custom code below here
    
    ReefAngel.Network.Cloud();
    ////// Place your custom code above here

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

// RA_STRING1=$$$$$$$
// RA_STRING2=null
// RA_STRING3=null

Re: Xender

Posted: Thu May 11, 2017 12:23 pm
by Xender
Don't know if there is a difference but I tryed the same PDE with WebWizard

Serie :

Code: Select all

RA Init
SPI Init
LCD Init
Network Init
Unknown Touch controller
Touch Init
SD Found: 0
192.168.1.38
MQTT Connecting...
MQTT failed
MQTT Connecting...
MQTT succeeded

Code: Select all

#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.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 <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.h>

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


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


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

    //ReefAngel.AddStandardMenu();  // Add Standard Menu

    //ReefAngel.Use2014Screen();  // Let's use 2014 Screen 
    ReefAngel.AddPHExpansion();  // pH Expansion Module
    // 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 = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = 0;
    // Ports turned off when Leak is detected
    ReefAngel.LeakShutoffPorts = 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( 300 );


    // Ports that are always on

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

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

void loop()
{
    ////// Place your custom code below here
    
    ReefAngel.Network.Cloud();
    ////// Place your custom code above here

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

// RA_STRING1=$$$$$
// RA_STRING2=null
// RA_STRING3=null

Re: Xender

Posted: Thu May 11, 2017 4:11 pm
by rimai
The second one shows it connected to the cloud server