Automated Reptile Control System(webserver, Data Logging, RTC and much more)

Hello, really nice project!
Can you explain how can you positioning the values into the tables of your html pages?
Do you need to refresh the page everytime you want see if there was a change in the reads, or the page is always "connected" to arduino?

THANKS!!

blastboot:
Hello, really nice project!
Can you explain how can you positioning the values into the tables of your html pages?
Do you need to refresh the page everytime you want see if there was a change in the reads, or the page is always "connected" to arduino?

THANKS!!

currently the code is written so you need to refresh the page any time you want to see what the current readings are. it would be very easy to add the HTML "refresh" tag to the code to get it to auto refresh.

i have finished my enclosure and posted some images below:








i attached my code and the different libraries i used

some things are not done, and i know if a few bugs that need to be fixed, but i would say 98% of everything is working fine.

note: written in IDE version 1.0

Arduino.zip (105 KB)

Decent piece of work! be proud!

Hi everyone
"wallaceb" you have done a very good job here.

Question: It possible this code to work on UNO ?

Thanks

gvaf:
Hi everyone
"wallaceb" you have done a very good job here.

Question: It possible this code to work on UNO ?

Thanks

unfortunately no. the entire sketch currently uses 106,000 bytes of FLASH, too much for the UNO. However with that said, most of the 106,000 bytes is the PROGMEM storage of the HTML pages. If the sketch was somehow changed to pull the HTML off the SD card instead, it might fit, but i have not checked.

Is it me or is there an issue with the Arduino.zip file? When I try to open it, it seems it is invalid...
I could benefit from this code. I'm looking for tabulating code to be able to show status of things and then yet to be able to set values via the web.

tb

i have actually completed my code. i added more functionality and fixed bugs.

in the data logging adjust page, i added the ability to delete selected data files and fixed a bug in my used space calculation. now the webpage displays the exact same value as windows explorer does. :grin:

i also added another page for system information that includes system up-time, MAC address, number of sensor malfunctions if any, and the amount of free system RAM.

there were about 10 bugs that i found over the course of testing which appear to be fixed. there is still a bug in that the watch dog timer will reset the unit ever 1-2 days if i have data logging enabled, but not if it is off. i am looking into that.

with this said, tonight when i get off work, i will post all the code directly on this page.

Very Nice Work indeed do you have a set up diagram as well :slight_smile:

ericklil:
Very Nice Work indeed do you have a set up diagram as well :slight_smile:

are you referring to a system schematic?

i cannot paste my code into the page because of a 9500 character limit. i am going to try uploading it to a file service

edit:

hopefully the supplied link will work.

Zip worked fine, very nice.

System schematic would be grand, looks well thought out in the pictures.

Wallaceb,
That is a very nice project. One of the absolute best I have ever seen! True genius.
Peter

106K flash is really large :P, use microSD instead!

it looks great!!!

however after uploading the code I can not get into it- DHCP on my router does not seem to see it.

What would be the way to set the static ip in the code ?

thanks!

ODwyerPW:
Wallaceb,
That is a very nice project. One of the absolute best I have ever seen! True genius.
Peter

thanks very much for the complement 8)

mkcinek:
it looks great!!!

however after uploading the code I can not get into it- DHCP on my router does not seem to see it.

What would be the way to set the static ip in the code ?

thanks!

:fearful: oops.. i forgot to post the code i used to "program" the EEPROM for all the "default" settings. when i get home later tonight i will post that code :grin:

iouzzr:
106K flash is really large :P, use microSD instead!

with 256 k of available memory i was not going to worry about it. i originally thought to use the SD card, but decided that PROGMEM coding would be easier to code and control and faster with respect to I/O since the processor would not have to read a byte from SD card, store it locally, then send it to the Ethernet shield.

robtillaart:
Looks very well done (+1),

(nitpicking - Automated Reptile Environment Control System - makes a better acronym arecs that's an anagram of scare :wink:

thanks for pointing that out. i made the upadtes to the code. have not gotten to changing the pictures in the post though

edit: added a link to the initialization sketch.

download this to the arduino, it will configure all the EEPROM.
download the normal code to the arduino and the web-page default URL is static at 192.168.1.200
you can then configure all the settings to your likings.

edit:

i am adding more stuff to my code from here:

to make the downloading of log files MUCH faster. i will post the new code soon

for anyone who is trying to use my code, there was a fairly large bug that was cause by my attempt to reduce the amount of RAM usage. this bug would make any page forms submitted to not process properly.

i have subsequently corrected the bug. the latest version of ALL code is in the link below, the libraries i use, the EEPROM initialize code, and the latest working code that i have.

https://www.dropbox.com/s/3e75754ivc1m0by/Arduino_2-24-2013.zip

Thanks for an update :slight_smile:

Would you be so kind and draw a diagram and list parts used,please?

i cannot really give a list other than what i did on the first page. all the enclosure supplies i either already had lying around the house and do not have part number for, or i got on e-bay by performing searches for what i wanted and combed through the results until i found what looked good. the case, the switches, the terminal blocks, the fuse blocks, i do not have part numbers for. the outlets are standard outlets you can get a home depot or something.

i do not have a diagram of how it is wired... i do all that from my head, but i feel it is fairly straightforward how the outlets should be wired to the relays. all the low voltage wiring for the sensors and the RTC are based on the respective device data sheets, and how the libraries require them to be wired.

i am suddenly experiencing some complete crash / freeze issues after about half a day =(

i previously was having issues where the watch dog would reset my program after a few days, but this is horrible.

i do know it is suggested to not use strings in programs, but it was the way i figured out how to code what i wanted. i did some searching and i have found this thread:

"String corrupts the heap and crashes" http://arduino.cc/forum/index.php/topic,115552.0.html

i am going to try using the modified string library Paul Stoffregen created to correct the memory issues related to the string library.

i wanted to know if anyone can either run the code on their own setup and see if you also crash/freeze, or help me come up with a better way to remove all need for strings. Thanks :grin:

Do you do the below with your Strings before exiting the subroutines in which the Strings were used?

String datastring = "";