My Neptune Apex web interface compatible DIY reef controller

So if I keep my 1a usb charger for inside the relay box then get a 5v buck converter for inside the project enclosure, I should be good?
 
if the relay/outlet box is separate, and it is a 5v relay board, then the 5v 1a is fine.
on the main project box, you need a 12v 1a to power the 12v circuit (dosing pumps, fans) and a buck converter to power the 5v circuit.
 
I only have strings of 3 led's so I am using a 12v dc psu anyway so just a 5v needed for that circuit. How about 370844537078 from fleabay? Could use the 3.3v for the atlas stamps too?
 
I'm using this
http://www.ebay.com/itm/221551469473?_trksid=p2059210.m2749.l2649&ssPageName=STRK:MEBIDX:IT

you don't want 3.3v on the atlas stamps. if you do, you need to add level shifter circuit.
Got my new mega and this 5v buck. Much better now and no where near as hot :)

All uploaded again and looking good so far. Going to upload the latest code tomorrow night and try to edit the configuration to match my setup ready to be installed.

How are you getting on with the led coding? Has your lumia arrived yet for testing?
 
I'm still waiting for the rest of led parts (just the lumia and the ldd drivers) before I continue. But it looks like powergate cancelled my ldd order again. I am confirming this before I place the order at mouser so I don't end up with 2 sets of ldd drivers. I think if they don't like selling retail, they should just set their minimum order qty higher. really bad company to deal with.
 
It's crap when companies treat people like they don't care. There have been loads of people on the forums buying from mouser so if you do go that route, hopefully all will be good.

I was thinking for the led code, whether it would be possible to add an acclimatisation period for new corals, ie for x days gradually build up the lights max intensity from x % until it's back as the user defined max?

I've no idea how I'd would be written or even if it's more of a gimmick but some led lights have that feature built in.

I'm more curious than anything if you think it's possible and if you would use it?
 
I got email today powergate/sager shipped the ldd drivers from MA. knowing how slow UPS is shipping from coast to coast, it will probably arrive the same time as the lumia.

I'm going to get the basics working first, and can add enhancements after.
 
I just updated github with a fix to doser code.

The doser volume values are in ml, and in whole numbers (variables are integers). If you enter a decimal value, it will get rounded. If you entered a value less than 1, it can become 0 and cause a problem. I added a check to make sure the value is not 0.
 
I got email today powergate/sager shipped the ldd drivers from MA. knowing how slow UPS is shipping from coast to coast, it will probably arrive the same time as the lumia.

I'm going to get the basics working first, and can add enhancements after.

To powergate's credit, I just noticed they did not charge me for shipping, and only charged me $25 and change for the 5 ldd+tax. Tracking shows it will arrive monday.
 
Hello, d0ughb0y. Thank you for your great and selfless sharing project. I follow the directions to https://github.com/d0ughb0y/Chauvet16 modify parts library files, do not know is I modify the wrong or my library file path is wrong. I tried a lot of ways all problems, suggest the following mistakes when I compiled, hope d0ughb0y and other friends to help me. Thank you for your.
 
