Problems useing my controler

New members questions
Post Reply
ingtar_shinowa
Posts: 20
Joined: Fri Jan 27, 2012 9:14 pm

Problems useing my controler

Post by ingtar_shinowa »

SO I build a new code to help my ATO work with an aqualifter, and to keep my skimmer from being shut down all the time here:

Code: Select all

// Autogenerated file by RAGen (v1.1.0.127), (01/30/2012 08:34)
// RA_013012_0834.pde
//
// This version designed for v0.8.5 Beta 17 or later

/* The following features are enabled for this PDE File: 
#define DisplayImages
#define DateTimeSetup
#define SIMPLE_MENU
*/


#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>


void setup()
{
    ReefAngel.Init();  //Initialize controller

    ReefAngel.FeedingModePorts = B00110000;
    ReefAngel.WaterChangePorts = B00001111;
    ReefAngel.OverheatShutoffPorts = B01000000;
    ReefAngel.LightsOnPorts = B10000000;

    // Ports that are always on
    ReefAngel.Relay.On(Port2);
    ReefAngel.Relay.On(Port3);
    ReefAngel.Relay.On(Port4);
}

void loop()
{
    // Specific functions
    ReefAngel.StandardATO(Port1,400);
    ReefAngel.Wavemaker1(Port5);
    ReefAngel.Wavemaker2(Port6);
    ReefAngel.StandardHeater(Port7);
    ReefAngel.StandardLights(Port8);

	ReefAngel.ShowInterface();
}
Complied on my PC it was 23594 Bytes, pretty good. I then tried to upload it using our netbook, after struggling to update libraries and such it complies at over 29k bytes which still wouldn't bother me if it would upload. I tried reinstaling the drivers shuting off and restarting, nothing is working. The message I get after it fails to upload is:

Code: Select all

Binary sketch size: 29892 bytes (of a 32256 byte maximum)
C:\Program Files\Reef Angel Controller\hardware/tools/avr/bin/avrdude -CC:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P\\.\COM3 -b115200 -D -Uflash:w:C:\Users\Ashley\AppData\Local\Temp\build5314242479731047581.tmp\sketch_feb05a.cpp.hex:i 

avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "C:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"

         Using Port            : \\.\COM3
         Using Programmer      : stk500v1
         Overriding Baud Rate  : 115200
avrdude: ser_open(): setting dtr
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Recv: 
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: Send: Q [51]   [20] 
avrdude: Recv: 
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

avrdude done.  Thank you.


What am I doing wrong?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Problems useing my controler

Post by rimai »

You are the seconds person with netbook that has problems uploading.
Try this an let me know if it works:
  • Open Arduino
  • Go to Control Panel->System->Device Manager
  • Look for Ports (COM & LPT) and delete the COM port you are using to communicate with Arduino.
  • Delete the COM port from you system. You can simply select and hit the delete key in your keyboard
  • Click the button Scan for New Hardware on the menu icons up top
  • Try uploading it now.
Roberto.
Post Reply