My Neptune Apex web interface compatible DIY reef controller

The optical sensor I ordered should arrive this week. I configured the 2 arduino pins to work with either ultrasonic or infrared for user to select. The optical sensor seems a bit overpriced at $15, when you can get ultrasonic for $0.99 so I left that as an option.

If I have a cp-40 to reverse engineer, I can include that feature in the controller. I was going to buy one but decided to defer it, perhaps until the price drops below $100. I had asked in my local forum to borrow one but nobody offered. I think only 1% of reefers are interested in DIY.

Well, the price of CP-40 dropped below $100. I just ordered one for $87.
I'll be reverse engineering this when it arrives.

I just installed my DCT4000 to replace my trusty old eheim 1262 (been running for 8 years). I get the same flow with 5 lights on the stock controller, and is slient ( just a faint whine) compared to the humming of eheim pump. I don't think I'll ever go back to AC pump and now thinking of replacing my skimmer with one that uses DC pump.

That was fast, as I was typing this, I got ebay notice item is marked shipped. If seller ships today (from socal), I can probably get this as soon as tomorrow.
 
It just says error when I click save.
750f38be0dedd19487e7e9bb627028ec.png



Sent from my iPhone using Tapatalk
 
there is not enough information from your screenshot to go by. show the values.

#define DOSERDEFAULT {"Cal",5,0,0,2030,3626,3000},{"Alk", 20,1,1,2000,3234,3000}

I take it you are trying to disable scheduled dosing for Cal.

Note that starttime is minutes since midnight, so values 2030 and 2000 are invalid.
 
Yes I don't need to dose Cal for a bit had a little excursion in the high side. I wanted to dose at 8pm I put that in there based on the doser setup screen start time.
dbe375837e84f67409fb9344662a6c9c.png



Sent from my iPhone using Tapatalk
 
I recently set my cal to disabled and did not get any error.

There must be something else in your configuration that is causing the error. Clicking save will update the entire config record, not just for dosing.
 
My Neptune Apex web interface compatible DIY reef controller

Thanks. I'll start my config from scratch again and see if I can eliminate the issue.


Sent from my iPhone using Tapatalk
 
you can debug by using firefox browser with firebug debugger enabled (or use chrome). It will show the entire http request response to the controller.
 
Dosing Setup SUCCESS!

Dosing Setup SUCCESS!

Figured it out!
You have to have a value in the Daily Dose field for both dosers, or it will error when trying to save either doser configuration. I had Doser 0 daily dose set to zero and was trying to save Doser 1 daily dose at 10. After setting Doser 0 daily dose to 5 but leaving it disabled in the Dose Per Day drop down it saved without error.

Thanks for the nudge in the right direction!
 
actually, there is already a validation check, and you should see an error in the controller log.

Code:
 if (myconf.doser[i].dailydose==0) {
          beepFail();
          return apex_error(webserver,F("Daily dose must be >0 and an integer."),0);
        }
 
I will double check the logs again but when I was having the issue that never showed up because I checked immediately after it failed.


Sent from my iPhone using Tapatalk
 
its not logged but returned as error message to browser.
I can see it in the debugger, but it is not displayed in the error dialog.
I'll see if I can make it display.
The field is defined to not accept 0, and on firefox, you can see the box is colored red.
dosererror.jpg~original
 
Last edited:
Got the PCBs last Monday and just finished assembling the first board.
I'll start working on the software.

IMG_2060_1.jpg~original


IMG_2061_1.jpg~original


IMG_2063_1.jpg~original
 
Last edited:
I finished putting together all the basic code to at least test each part of the hardware functionality. I will start working on the html/javascript code next, this is the hardest part and will take up the most time.

I only found one issue with the board and it is just a labelling issue. For pwm output voltage selector, the correct label should be shorted is 5v pwm, open is 10v pwm. I used 1% resistors and the pwm output is at exactly 5v and 10v when I checked on the oscilloscope.

I tested temp (4 temp sensors), serial and i2c atlas stamp, feeder, ATO, ultrasonic sensor, all 6 pwm channels, all 4 doser channels, two fans and all 16 outlet ports. wifi and rtc works as well. Using the 4 wire DuPont connector works quite well I think. Interestingly enough, the entire setup consumes less than 2 watts of power with 1 fan running andwith usb unplugged. I am using a 12v 0.3 amp power supply for this test circuit.


IMG_2066.jpg~original
 
Last edited:
I finished putting together all the basic code to at least test each part of the hardware functionality. I will start working on the html/javascript code next, this is the hardest part and will take up the most time.

I only found one issue with the board and it is just a labelling issue. For pwm output voltage selector, the correct label should be shorted is 5v pwm, open is 10v pwm. I used 1% resistors and the pwm output is at exactly 5v and 10v when I checked on the oscilloscope.

I tested temp (4 temp sensors), serial and i2c atlas stamp, feeder, ATO, ultrasonic sensor, all 6 pwm channels, all 4 doser channels, two fans and all 16 outlet ports. wifi and rtc works as well. Using the 4 wire DuPont connector works quite well I think. Interestingly enough, the entire setup consumes less than 2 watts of power with 1 fan running andwith usb unplugged. I am using a 12v 0.3 amp power supply for this test circuit.


IMG_2066.jpg


Jerry Sy Hello , I'm your great DIY project . But here I am lonely environment, I can only use WiFi LAN I did not open the WEB UI interface , so I downloaded the JQuery Mobile1.3.2 package of documents to the local SD card inside. But probably because my file wrong path or not UI interface. How should I modify Jquery file path fishes . See Fig .
 
Jerry Sy Hello , I'm your great DIY project . But here I am lonely environment, I can only use WiFi LAN I did not open the WEB UI interface , so I downloaded the JQuery Mobile1.3.2 package of documents to the local SD card inside. But probably because my file wrong path or not UI interface. How should I modify Jquery file path fishes . See Fig .
 

Attachments

  • Screenshot_2016-08-13-23-44-35_com.android.chrome.jpg
    Screenshot_2016-08-13-23-44-35_com.android.chrome.jpg
    35.6 KB · Views: 2
  • Screenshot_2016-08-14-00-07-52_com.android.fileexplorer.jpg
    Screenshot_2016-08-14-00-07-52_com.android.fileexplorer.jpg
    48 KB · Views: 2
  • Screenshot_2016-08-14-00-56-05_com.miui.notes_1471107634689.jpg
    Screenshot_2016-08-14-00-56-05_com.miui.notes_1471107634689.jpg
    58.5 KB · Views: 2
  • Screenshot_2016-08-14-00-56-05_com.miui.notes_1471107691800.jpg
    Screenshot_2016-08-14-00-56-05_com.miui.notes_1471107691800.jpg
    76.2 KB · Views: 5
  • Screenshot_2016-08-14-00-03-27_com.android.fileexplorer.jpg
    Screenshot_2016-08-14-00-03-27_com.android.fileexplorer.jpg
    39.3 KB · Views: 2
Last edited:
I never tried loading all the javascript and css into the controller sd card so all files are served from the controller. I suppose it is possible. You can always gzip the files so the transfer will be faster, as the jquery files are large.

I am still working on the version 2 of the controller, which will be wifi only.
 
I have been running a test program continuously on the v2 board and so far everything is still running. I spent last week working on the DCT/gyre controller and ran into some issues and have to change some components. So I'm back to working on this at least for this week and next.
 
Back
Top