Search found 138 matches

by joshlawless
Sun Dec 04, 2016 9:10 pm
Forum: Addons
Topic: WiFi web page rendering issue
Replies: 2
Views: 4467

Re: WiFi web page rendering issue

Don't everybody jump in at the same time ...
by joshlawless
Tue May 03, 2016 9:42 pm
Forum: Development Libraries
Topic: Lights On override and Dimmer expansion module
Replies: 4
Views: 7726

Re: Lights On override and Dimmer expansion module

Looks like I found it (pasting here for posterity):

Code: Select all

    if (bitRead(ReefAngel.StatusFlags,LightsOnFlag)) 
by joshlawless
Tue May 03, 2016 9:32 pm
Forum: Development Libraries
Topic: Lights On override and Dimmer expansion module
Replies: 4
Views: 7726

Re: Lights On override and Dimmer expansion module

Is there a way to check, in the code, whether the LightsOn mode is active?

Something like:

If ReefAngel.AreLightsOn() {ReefAngel.PWM.Set16ChannelRaw( 0, 4095)}
else {ReefAngel.PWM.Set16ChannelRaw( 0, PWMSmoothRampHighestRes( 7, 15, 22, 00, 0, 4095, 130, 0 ) );}

?
by joshlawless
Tue Apr 19, 2016 10:40 am
Forum: Addons
Topic: WiFi web page rendering issue
Replies: 2
Views: 4467

WiFi web page rendering issue

I've been dealing with inconsistent WiFi performance for a while - sometimes the phone app will stop working for a while (with an error message about "Unable to process controller data"), but I can proceed immediately to the laptop and access the web page without issue. Sometimes even the ...
by joshlawless
Thu Sep 10, 2015 8:42 pm
Forum: Standard
Topic: ReefAngel.CustomLabels causing reboot loop
Replies: 11
Views: 12706

Re: ReefAngel.CustomLabels causing reboot loop

I tried re-introducing custom labels into my code, and ran into the reboot loop again. Here's the offending section: ReefAngel.CustomLabels[0]="300W Heat"; ReefAngel.CustomLabels[1]="100W Heat"; ReefAngel.CustomLabels[2]="Skimmer"; ReefAngel.CustomLabels[3]="Neck W...
by joshlawless
Wed Sep 09, 2015 11:27 am
Forum: Requests
Topic: Modification to the Relays
Replies: 2
Views: 6097

Re: Modification to the Relays

I don't know how other feel about this, but adding an LED to each port on the relay to indicate the port is on and working. Just a little something that I find would make things easier when troubleshooting a problem. I would very much like this. It would have helped quite a bit while troubleshootin...
by joshlawless
Sat Aug 29, 2015 11:11 am
Forum: Development Libraries
Topic: Set16ChannelRaw Unexpected behavior
Replies: 13
Views: 16809

Re: Set16ChannelRaw Unexpected behavior

Looks awesome. I'm not sure how much sense it would make to change it to tenths but I'm intrigued by your approach. I've been thinking of that for a bit with my dosing pump code. Because I'm dosing by volume at the end of the day I'm dosing a little bit under maybe by a full ml because of the resol...
by joshlawless
Fri Aug 28, 2015 12:57 pm
Forum: Development Libraries
Topic: Set16ChannelRaw Unexpected behavior
Replies: 13
Views: 16809

Re: Set16ChannelRaw Unexpected behavior

Just a follow-up to state that after making the change specified in the post above to my copy of the libraries, I can confirm the behavior is now as I would expect. Chart One thing I noticed when parsing the function -- it calculates the value based on the current time in seconds. With a 12-bit slop...
by joshlawless
Wed Aug 26, 2015 9:12 pm
Forum: Development Libraries
Topic: Set16ChannelRaw Unexpected behavior
Replies: 13
Views: 16809

Re: Set16ChannelRaw Unexpected behavior

