installed my wifi/lost daylight pwm

Expansion modules and attachments
Post Reply
pandimus
Posts: 213
Joined: Mon Apr 01, 2013 7:58 pm

installed my wifi/lost daylight pwm

Post by pandimus »

ok, so i installed my wifi module the other day, and the daylight pwm just stopped working. It shows it working on the angel, but i get no voltage on the leads. I also updated the librarys at the same time. Any idea where to start troubleshooting?

#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 <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
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port5Bit | Port6Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port2Bit | Port4Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 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( 830 );


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

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


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

void loop()
{
ReefAngel.StandardHeater( Port1,750,790 );
ReefAngel.StandardLights( Port2,9,0,21,0 );
ReefAngel.StandardFan( Port3,771,800 );
ReefAngel.StandardLights( Port4,8,0,18,0 );
ReefAngel.MHLights( Port6,7,0,21,0,10 );
ReefAngel.DosingPumpRepeat( Port7,0,240,10 );
ReefAngel.DosingPumpRepeat( Port8,0,240,10 );
ReefAngel.PWM.SetDaylight( PWMSlope(9,0,17,0,0,60,60,0) );
ReefAngel.PWM.SetActinic( PWMSlope(8,0,18,0,0,100,60,0) );
////// Place your custom code below here


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

// This should always be the last line
ReefAngel.Portal( "pandimus" );
ReefAngel.ShowInterface();
}
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: installed my wifi/lost daylight pwm

Post by rimai »

I don't see anything wrong with the code.
Roberto.
enigma32
Posts: 74
Joined: Fri Apr 26, 2013 11:48 am
Location: Los Angeles and NYC

Re: installed my wifi/lost daylight pwm

Post by enigma32 »

I would try:
1) Without the WiFi attachment connected
2) (if #1 still fails) try the ControllerTester sketch.
3) (if #2 still fails) rebuild with the old libraries and verify that the problem was caused by upgrading.
Current setup:
60g 24" custom cube (fish and softies right now)
AI Sol Blue, Ecotech MP-10wES
Coralife skimmer
100% customer controller, transitioning to ReefAngel
pandimus
Posts: 213
Joined: Mon Apr 01, 2013 7:58 pm

Re: installed my wifi/lost daylight pwm

Post by pandimus »

enigma32 wrote:I would try:
1) Without the WiFi attachment connected
2) (if #1 still fails) try the ControllerTester sketch.
3) (if #2 still fails) rebuild with the old libraries and verify that the problem was caused by upgrading.
Where do I find controller test sketch? How do I down grade library? Also I noticed the lighting menu is gone from the controller.what caused that?
enigma32
Posts: 74
Joined: Fri Apr 26, 2013 11:48 am
Location: Los Angeles and NYC

Re: installed my wifi/lost daylight pwm

Post by enigma32 »

I believe the controller test sketch should be in File > Examples, but I'm not positive because I use a very not-normal configuration here.

It looks like there are a few things that could make the Lighting menu go away...
It might actually be worth running through the wizard to double check that everything is configured as you want in there.
Otherwise I'm sorry to say I'm not yet familiar enough with RA yet to be able to help you further :-(
Current setup:
60g 24" custom cube (fish and softies right now)
AI Sol Blue, Ecotech MP-10wES
Coralife skimmer
100% customer controller, transitioning to ReefAngel
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: installed my wifi/lost daylight pwm

Post by binder »

To get the standard menu back (which includes the lighting menu), you need to add this line after the ReefAngel.Init(); line in the loop() function:

Code: Select all

ReefAngel.AddStandardMenu(); // Add Standard Menu
pandimus
Posts: 213
Joined: Mon Apr 01, 2013 7:58 pm

Re: installed my wifi/lost daylight pwm

Post by pandimus »

I've tried everything here except reverting library's.not sure how to do that.hey roberto, is it possible to burn out just one channel of the pwm?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: installed my wifi/lost daylight pwm

Post by rimai »

That's a possibility.
Roberto.
pandimus
Posts: 213
Joined: Mon Apr 01, 2013 7:58 pm

Re: installed my wifi/lost daylight pwm

Post by pandimus »

If i buy the pwm dimmer expansion will this affect it?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: installed my wifi/lost daylight pwm

Post by rimai »

Can you test the channel using ControllerTester code?
File->Sketchbook->Example Codes
Roberto.
pandimus
Posts: 213
Joined: Mon Apr 01, 2013 7:58 pm

Re: installed my wifi/lost daylight pwm

Post by pandimus »

I did that the other day.and bad channel does nothing.good channel works fine.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: installed my wifi/lost daylight pwm

Post by rimai »

You can replace the LM358 to fix the channel.
If you get the dimming expansion, it would give you 6 more channels.
Roberto.
pandimus
Posts: 213
Joined: Mon Apr 01, 2013 7:58 pm

Re: installed my wifi/lost daylight pwm

Post by pandimus »

I removed the lm358 to make my unit 5v
pandimus
Posts: 213
Joined: Mon Apr 01, 2013 7:58 pm

Re: installed my wifi/lost daylight pwm

Post by pandimus »

Which is the daylight pins on lm358 1&3 or 5&7?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: installed my wifi/lost daylight pwm

Post by rimai »

5&7
Roberto.
Post Reply