The Planted Tank Forum - Search Results
Advanced Search
Showing results 1 to 25 of 107
Search took 0.06 seconds.
Search: Keyword(s): ; Posts Made By: benjaf
Forum: DIY   10-29-2015, 09:15 AM
Replies: 99
Views: 13,586
Posted By benjaf
Happy to help! :)

Happy to help! :)
Forum: DIY   10-28-2015, 08:35 AM
Replies: 99
Views: 13,586
Posted By benjaf
Good to hear you got it working! If you want to...

Good to hear you got it working!
If you want to have the values back to 'normal' (0 = off) you can change the following line in UpdateLights:
analogWrite(Channels[channel].GetPin(),...
Forum: DIY   10-27-2015, 02:51 PM
Replies: 99
Views: 13,586
Posted By benjaf
Hi! Actually, I 'deconstucted' the controller...

Hi!
Actually, I 'deconstucted' the controller this code ran on more than a year ago. It was a huge mess, and frankly not a design you'd want to follow...
Anyway, the basic idea was as follows:

...
Forum: DIY   09-27-2015, 07:31 PM
Replies: 99
Views: 13,586
Posted By benjaf
Hi Luka The rtc.now() function used in that...

Hi Luka
The rtc.now() function used in that version of the DS1307 library returns the time as a complex type called DateTime. This means minutes, seconds etc can be accessed directly as seen in the...
Forum: Low Tech Forum   07-24-2015, 11:52 AM
Replies: 7
Views: 820
Posted By benjaf
My platys and dwarf gourami also love mosquito...

My platys and dwarf gourami also love mosquito larvae, and neither bothers the shrimp!
Edit: Oh I see you are talking about ~5G of water? Guess gouramis are out then..
Forum: Low Tech Forum   04-25-2015, 07:31 PM
Replies: 24
Views: 3,045
Posted By benjaf
I seem to have a tank which is somewhat similar...

I seem to have a tank which is somewhat similar to what you are setting up. I found it quite surprising how well the idea of using soil works!
It's at 14G with ~1" organic potting soil topped with...
Forum: DIY   07-13-2014, 06:59 AM
Replies: 16
Views: 1,506
Posted By benjaf
I tried one of those Sparkfun meters (same as...

I tried one of those Sparkfun meters (same as Adafruit I think) too and had pretty much the same experience. It did not lower my output by quite that much (measured about 1/5 reduction), but it...
Forum: DIY   04-13-2014, 07:35 AM
Replies: 225
Views: 28,238
Posted By benjaf
Oh, not at all! :-) I just had a kid not long ago...

Oh, not at all! :-) I just had a kid not long ago - and really don't have time to get anything done. That part rather sucks! ;-)

Looking forward to see the final result once you get back to the...
Forum: DIY   04-11-2014, 08:08 PM
Replies: 45
Views: 8,110
Posted By benjaf
Those DS1307s aren't exactly the most accurate...

Those DS1307s aren't exactly the most accurate clocks around, the alternatives are just so much more expensive.. But since all 3 have pretty much the same environment they might at least drift in the...
Forum: DIY   04-11-2014, 05:14 AM
Replies: 45
Views: 8,110
Posted By benjaf
Very impressive! How do you keep controllers in...

Very impressive! How do you keep controllers in sync? Are they all connected to one master clock or do they each have their own time?
Forum: DIY   04-09-2014, 07:20 PM
Replies: 225
Views: 28,238
Posted By benjaf
Well, someone has to troll the board, and it is a...

Well, someone has to troll the board, and it is a lot easier to find time for than playing around with the soldering iron.. Don't you just hate when real life gets in the way of a hobby!
Forum: DIY   04-09-2014, 06:46 AM
Replies: 225
Views: 28,238
Posted By benjaf
You're welcome! Most RTC libraries also have an...

You're welcome!
Most RTC libraries also have an option to return a proper timestamp, usually Unix time (seconds since 01-01-1970) or seconds since 01-01-2000 which would be ideal for this use since...
Forum: DIY   04-09-2014, 05:19 AM
Replies: 225
Views: 28,238
Posted By benjaf
Nice to see someone is making progress! Any...