It looks like it should be else if ((end - current) < slopeLengthSecs) { // it's in the end slope down smoothPhase = (((float)(end-current)/(float)slopeLengthSecs)*180.0) + 180.0; This way, smoothPhase varies from 2pi to pi over the final slope, the cosine of smoothPhase varies from 1 to -1 over the...
by joshlawless
Mon Aug 24, 2015 5:09 pm
Forum: Development Libraries
Topic: Set16ChannelRaw Unexpected behavior
Replies: 13
Views: 16809

Re: Set16ChannelRaw Unexpected behavior

SmoothRamp might be the culprit. I had issues with it at one point in testing. I think the length of the duration is key with that. Try the slope or parabola and see if you have the same issues. Sent from my iPad using Tapatalk I thought it odd that the colors looked fine this morning -- which made...
by joshlawless
Mon Aug 24, 2015 5:03 pm
Forum: Development Libraries
Topic: Set16ChannelRaw Unexpected behavior
Replies: 13
Views: 16809

Re: Set16ChannelRaw Unexpected behavior

You might want to change the '05' to just '5'. Arduino treats anything prefaced with a zero as an octal number. Don't think that's causing your problem, though. Are you sure those channels are dimming at all? Could they be running full blast all the time, with it only noticeable when the other chan...
by joshlawless
Mon Aug 24, 2015 8:53 am
Forum: Development Libraries
Topic: Set16ChannelRaw Unexpected behavior
Replies: 13
Views: 16809

Re: Set16ChannelRaw Unexpected behavior

It sounds like your wrapping a variable or a time. Can be tricky with offsets if you wrap over the 24 hour mark. I had that happen a lot with the sunrise/sunset code. I can't look through this now (on vacation) but thats what I'd be looking for. I do have one slope that wraps over midnight, but it'...
by joshlawless
Mon Aug 24, 2015 8:45 am
Forum: Development Libraries
Topic: Set16ChannelRaw Unexpected behavior
Replies: 13
Views: 16809

Re: Set16ChannelRaw Unexpected behavior

What does the app say the values are when this happens? --Colin Neither the UApp nor the Android app display the values for the 16-channel expansion dimming levels, to my knowledge. I tried to write a few lines of code to output the current levels for the channels to the CustomVariables, but wasn't...
by joshlawless
Sun Aug 23, 2015 9:39 pm
Forum: Development Libraries
Topic: Set16ChannelRaw Unexpected behavior
Replies: 13
Views: 16809

Set16ChannelRaw Unexpected behavior

I have a 16 channel board attached, and code intended to separately ramp the different color channels. ReefAngel.PWM.Set16ChannelRaw(0,PWMSmoothRampHighRes(7,30,22,00,0,65,45,0)); ReefAngel.PWM.Set16ChannelRaw(1,PWMSmoothRampHighRes(7,25,22,05,0,65,45,0)); // 05 minute longer ReefAngel.PWM.Set16Chan...
by joshlawless
Sun Aug 23, 2015 9:14 pm
Forum: How do I code ...
Topic: Odd ATO pin output behavior on WiFi activity
Replies: 0
Views: 4911

Odd ATO pin output behavior on WiFi activity

I connected a Jebao WP-25 to my lowATO pins, and wrote some code to ramp the speed from ~38% to 100% 10 seconds out of every 2 hours. pinMode(lowATOPin,OUTPUT); if ( (hour() >= 8) && (hour() < 22) ) { if ( now()%7200<10 ) analogWrite(lowATOPin,255); else analogWrite(lowATOPin,96); } else ana...
by joshlawless
Sat Jul 18, 2015 3:42 pm
Forum: Addons
Topic: Water Level ATO pump trouble
Replies: 4
Views: 4871

Re: Water Level ATO pump trouble

Ah, that's what I get for going with forum searches instead of unpacking the libraries.

http://forum.reefangel.com/viewtopic.php?p=42262#p42262
by joshlawless
Sat Jul 18, 2015 2:08 pm
Forum: Addons
Topic: Water Level ATO pump trouble
Replies: 4
Views: 4871

Re: Water Level ATO pump trouble

Attached is a small video file, for those who wonder what it must have been like for Sisyphus. In it, I start from the water level page (showing 32), clear the ATO timeout, hear the pump run for 15 seconds before it times out, and clear the timeout several more times (with only a brief flicker of th...
by joshlawless
Sat Jul 18, 2015 1:51 pm
Forum: Addons
Topic: Water Level ATO pump trouble
Replies: 4
Views: 4871

Water Level ATO pump trouble

I received my new ATO pump from Roberto, and even though it doesn't always start pumping when it's powered on, I tried to get it set up in software anyways (pending a resolution on the unreliable starting). Unfortunately, I can't get even the relay to turn on or off as expected. Posted below is my (...
by joshlawless
Thu Jun 11, 2015 3:18 pm
Forum: Addons
Topic: Flickering on 16 channel expansion
Replies: 16
Views: 14346

Re: Flickering on 16 channel expansion

So regarding the library functions for writing to the 16 channel expansion, I think the occasional flicker I see is a result of trying to send too much data to the PCA9685 at the same time. As I understand it, this block of code: void RA_PWMClass::SIXTEENChExpansionWrite() { byte thiscrc=0; for ( by...
by joshlawless
Thu Jun 11, 2015 2:21 pm
Forum: Addons
Topic: Expansion relay trouble
Replies: 19
Views: 15439

Re: Expansion relay trouble

So, as I start with the Wizard code, and monitor my 60W lamp for misbehavior (debugging an intermittent problem is a huge pain -- wish I had one of these power outage alarms to plug into the relay expansion box), I notice one line missing from my code that's in the Wizard code. Not sure how it got ...
by joshlawless
Wed Jun 10, 2015 9:01 pm
Forum: Addons
Topic: Expansion relay trouble
Replies: 19
Views: 15439

Re: Expansion relay trouble

While the behavior of the relay box doesn't seem like it can be explained by the expansion hub (unplugging the expansion hub doesn't toggle the states of the relays), the behavior of the other modules (probes) sure can be. It seems as if the mini-usb plug on the expansion hub is loose inside the pro...
by joshlawless
Wed Jun 10, 2015 8:47 pm
Forum: Addons
Topic: Expansion relay trouble
Replies: 19
Views: 15439

Re: Expansion relay trouble

I hooked up a 60W lamp to one of the outlets on my expansion box last night, and uploaded some basic wizard code that just used the always-on functions to give power to what I needed. About twenty minutes in, the lamp flicked off and on. I didn't have time to re-run the test with the relay expansio...
by joshlawless
Wed Jun 10, 2015 8:47 am
Forum: Addons
Topic: Bluetooth Attachment
Replies: 199
Views: 295142

Re: Bluetooth Attachment

Im using OSX platforms - I don't think the referenced .dll file is present outside of the Windows IDE.
by joshlawless
Tue Jun 09, 2015 6:33 pm
Forum: Addons
Topic: Expansion relay trouble
Replies: 19
Views: 15439

Re: Expansion relay trouble

So, as I start with the Wizard code, and monitor my 60W lamp for misbehavior (debugging an intermittent problem is a huge pain -- wish I had one of these power outage alarms to plug into the relay expansion box), I notice one line missing from my code that's in the Wizard code. Not sure how it got d...
by joshlawless
Tue Jun 09, 2015 6:24 pm
Forum: Addons
Topic: Expansion relay trouble
Replies: 19
Views: 15439

Re: Expansion relay trouble

Missing string entry from the ReefAngel_1.5_LCD? String PUMP_MODES[] = {"Constant","Lagoon","ReefCrest","Short Pulse","Long Pulse","Nutrient Trans.","Tidal Swell","Feeding","","Night","Custom&quo...
by joshlawless
Tue Jun 09, 2015 5:41 pm
Forum: Addons
Topic: Expansion relay trouble
Replies: 19
Views: 15439

Re: Expansion relay trouble

But this (weird display of DC Pump mode) persists with the following cleaned-up code, that I'm using for test purposes, which doesn't have the custom labels: #include <ReefAngel_Features.h> #include <Globals.h> #include <RA_Wifi.h> #include <Wire.h> #include <OneWire.h> #include <Time.h> #include <D...
by joshlawless
Tue Jun 09, 2015 5:36 pm
Forum: Addons
Topic: Bluetooth Attachment
Replies: 199
Views: 295142

Re: Bluetooth Attachment

Am I cursed somehow? I can sit my laptop two inches from the bluetooth module, and when I attempt to upload code from Arduino over the bluetooth connection, the light on the bluetooth module turns blue, the reef angel clicks loudly as it reboots, the blue light goes out, and the upload fails with th...
by joshlawless
Tue Jun 09, 2015 5:22 pm
Forum: Addons
Topic: Expansion relay trouble
Replies: 19
Views: 15439

Re: Expansion relay trouble

Curiously, on the head unit page displaying the DC pump status, the DC pump mode is rapidly flashing (blinking, really), the words "Air Pump".

https://dl.dropboxusercontent.com/u/230 ... 9%20PM.mov
by joshlawless
Tue Jun 09, 2015 2:20 pm
Forum: Addons
Topic: Expansion relay trouble
Replies: 19
Views: 15439

Re: Expansion relay trouble

I hooked up a 60W lamp to one of the outlets on my expansion box last night, and uploaded some basic wizard code that just used the always-on functions to give power to what I needed. About twenty minutes in, the lamp flicked off and on. I didn't have time to re-run the test with the relay expansion...
by joshlawless
Tue Jun 09, 2015 1:28 pm
Forum: Ask anything here
Topic: 12V bus and relay control
Replies: 4
Views: 5677

Re: 12V bus and relay control

It looks like this $8 relay board might still fit the bill: Amazon link http://ecx.images-amazon.com/images/I/51zxwPReQSL.jpg 5V 4-Channel Relay interface board, and each one needs 15-20mA Driver Current Equipped with high-current relay, AC250V 10A ; DC30V 10A Standard interface that can be controll...