Asked — Edited

Meet The Smart Saltwater Aquarium Powered By Ez Robot

Ez Robot community I wanted to introduce my latest application of this system. Some members hear already know I keep two salt water aquariums one coral which unfortunately died off and my predator tank. Sea life needs delicate balance maintained in their little ecosystem. Things like light spectrum , temperature, ph balance , current of water , nitrate and ammonia levels and calcium levels. These things take a practiced hand to maintain. I am building a new system and using ez b to monitor salinity, nitrates and ammonia, temp , water current flow and the ph. The ADC ports are useful for these and EZ board can control the current and switching to a backup power supply ( a apc for computers inside the cabinet to keep ezb and pumps powered). Also the ezb can turn on and off night , morning , day , and evening lighting settings. With a custom injection device im designing ezb can provide nutrients , calcium and even medicine if levels are out of wack. I started the build today and I am very excited!

User-inserted image


ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

#233  

Example pic , this is that bulb on by itself , I already have the output ready to go just needs to be plugged in and added to script assuming todays test went well. We will see when I get home:)

User-inserted image

Im thinking I will add this project to radioshackdiy.com , the great create

Author Avatar
United Kingdom
#234  

I was just looking at the waituntiltime script function again and your script.

The second WaitUntilTime(20,00) (for turning D3 on) is a pointless line as it will already be 20:00 before it gets there (after turning off D2). You can remove it so that the Set(D3,On) is directly below Set(D2,Off) and the last WaitUntilTime(08,00) too, with Set(D3, Off) moved up to the top with the Set(D1,On). The script still works with both WaitForTimes though.

The major concern is if you don't start the script between 20:00 and 08:00 it will wait until 08:00 to pass line 1, so for the rest of the day it wont function.

My script will avoid that but will check the time every minute (or however often you decide by changing the Sleep(60000) at the end.

Or, you could use an IF statement at the start of the script, add labels in down the script and read the time when you start the script and goto the correct point...


IF ($hour < 8)
  GOTO(0800)
ELSEIF ($hour >= 8 and $hour < 10)
  GOTO(1000)
ELSEIF ($hour >= 10 and $hour < 18)
  GOTO(1800)
ELSEIF ($hour >=18 and $hour < 20)
  GOTO(2000)
ELSE
  GOTO(0800)
ENDIF

:0800
waituntiltime(08,00)
set(D3,off)
set(D1,on)
:1000
waituntiltime(10,00)
set(D2,on)
:1800
waituntiltime(18,00)
set(D2,off)
:2000
waituntiltime(20,00)
set(D1,off)
set(D3,on)
goto(0800)
#235  

I see DAVE has his project there B9 ROBOT

Me i use to like radio shack from long time ago,but the prices are so very high

So now i use digikey or mouser or newark to buy parts and some discounted surlpus store like electronic goldmine and others,prices so cheap with shipping and get my parts in fast about 3-4 days

#236  

I can't figure out how that last post relates to the last 3+ pages of posts.

#237  

TROY i was replying to his post about JOSH adding his project to radioshackdiy post #4

#238  

Sorry, that little bit got lost in all the posts on coding, scheduling and timing. My bad, FRED:)

#239  

THAT cool no problem,like always never ever mad my post i might added to much also,but just wanted others to know including JOSH how you can save money,radio shack is close by most ,but with tax and high prices its a lot ,plus driving i do like the radio shack small breadboard or protoboards

#240  

FIRST 24 HOUR test complete. The tank cycled through all the desired light settings with the script I posted , I will update in the morning to ensure it looped like I wanted, good so far;)