DIY Aquarium Touchscreen Controller - Page 11
Planted Tank Forums
Your Tanks Image Hosting *Tank Tracker * Plant Profiles Fish Profiles Planted Tank Guide Photo Gallery Articles

Go Back   The Planted Tank Forum > Specific Aspects of a Planted Tank > DIY


Reply
 
Thread Tools Display Modes
Old 01-27-2013, 08:31 PM   #151
bigd603
Planted Member
 
PTrader: (1/100%)
Join Date: May 2011
Location: Portland, OR
Posts: 237
Default

Would you be willing to share your sketch?
bigd603 is online now   Reply With Quote
Sponsored Links
Advertisement
 
Old 01-27-2013, 08:32 PM   #152
Darkblade48
Moderator
 
Darkblade48's Avatar
 
PTrader: (3/100%)
Join Date: Jan 2008
Location: Toronto
Posts: 9,072
Default

Quote:
Originally Posted by bigd603 View Post
Would you be willing to share your sketch?
Since it is not done yet, no.
__________________
Anthony

A Primer to Pressurized CO2 and A Primer to Planted Tanks
Eheim Pimp #362 - Eheim 2213 x2, Eheim 2028, Eheim 2217, Eheim surface skimmer and Eheim autofeeder.
Victor Pimp #33 - HPT272-125-350-4M
Darkblade48 is online now   Reply With Quote
Old 01-27-2013, 08:54 PM   #153
bigd603
Planted Member
 
PTrader: (1/100%)
Join Date: May 2011
Location: Portland, OR
Posts: 237
Default

I'm getting nothing but errors when I try to compile Jarduino.

Any advice would be great, because I am getting nowhere over here.