Nice to see someone is making progress!
Any particular reason for using millis rather than a timestamp from the RTC? If you do want to use millis you will have to handle rollover. That could be...
Forum: DIY   02-21-2014, 01:03 PM
Replies: 73
Views: 13,956
Posted By benjaf
How often do you dose ferts? AFAIK only writing...

How often do you dose ferts? AFAIK only writing to the EEPROM cause wear, and even then the 100.000 cycle limit is said to be a very conservative estimate.
Forum: DIY   02-19-2014, 05:14 AM
Replies: 73
Views: 13,956
Posted By benjaf
This looks interesting, going to follow your...

This looks interesting, going to follow your progress.
May I suggest using the EEPROM in stead of the RTC memory? It serves the same purpose but is much easier to work with and has much larger...
Forum: DIY   02-13-2014, 09:07 PM
Replies: 19
Views: 3,332
Posted By benjaf
If you do decide to take it apart, please share...

If you do decide to take it apart, please share photos of the electronics. Any advice on a 'wired' solution would be highly dependent on the internal construction.
Forum: DIY   02-04-2014, 03:09 PM
Replies: 225
Views: 28,238
Posted By benjaf
I agree that a natively Ethernet-capable device...

I agree that a natively Ethernet-capable device would be a better choice for the master. However, at this point it would mean a complete rewrite of all his controller code. Upgrading to a RasPi or...
Forum: DIY   02-04-2014, 03:03 PM
Replies: 225
Views: 28,238
Posted By benjaf
Most likely not. The thing with MOSFETs is that...

Most likely not. The thing with MOSFETs is that they act as an open drain for a moment when switched on, just like a cap. This draws considerably more current than the Arduino can safely deliver,...
Forum: DIY   02-03-2014, 07:08 PM
Replies: 99
Views: 13,586
Posted By benjaf
At this point I think it is likely that your...

At this point I think it is likely that your hardware may be playing you. My experience in the hardware field is somewhat limited so unfortunately I don't think I am the best person to help you...
Forum: DIY   01-30-2014, 06:37 PM
Replies: 225
Views: 28,238
Posted By benjaf
Actually, that is a very good idea. It is not a...

Actually, that is a very good idea. It is not a lot of data to transfer so soft serial is fine, and not a lot of code / pins on the slave so any cheap arduino-compatible board will do. A separate...
Forum: DIY   01-29-2014, 06:50 PM
Replies: 99
Views: 13,586
Posted By benjaf
It may very well be my code that doesn't actually...

It may very well be my code that doesn't actually support this.. It was not really something I had thought of originally. :icon_wink

Oh well, new plan:
You initialize it just like the example...
Forum: DIY   01-29-2014, 03:03 PM
Replies: 225
Views: 28,238
Posted By benjaf
Unfortunately that is not going to work. Making...

Unfortunately that is not going to work. Making it do something that is not part of the currently executed code, like you describe, would require a timer interrupt, and I don't think it is possible...
Forum: DIY   01-28-2014, 08:51 PM
Replies: 225
Views: 28,238
Posted By benjaf
Yes. You have a 'setup' section which is only run...

Yes. You have a 'setup' section which is only run once, and a 'loop' section which is then executed top to bottom indefinitely. No such thing as 'idle time'!
Forum: DIY   01-28-2014, 08:41 PM
Replies: 225
Views: 28,238
Posted By benjaf
Pretty much just checking every time the loop...

Pretty much just checking every time the loop runs. That is the beauty of microcontrollers, you don't need to worry about wasting clock cycles - they have nothing better to do. If you wanted to you...
Forum: DIY   01-28-2014, 08:35 PM
Replies: 225
Views: 28,238
Posted By benjaf
Well if the floats simply will not work for some...

Well if the floats simply will not work for some reason, you can always pass them as parameters to the function. That is how you would normally do things elsewhere, global variables are often...
Showing results 1 to 25 of 107

 
Forum Jump
 
For the best viewing experience please update your browser to Google Chrome