Arduino:1.0.5-r2 (Windows 7), board:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from Chauvet16.ino:21:
TinyWebServer.h:138: error: 'SdFile' has not been declared
In file included from Chauvet16.ino:23:
config.h:313: error: 'time_t' does not name a type
config.h:314: error: 'time_t' does not name a type
config.h:315: error: 'time_t' does not name a type
config.h:321: error: 'time_t' does not name a type
config.h:328: error: 'time_t' does not name a type
config.h:329: error: 'time_t' does not name a type
Chauvet16:30: error: 'time_t' was not declared in this scope
Chauvet16:30: error: expected primary-expression before 'char'
Chauvet16:30: error: expected primary-expression before 'char'
Chauvet16:30: error: initializer expression list treated as compound expression
Chauvet16:31: error: redefinition of 'char* date2file'
Chauvet16:30: error: 'char* date2file' previously defined here
Chauvet16:31: error: 'tmElements_t' was not declared in this scope
Chauvet16:31: error: expected primary-expression before 'char'
Chauvet16:31: error: expected primary-expression before 'char'
Chauvet16:33: error: 'tmElements_t' has not been declared
Chauvet16:33: error: 'time_t' has not been declared
Chauvet16:55: error: 'tmElements_t' has not been declared
Chauvet16:115: error: variable or field 'autoDST' declared void
Chauvet16:115: error: 'time_t' was not declared in this scope
Chauvet16:116: error: 'time_t' was not declared in this scope
Chauvet16:133: error: 'time_t' does not name a type
Chauvet16:193: error: variable or field 'ptime' declared void
Chauvet16:193: error: 'time_t' was not declared in this scope
Chauvet16:208: error: expected ',' or '...' before 'thetime'
Chauvet16:208: error: ISO C++ forbids declaration of 'time_t' with no type
Chauvet16:210: error: expected ',' or '...' before 't'
Chauvet16:210: error: ISO C++ forbids declaration of 'time_t' with no type
Chauvet16:30: error: 'SdFat' does not name a type
Chauvet16:31: error: 'SdFile' does not name a type
Chauvet16:42: error: 'time_t' does not name a type
Chauvet16:43: error: 'time_t' does not name a type
Chauvet16.ino: In function 'void loop()':
Chauvet16:175: error: 'time_t' was not declared in this scope
Chauvet16:175: error: expected `;' before 'timenow'
Chauvet16:176: error: 'time_t' does not name a type
Chauvet16:177: error: 'timenow' was not declared in this scope
Chauvet16:177: error: 'lasttimenow' was not declared in this scope
Chauvet16:178: error: 'ptime' was not declared in this scope
Chauvet16:215: error: 'timenow' was not declared in this scope
Chauvet16:215: error: 'autoDST' was not declared in this scope
 
Apex.ino: At global scope:
Apex:7: error: expected constructor, destructor, or type conversion before '(' token
Apex:8: error: expected constructor, destructor, or type conversion before '(' token
Apex:9: error: expected constructor, destructor, or type conversion before '(' token
Apex:10: error: expected constructor, destructor, or type conversion before '(' token
Apex:11: error: expected constructor, destructor, or type conversion before '(' token
Apex:12: error: expected constructor, destructor, or type conversion before '(' token
Apex:13: error: expected constructor, destructor, or type conversion before '(' token
Apex:14: error: expected constructor, destructor, or type conversion before '(' token
Apex:15: error: expected constructor, destructor, or type conversion before '(' token
Apex:16: error: expected constructor, destructor, or type conversion before '(' token
Apex:17: error: expected constructor, destructor, or type conversion before '(' token
Apex:18: error: expected constructor, destructor, or type conversion before '(' token
Apex:19: error: expected constructor, destructor, or type conversion before '(' token
Apex:20: error: expected constructor, destructor, or type conversion before '(' token
Apex:21: error: expected constructor, destructor, or type conversion before '(' token
Apex:22: error: expected constructor, destructor, or type conversion before '(' token
Apex:23: error: expected constructor, destructor, or type conversion before '(' token
Apex:24: error: expected constructor, destructor, or type conversion before '(' token
Apex:25: error: expected constructor, destructor, or type conversion before '(' token
Apex:26: error: expected constructor, destructor, or type conversion before '(' token
Apex:27: error: expected constructor, destructor, or type conversion before '(' token
Apex:28: error: expected constructor, destructor, or type conversion before '(' token
Apex:29: error: expected constructor, destructor, or type conversion before '(' token
Apex:30: error: expected constructor, destructor, or type conversion before '(' token
Apex:31: error: expected constructor, destructor, or type conversion before '(' token
Apex:32: error: expected constructor, destructor, or type conversion before '(' token
Apex:33: error: expected constructor, destructor, or type conversion before '(' token
Apex:34: error: expected constructor, destructor, or type conversion before '(' token
Apex:35: error: expected constructor, destructor, or type conversion before '(' token
Apex:36: error: expected constructor, destructor, or type conversion before '(' token
Apex:37: error: expected constructor, destructor, or type conversion before '(' token
Apex:38: error: expected constructor, destructor, or type conversion before '(' token
Apex:39: error: expected constructor, destructor, or type conversion before '(' token
Apex:40: error: expected constructor, destructor, or type conversion before '(' token
Apex:41: error: expected constructor, destructor, or type conversion before '(' token
Apex:42: error: expected constructor, destructor, or type conversion before '(' token
Apex:43: error: expected constructor, destructor, or type conversion before '(' token
Apex:44: error: expected constructor, destructor, or type conversion before '(' token
Apex:45: error: expected constructor, destructor, or type conversion before '(' token
Apex:46: error: expected constructor, destructor, or type conversion before '(' token
Apex:47: error: expected constructor, destructor, or type conversion before '(' token
Apex:48: error: expected constructor, destructor, or type conversion before '(' token
Apex:49: error: expected constructor, destructor, or type conversion before '(' token
Apex:50: error: expected constructor, destructor, or type conversion before '(' token
Apex:51: error: expected constructor, destructor, or type conversion before '(' token
Apex:67: error: redefinition of 'char* date2file'
Chauvet16:30: error: 'char* date2file' previously defined here
Apex:67: error: 'time_t' was not declared in this scope
Apex:67: error: expected primary-expression before 'char'
Apex:67: error: expected primary-expression before 'char'
Apex:73: error: redefinition of 'char* date2file'
Chauvet16:30: error: 'char* date2file' previously defined here
Apex:73: error: 'tmElements_t' was not declared in this scope
Apex:73: error: expected primary-expression before 'char'
Apex:73: error: expected primary-expression before 'char'
Apex.ino: In function 'boolean apex_status_handler(TinyWebServer&)':
 
Apex:110: error: 'apex_status1' was not declared in this scope
Apex:110: error: 'apex_hwsw' was not declared in this scope
Apex:110: error: 'apex_intro1' was not declared in this scope
Apex:112: error: 'apex_intro2' was not declared in this scope
Apex:112: error: 'apex_date1' was not declared in this scope
Apex:112: error: 'now2' was not declared in this scope
Apex:113: error: 'apex_date2' was not declared in this scope
Apex:113: error: 'apex_power' was not declared in this scope
Apex:116: error: 'apex_xml_probe1' was not declared in this scope
Apex:116: error: 'apex_xml_probe2' was not declared in this scope
Apex:117: error: 'apex_xml_probe3' was not declared in this scope
Apex:117: error: 'apex_xml_probe4' was not declared in this scope
Apex:123: error: 'apex_xml_probe1' was not declared in this scope
Apex:123: error: 'apex_xml_probe2' was not declared in this scope
Apex:124: error: 'apex_xml_probe3' was not declared in this scope
Apex:124: error: 'apex_xml_probe4' was not declared in this scope
Apex:129: error: 'apex_xml_probe1' was not declared in this scope
Apex:129: error: 'apex_xml_probe2' was not declared in this scope
Apex:130: error: 'apex_xml_probe3' was not declared in this scope
Apex:130: error: 'apex_xml_probe4' was not declared in this scope
Apex:136: error: 'apex_xml_probe5' was not declared in this scope
Apex:139: error: 'apex_outlet1' was not declared in this scope
Apex:140: error: no match for 'operator<<' in 'client << (char*)((volatile char*)(& conf.conf_t::eek:utletRec.ORec_t::name))'
Apex:141: error: 'apex_outlet2' was not declared in this scope
Apex:143: error: 'apex_outlet3' was not declared in this scope
Apex:144: error: no match for 'operator<<' in 'client << getOutletState(((uint8_t)i))'
Apex:145: error: 'apex_outlet4' was not declared in this scope
Apex:147: error: 'apex_outlet5' was not declared in this scope
Apex:149: error: 'apex_status2' was not declared in this scope
Apex.ino: At global scope:
Apex:153: error: 'tmElements_t' has not been declared
Apex:153: error: 'time_t' has not been declared
Apex.ino: In function 'void prelog(TinyWebServer&, int&, int&, int&)':
Apex:159: error: 'now2' was not declared in this scope
Apex:160: error: 'breakTime' was not declared in this scope
Apex:161: error: request for member 'Hour' in 'tm', which is of non-class type 'int'
Apex:161: error: request for member 'Minute' in 'tm', which is of non-class type 'int'
Apex:161: error: request for member 'Second' in 'tm', which is of non-class type 'int'
Apex:174: error: request for member 'Year' in 'tm', which is of non-class type 'int'
Apex:174: error: 'CalendarYrToTm' was not declared in this scope
Apex:177: error: request for member 'Month' in 'tm', which is of non-class type 'int'
Apex:180: error: request for member 'Day' in 'tm', which is of non-class type 'int'
Apex:183: error: request for member 'Hour' in 'tm', which is of non-class type 'int'
Apex:186: error: request for member 'Minute' in 'tm', which is of non-class type 'int'
Apex:187: error: request for member 'Second' in 'tm', which is of non-class type 'int'
Apex:188: error: 'tmElements_t' was not declared in this scope
Apex:188: error: expected `;' before 'tm2'
Apex:189: error: 'tm2' was not declared in this scope
Apex:189: error: request for member 'Year' in 'tm', which is of non-class type 'int'
Apex:190: error: request for member 'Month' in 'tm', which is of non-class type 'int'
Apex:191: error: request for member 'Day' in 'tm', which is of non-class type 'int'
Apex:193: error: 'makeTime' was not declared in this scope
Apex.ino: In function 'boolean apex_outlog_handler(TinyWebServer&)':
Apex:199: error: 'tmElements_t' was not declared in this scope
Apex:199: error: expected `;' before 'tm'
Apex:200: error: 'time_t' was not declared in this scope
Apex:200: error: expected `;' before 'currdate'
Apex:202: error: 'tm' was not declared in this scope
Apex:202: error: 'currdate' was not declared in this scope
Apex:210: error: 'apex_outlog1' was not declared in this scope
Apex:210: error: 'apex_hwsw' was not declared in this scope
Apex:210: error: 'apex_intro1' was not declared in this scope
Apex:212: error: 'apex_intro2' was not declared in this scope
Apex:215: error: 'now2' was not declared in this scope
Apex:215: error: 'SECS_PER_DAY' was not declared in this scope
Apex:216: error: 'date2file' cannot be used as a function
Apex:217: error: 'sd' was not declared in this scope
Apex:217: error: 'file_' was not declared in this scope
Apex:217: error: 'O_READ' was not declared in this scope
Apex:227: error: 'file_' was not declared in this scope
Apex:229: error: 'apex_outlog2' was not declared in this scope
Apex.ino: In function 'boolean apex_datalog_handler(TinyWebServer&)':
Apex:236: error: 'tmElements_t' was not declared in this scope
Apex:236: error: expected `;' before 'tm'
Apex:237: error: 'time_t' was not declared in this scope
Apex:237: error: expected `;' before 'currdate'
Apex:239: error: 'tm' was not declared in this scope
Apex:239: error: 'currdate' was not declared in this scope
 