Code:
Jarduino_v1_2_beta2:153: error: no matching function for call to 'DS1307::DS1307(int, int)'
/Users/DJW/Documents/Arduino/libraries/DS1307/DS1307.h:50: note: candidates are: DS1307::DS1307()
/Users/DJW/Documents/Arduino/libraries/DS1307/DS1307.h:47: note:                 DS1307::DS1307(const DS1307&)
Jarduino_v1_2_beta2:154: error: 'DS1307_RAM' does not name a type
Jarduino_v1_2_beta2:156: error: 'Time' does not name a type
Jarduino_v1_2_beta2.ino: In function 'void TimeDateBar(boolean)':
Jarduino_v1_2_beta2:894: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:894: error: 'class DS1307' has no member named 'getTime'
Jarduino_v1_2_beta2:900: error: 'class DS1307' has no member named 'getDateStr'
Jarduino_v1_2_beta2:900: error: 'FORMAT_LONG' was not declared in this scope
Jarduino_v1_2_beta2:900: error: 'FORMAT_LITTLEENDIAN' was not declared in this scope
Jarduino_v1_2_beta2:906: error: 'class DS1307' has no member named 'getMonthStr'
Jarduino_v1_2_beta2:906: error: 'FORMAT_SHORT' was not declared in this scope
Jarduino_v1_2_beta2:923: error: 'class DS1307' has no member named 'getDateStr'
Jarduino_v1_2_beta2:923: error: 'FORMAT_LONG' was not declared in this scope
Jarduino_v1_2_beta2:923: error: 'FORMAT_LITTLEENDIAN' was not declared in this scope
Jarduino_v1_2_beta2:927: error: 'class DS1307' has no member named 'getMonthStr'
Jarduino_v1_2_beta2:927: error: 'FORMAT_SHORT' was not declared in this scope
Jarduino_v1_2_beta2:964: error: 'class DS1307' has no member named 'getTimeStr'
Jarduino_v1_2_beta2:964: error: 'FORMAT_SHORT' was not declared in this scope
Jarduino_v1_2_beta2.ino: In function 'void LED_levels_output()':
Jarduino_v1_2_beta2:1106: error: 't' was not declared in this scope
Jarduino_v1_2_beta2.ino: In function 'void TimeSaver(boolean)':
Jarduino_v1_2_beta2:1699: error: 'class DS1307' has no member named 'getTimeStr'
Jarduino_v1_2_beta2:1699: error: 'FORMAT_SHORT' was not declared in this scope
Jarduino_v1_2_beta2:1707: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:1709: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:1714: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:1716: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:1721: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:1729: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:1734: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:1744: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:1755: error: 'class DS1307' has no member named 'getMonthStr'
Jarduino_v1_2_beta2:1755: error: 'FORMAT_SHORT' was not declared in this scope
Jarduino_v1_2_beta2:1761: error: 'class DS1307' has no member named 'getMonthStr'
Jarduino_v1_2_beta2:1761: error: 'FORMAT_SHORT' was not declared in this scope
Jarduino_v1_2_beta2:1765: error: 'class DS1307' has no member named 'getMonthStr'
Jarduino_v1_2_beta2:1765: error: 'FORMAT_SHORT' was not declared in this scope
Jarduino_v1_2_beta2:1783: error: 'class DS1307' has no member named 'getMonthStr'
Jarduino_v1_2_beta2:1783: error: 'FORMAT_SHORT' was not declared in this scope
Jarduino_v1_2_beta2:1789: error: 'class DS1307' has no member named 'getMonthStr'
Jarduino_v1_2_beta2:1789: error: 'FORMAT_SHORT' was not declared in this scope
Jarduino_v1_2_beta2:1795: error: 'class DS1307' has no member named 'getMonthStr'
Jarduino_v1_2_beta2:1795: error: 'FORMAT_SHORT' was not declared in this scope
Jarduino_v1_2_beta2:1812: error: 'class DS1307' has no member named 'getMonthStr'
Jarduino_v1_2_beta2:1812: error: 'FORMAT_SHORT' was not declared in this scope
Jarduino_v1_2_beta2:1818: error: 'class DS1307' has no member named 'getMonthStr'
Jarduino_v1_2_beta2:1818: error: 'FORMAT_SHORT' was not declared in this scope
Jarduino_v1_2_beta2:1824: error: 'class DS1307' has no member named 'getMonthStr'
Jarduino_v1_2_beta2:1824: error: 'FORMAT_SHORT' was not declared in this scope
Jarduino_v1_2_beta2.ino: In function 'void mainScreen(boolean)':
Jarduino_v1_2_beta2:2180: error: 't' was not declared in this scope
Jarduino_v1_2_beta2.ino: In function 'void clockScreen(boolean)':
Jarduino_v1_2_beta2:2460: error: 't' was not declared in this scope
Jarduino_v1_2_beta2.ino: In function 'void feedingTimeOutput()':
Jarduino_v1_2_beta2:3683: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:3693: error: 'class DS1307' has no member named 'getTime'
Jarduino_v1_2_beta2:3702: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:3712: error: 'class DS1307' has no member named 'getTime'
Jarduino_v1_2_beta2:3721: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:3731: error: 'class DS1307' has no member named 'getTime'
Jarduino_v1_2_beta2:3740: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:3750: error: 'class DS1307' has no member named 'getTime'
Jarduino_v1_2_beta2.ino: In function 'void setFeederTimesScreen(boolean)':
Jarduino_v1_2_beta2:3776: error: 't' was not declared in this scope
Jarduino_v1_2_beta2.ino: In function 'void processMyTouch()':
Jarduino_v1_2_beta2:4104: error: 't_temp' was not declared in this scope
Jarduino_v1_2_beta2:4104: error: 'class DS1307' has no member named 'getTime'
Jarduino_v1_2_beta2:4179: error: 'class DS1307' has no member named 'setTime'
Jarduino_v1_2_beta2:4180: error: 'class DS1307' has no member named 'setDate'
Jarduino_v1_2_beta2:4292: error: 't_temp' was not declared in this scope
Jarduino_v1_2_beta2:4292: error: 'class DS1307' has no member named 'getTime'
Jarduino_v1_2_beta2:4344: error: 't_temp' was not declared in this scope
Jarduino_v1_2_beta2:4344: error: 'class DS1307' has no member named 'getTime'
Jarduino_v1_2_beta2.ino: In function 'void setup()':
Jarduino_v1_2_beta2:5769: error: 'class DS1307' has no member named 'halt'
Jarduino_v1_2_beta2:5771: error: 't' was not declared in this scope
Jarduino_v1_2_beta2.ino: In function 'void loop()':
Jarduino_v1_2_beta2:5785: error: 't' was not declared in this scope
Jarduino_v1_2_beta2:5785: error: 'class DS1307' has no member named 'getTime'
Jarduino_v1_2_beta2:5807: error: 'class DS1307' has no member named 'getTime'
bigd603 is online now   Reply With Quote
Old 01-27-2013, 10:19 PM   #154
mistergreen
No more Bow ties
 
