Page 1 of 1

Reef angel stopped working tonight

Posted: Sun Jan 20, 2013 11:23 pm
by JoshSD
About 4 hours ago I toggled feeding mode from the iPhone app then fed the tank and forgot about it for a while. I realize now nothing is run ing.

There was power to the lights which were left on during feeding. But they had not dimmed on schedule. Pumps had not restarted.

No response from app or from head unit. Rebooted unit by disconnecting power cable. Now now power to relay box.

Started emergency pump.

Tried reloading memory and RA file. This seemed to work but still no response on head unit and no power to any equipment. Green light still on.

Please help.

Reef angel stopped working tonight

Posted: Sun Jan 20, 2013 11:43 pm
by JoshSD
The first time I reloaded the files after I did the memory file the display had the message to then load my program code. But it didn't fix the problem so I tried again and now e en though the arduino program says "avrdude done. Thank you. " there is nothing on the screen. The backlight was on after the memory file but nothing after the program file.

I have the return pump and heater now on a separate power strip. But I guess I had better move everything else too.

Re: Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 9:42 am
by rimai
So, the memory file does load and you do see something on screen, correct?
We can eliminate the possibility of failed LCD, correct?
When you upload any other code, it seems to be uploading by blinking status led for several seconds and then when it's done uploading, you see just backlight. Is it true?

Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 9:47 am
by JoshSD
Memory does load but I do not see anything on the LCD screen. Red light blinks like normal loading but nothing on LCD and no response from joystick.

Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 9:48 am
by JoshSD
Green led stays on but LCD screen backlight goes off after loading code. It's like it's still stuck in the feed mode.

Re: Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 10:07 am
by rimai
Do you have any expansion module?
You can do two things...
1- Send it back for repair
2- We can try troubleshoot to find out what is going on, but it will require us to load several codes.

Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 10:12 am
by JoshSD
No extra modules other than wifi.

I'm willing to troubkeshoot if it might come back. If its a lost cause I guess not.

What is turnaround for repair and cost?

Re: Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 10:24 am
by rimai
Does this make your backlight and status led blink every second?

Code: Select all

void setup()
{
  pinMode(2,OUTPUT);
  pinMode(7,OUTPUT);
}

void loop()
{
  digitalWrite(2,millis()%2000<1000);
  digitalWrite(7,millis()%2000<1000);
}

Re: Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 10:29 am
by JoshSD
Yes, it sure does.

Re: Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 10:36 am
by rimai
Does this turn relays on/off?

Code: Select all

#include <Wire.h>

void setup()
{
  Serial.begin(57600);
  Wire.begin();  
}

void loop()
{
    Wire.beginTransmission(0x20);
    Wire.write(0x00);
    Wire.endTransmission();  
    delay(1000);
    Serial.println("Off");
    Wire.beginTransmission(0x20);
    Wire.write(0xff);
    Wire.endTransmission();  
    delay(1000);
    Serial.println("On");
}


Re: Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 10:44 am
by JoshSD
No. That doesn't seem to do anything.

It uploads (avrdude done), leaving the power LED on, status LED off, nothing on LCD, no sound from the relay box.

Re: Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 10:46 am
by rimai
Load this:

Code: Select all

/**
 * I2CScanner.pde -- I2C bus scanner for Arduino
 *
 * 2009, Tod E. Kurt, http://todbot.com/blog/
 *
 */

#include "Wire.h"
extern "C" { 
#include "utility/twi.h"  // from Wire library, so we can do bus scanning
}

// Scan the I2C bus between addresses from_addr and to_addr.
// On each address, call the callback function with the address and result.
// If result==0, address was found, otherwise, address wasn't found
// (can use result to potentially get other status on the I2C bus, see twi.c)
// Assumes Wire.begin() has already been called
void scanI2CBus(byte from_addr, byte to_addr, 
void(*callback)(byte address, byte result) ) 
{
  byte rc;
  byte data = 0; // not used, just an address to feed to twi_writeTo()
  for( byte addr = from_addr; addr <= to_addr; addr++ ) {
    rc = twi_writeTo(addr, &data, 0, 1, true);
    callback( addr, rc );
  }
}

// Called when address is found in scanI2CBus()
// Feel free to change this as needed
// (like adding I2C comm code to figure out what kind of I2C device is there)
void scanFunc( byte addr, byte result ) {
  Serial.print("addr: ");
  Serial.print(addr,HEX);
  Serial.print( (result==0) ? " found!":"       ");
  Serial.print( (addr%4) ? "\t":"\n");
}


byte start_address = 1;
byte end_address = 128;

// standard Arduino setup()
void setup()
{
  Wire.begin();
  pinMode(7,OUTPUT);
  Serial.begin(57600);
  Serial.println("\nI2CScanner ready!");

  Serial.print("starting scanning of I2C bus from ");
  Serial.print(start_address,DEC);
  Serial.print(" to ");
  Serial.print(end_address,DEC);
  Serial.println("...");

  // start the scan, will call "scanFunc()" on result from each address
  scanI2CBus( start_address, end_address, scanFunc );

  Serial.println("\ndone");
}

// standard Arduino loop()
void loop() 
{
  // Nothing to do here, so we'll just blink the built-in LED
  digitalWrite(7,HIGH);
  delay(300);
  digitalWrite(7,LOW);
  delay(300);
}
Open Serial Monitor on menu Tools->Serial Monitor
Make sure you are using 57600 baud
If nothing in the window, reboot RA.
It should print some diagnostics.
Copy and paste here

Re: Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 10:57 am
by JoshSD
I gave it a reboot and waited a few minutes but all that appears in the Serial Monitor is this

I2CScanner ready!
starting scanning of I2C bus from 1 to 128...

Re: Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 3:15 pm
by rimai
Open your head unit. Do you have jumpers in the SCA and SCL pins?

Re: Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 3:54 pm
by JoshSD
I have it open but do not see SCA or SCL pins labeled. can you please point to where they are on the board?

Re: Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 3:56 pm
by JoshSD
there is one jumper I can find on the board. It is on a bank of three, two pin connectors between the joystick and the serial port where the USB and Wifi cables connect. it is on the pair of pins to the far left towards the joystick.

Re: Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 4:40 pm
by rimai
Yeah, that means you don't have them in place.
Do you have the USB power cable?

Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 5:47 pm
by JoshSD
Somewhere, I have everything you sent me :)

Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 6:03 pm
by JoshSD
If it didn't come with the unit I don't have one.

Re: Reef angel stopped working tonight

Posted: Mon Jan 21, 2013 6:45 pm
by rimai
I don't think the problem is in the relay box.
It's most likely in the head unit.
Does it show any sign of water damage/corrosion?
I think you will need to send it in for repair.

Reef angel stopped working tonight

Posted: Tue Jan 22, 2013 8:02 am
by JoshSD
Small amount of corrosion appears on the outside of the HD15 connector. Everything else looks fine.

Re: Reef angel stopped working tonight

Posted: Sat Jan 26, 2013 6:16 pm
by JoshSD
It was definitely the board, just as you suggested. The new board works fine and there are no issues with the relay box.