Apex:246: error: 'apex_datalog1' was not declared in this scope
Apex:246: error: 'apex_hwsw' was not declared in this scope
Apex:246: error: 'apex_intro1' was not declared in this scope
Apex:248: error: 'apex_intro2' was not declared in this scope
Apex:251: error: 'now2' was not declared in this scope
Apex:251: error: 'SECS_PER_DAY' was not declared in this scope
Apex:252: error: 'date2file' cannot be used as a function
Apex:253: error: 'sd' was not declared in this scope
Apex:253: error: 'file_' was not declared in this scope
Apex:253: error: 'O_READ' was not declared in this scope
Apex:263: error: 'file_' was not declared in this scope
Apex:265: error: 'apex_datalog2' was not declared in this scope
Apex.ino: In function 'boolean apex_command_handler(TinyWebServer&)':
Apex:331: error: '_MacroCountDown' was not declared in this scope
Apex:333: error: '_MacroTime' was not declared in this scope
Apex:333: error: 'now2' was not declared in this scope
Apex:335: error: '_MacroTime' was not declared in this scope
Apex.ino: In function 'boolean apex_status_json_handler(TinyWebServer&)':
Apex:359: error: 'apex_json1' was not declared in this scope
Apex:359: error: 'apex_json1b' was not declared in this scope
Apex:359: error: 'apex_json1c' was not declared in this scope
Apex:360: error: 'apex_json2' was not declared in this scope
Apex:360: error: 'now2' was not declared in this scope
Apex:360: error: 'SECS_PER_HOUR' was not declared in this scope
Apex:361: error: 'apex_json3' was not declared in this scope
Apex:363: error: 'apex_json3a' was not declared in this scope
Apex:364: error: 'getFeedActive' was not declared in this scope
Apex:365: error: 'apex_json3b' was not declared in this scope
Apex:369: error: 'apex_json_probe1' was not declared in this scope