mistergreen's Avatar
 
PTrader: (13/100%)
Join Date: Dec 2006
Location: Cincinnati
Posts: 13,869
Default

You don't have the real time clock hooked up, so it doesn't know where to look for time perhaps.

So you paid for the Jarduino_v1_2_beta2?
mistergreen is online now   Reply With Quote
Old 01-27-2013, 10:35 PM   #155
bigd603
Planted Member
 
PTrader: (1/100%)
Join Date: May 2011
Location: Portland, OR
Posts: 237
Default

I'm getting these errors when I verify the code, before its even uploaded to the Arduino, so I would think it shouldnt matter that I dont have the RTC connected yet, but I am still new at this.
bigd603 is online now   Reply With Quote
Old 01-27-2013, 10:50 PM   #156
mistergreen
No more Bow ties
 
mistergreen's Avatar
 
PTrader: (13/100%)
Join Date: Dec 2006
Location: Cincinnati
Posts: 13,869
Default

Quote:
Originally Posted by bigd603 View Post
I'm getting these errors when I verify the code, before its even uploaded to the Arduino, so I would think it shouldnt matter that I dont have the RTC connected yet, but I am still new at this.
oh, ok. you need to include the library files in the arduino work file directory.
mistergreen is online now   Reply With Quote
Old 01-27-2013, 11:40 PM   #157
bigd603
Planted Member
 
PTrader: (1/100%)
Join Date: May 2011
Location: Portland, OR
Posts: 237
Default

The libraries are all there
bigd603 is online now   Reply With Quote
Old 01-27-2013, 11:54 PM   #158
Darkblade48
Moderator
 
Darkblade48's Avatar
 
PTrader: (3/100%)
Join Date: Jan 2008
Location: Toronto
Posts: 9,072
Default

Are you sure you are using the right library?

I am not sure what is included in Jarduino version 1.2 beta, as I did not pay to see the source code.

From what I understand though, he has switched from Joyce's library to Karlsen's.

I assume you are using the newer version of the Arduino IDE as well?

As mentioned before, this project is not as simple as "plug and play"...
__________________
Anthony

A Primer to Pressurized CO2 and A Primer to Planted Tanks
Eheim Pimp #362 - Eheim 2213 x2, Eheim 2028, Eheim 2217, Eheim surface skimmer and Eheim autofeeder.
Victor Pimp #33 - HPT272-125-350-4M
Darkblade48 is online now   Reply With Quote
Old 01-27-2013, 11:55 PM   #159
flc
Algae Grower
 
PTrader: (0/0%)
Join Date: Sep 2012
Location: Portland, Oregon
Posts: 71
Default

If you're really stuck, take your project into the next meeting of DorkBot PDX. The people who are affiliated with it are super helpful and really know their stuff. I bet someone would know exactly what was going wrong and people would probably love to see what you're working on.

http://dorkbotpdx.org/meetings
flc is offline   Reply With Quote
Old 01-28-2013, 12:55 PM   #160
bigd603
Planted Member
 
PTrader: (1/100%)
Join Date: May 2011
Location: Portland, OR
Posts: 237
Default

I wound up starting completely over. I re-installed Arduino, continued having bad luck with Jarduino, but I was able to get another aquarium controller sketch called Stilo to work. Except after loading the first screen it just flashes and reloads every second. I think this is because I don't have the RTC installed yet. I will do that today.

flc, thats a good idea to check out dorkbot. They have a meeting tonight, I just might have to stop by.
bigd603 is online now   Reply With Quote
Old 01-28-2013, 06:36 PM   #161
Darkblade48
Moderator
 
Darkblade48's Avatar
 
PTrader: (3/100%)
Join Date: Jan 2008
Location: Toronto
Posts: 9,072
Default

Quote:
Originally Posted by bigd603 View Post
I wound up starting completely over. I re-installed Arduino, continued having bad luck with Jarduino, but I was able to get another aquarium controller sketch called Stilo to work. Except after loading the first screen it just flashes and reloads every second. I think this is because I don't have the RTC installed yet. I will do that today.

flc, thats a good idea to check out dorkbot. They have a meeting tonight, I just might have to stop by.
I never tried Stilo myself, but it sounds odd that not having an RTC installed would cause the entire sketch to reset itself every second.