Apex:372: error: no match for 'operator<<' in 'client << (const __FlashStringHelper*)({...})'
 
I don't know that modify my library file right.

///////////////////////////////////////////
temp.h edit:

time_t now(); // return the current time as seconds since Jan 1 1970
time_t now2();
void setTime(time_t t);
void setTime(int hr,int min,int sec,int day, int month, int yr);
void adjustTime(long adjustment);
///////////////////////////////////////////
temp.cpp edit

return sysTime;
}

time_t now2(){
while( millis() - prevMillis >= 1000){
sysTime++;
prevMillis += 1000;
#ifdef TIME_DRIFT_INFO
sysUnsyncedTime++; // this can be compared to the synced time to measure long term drift
#endif
}
return sysTime;
}

void setTime(time_t t){
#ifdef TIME_DRIFT_INFO
if(sysUnsyncedTime == 0)
sysUnsyncedTime = t; // store the time of the first call to set a valid Time
#endif
//////////////////////////////////////////////////////////////////////
OneWire.h edit:

public:
OneWire( uint8_t pin);

// Perform a 1-Wire reset cycle. Returns 1 if a device responds
// with a presence pulse. Returns 0 if there is no device or the
// bus is shorted or otherwise held low for more than 250uS
uint8_t reset(void);
uint8_t reset2(void);

// Issue a 1-Wire rom select command, you do the reset first.
void select(const uint8_t rom[8]);
///////////////////////////////////////////////////////////////////
OneWire.cpp edit:

// Perform the onewire reset function. We will wait up to 250uS for
// the bus to come high, if it doesn't then it is broken or shorted
// and we return a 0;
//
// Returns 1 if a device asserted a presence pulse, 0 otherwise.
//
//uint8_t OneWire::reset(void)
uint8_t OneWire::reset2(void)
{
IO_REG_TYPE mask = bitmask;
volatile IO_REG_TYPE *reg IO_REG_ASM = baseReg;
uint8_t r;
uint8_t retries = 125;

/////////////////////////////////////////////
//delayMicroseconds(410);

uint8_t OneWire::reset(void)
{
uint8_t r = reset2();
delayMicroseconds(410);
return r;
}

return r;
}
//////////////////////////////////////////
EthernetClient.h edit:

virtual int read();
virtual int read(uint8_t *buf, size_t size);
virtual int peek();
virtual void flush();
virtual void stop();
virtual uint8_t connected();
virtual operator bool();
virtual bool operator==(const EthernetClient&);
virtual bool operator!=(const EthernetClient& rhs) { return !this->operator==(rhs); };
uint8_t* getRemoteIP(uint8_t RemoteIP[]);

friend class EthernetServer;
/////////////////////////////////////////////////////
EthernetClient.cpp edit:

// the next function allows us to use the client returned by
// EthernetServer::available() as the condition in an if-statement.

EthernetClient::eek:perator bool() {
return _sock != MAX_SOCK_NUM;
}

bool EthernetClient::eek:perator==(const EthernetClient& rhs) {
return _sock == rhs._sock && _sock != MAX_SOCK_NUM && rhs._sock != MAX_SOCK_NUM;
}
uint8_t* EthernetClient::getRemoteIP(uint8_t remoteIP[])
{
W5100.readSnDIPR(_sock, remoteIP);
return remoteIP;
}
 
did you put the libraries into a folder named libraries in your sketch folder?
your error is arduino is not using the library files you edited or not seeing the libraries at all. If you read the thread, this has been covered several times before.
 
I got the meanwell ldd yesterday. so just waiting for the lumia.
I had a computer problem last week, and lost all the led code I did so far, so I have to redo all that again since I did not have a backup.
 
Back
Top