Usually, without an RTC, any time/date functions won't work. The only thing I can think of is that the sketch relies on the RTC to do something (i.e. check on the status of the sketch so that it can request new data from the temperature/pH probe), but there are better ways than querying the RTC.
__________________
Anthony

A Primer to Pressurized CO2 and A Primer to Planted Tanks
Eheim Pimp #362 - Eheim 2213 x2, Eheim 2028, Eheim 2217, Eheim surface skimmer and Eheim autofeeder.
Victor Pimp #33 - HPT272-125-350-4M
Darkblade48 is online now   Reply With Quote
Old 01-31-2013, 01:35 PM   #162
bigd603
Planted Member
 
PTrader: (1/100%)
Join Date: May 2011
Location: Portland, OR
Posts: 237
Default

Finally got Jarduino to work! Took long enough. Turns out I wasnt using the right DS1307 library, and I just had to change the pin settings.

Now I'm going to run through all the code to try and learn all of it. I really appreciate how well commented this sketch is, that will be really useful.

I would love to change it around to get rid of the LED array graph, since I dont use an LED lighting system and get some real time weather data in there, and replace the monitors and alerts pane to include room temp (that one is easy) and the pH values of the tank.
bigd603 is online now   Reply With Quote
Old 01-31-2013, 08:08 PM   #163
Darkblade48
Moderator
 
Darkblade48's Avatar
 
PTrader: (3/100%)
Join Date: Jan 2008
Location: Toronto
Posts: 9,072
Default

Quote:
Originally Posted by bigd603 View Post
I would love to change it around to get rid of the LED array graph, since I dont use an LED lighting system and get some real time weather data in there, and replace the monitors and alerts pane to include room temp (that one is easy) and the pH values of the tank.
Glad you managed to get the code working.

Removing/changing the LED lighting system is not hard, it is just a matter of going through the code and deleting the extraneous data

For the real time weather data, do you plan to get it from the internet?

From what I recall, the Jarduino does not have any code for pH monitoring, so you will have to find some examples and cobble it together.
__________________
Anthony

A Primer to Pressurized CO2 and A Primer to Planted Tanks
Eheim Pimp #362 - Eheim 2213 x2, Eheim 2028, Eheim 2217, Eheim surface skimmer and Eheim autofeeder.
Victor Pimp #33 - HPT272-125-350-4M
Darkblade48 is online now   Reply With Quote
Old 01-31-2013, 08:14 PM   #164
bigd603
Planted Member
 
PTrader: (1/100%)
Join Date: May 2011
Location: Portland, OR
Posts: 237
Default Re: DIY Aquarium Touchscreen Controller

Quote:
Originally Posted by Darkblade48 View Post
For the real time weather data, do you plan to get it from the internet?

From what I recall, the Jarduino does not have any code for pH monitoring, so you will have to find some examples and cobble it together.
The weather idea is down the road after I have a much firmer grasp on all this stuff, but yeah that would come from the internet, possibly an RSS feed. Would have to pick up an Ethernet shield for that.

I grabbed the pH stamp from Atlas Scientific and a probe from eBay, I imagine I can plug in the sketch they provide.

Sent from my Galaxy Nexus using Tapatalk 2
bigd603 is online now   Reply With Quote
Old 01-31-2013, 08:18 PM   #165
Darkblade48
Moderator
 
Darkblade48's Avatar
 
PTrader: (3/100%)
Join Date: Jan 2008
Location: Toronto
Posts: 9,072
Default

Quote:
Originally Posted by bigd603 View Post
The weather idea is down the road after u have a much firmer grasp on all this stuff, but yeah that would come from the internet, possibly an RSS feed. Would have to pick up an Ethernet shield for that.
That will be interesting to see!

Quote:
Originally Posted by bigd603 View Post
I grabbed the pH stamp from Atlas Scientific and a probe from eBay, I imagine I can plug in the sketch they provide.
Plugging in the code is the easy part; making it play nice with everything else is the hard part
__________________
Anthony

A Primer to Pressurized CO2 and A Primer to Planted Tanks
Eheim Pimp #362 - Eheim 2213 x2, Eheim 2028, Eheim 2217, Eheim surface skimmer and Eheim autofeeder.
Victor Pimp #33 - HPT272-125-350-4M
Darkblade48 is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright Planted Tank LLC 2012