Utah Reefs Homepage
  New Posts New Posts RSS Feed - Any Programmers here??
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Any Programmers here??

 Post Reply Post Reply Page  123>
Author
seti007 View Drop Down
Guest
Guest
Avatar

Joined: March 19 2003
Location: Holladay
Status: Offline
Points: 1157
Post Options Post Options   Thanks (0) Thanks(0)   Quote seti007 Quote  Post ReplyReply Direct Link To This Post Topic: Any Programmers here??
    Posted: February 11 2005 at 4:13pm

Im workin gon a project to automate my tank. I have all the hardware components figured out but need to write the control software. Does anyone here have experience in Visual Basic , C or Perl. I need to write some simple routines to capture data from the serial port and process/graph it. Please let me know.
Asad

550-2960

BTW. the project does not involve X-10 components. Its a PLC based relay board and a serial temp logger.



Edited by seti007
Back to Top
Kull View Drop Down
Guest
Guest
Avatar

Joined: October 24 2003
Location: Zimbabwe
Status: Offline
Points: 594
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kull Quote  Post ReplyReply Direct Link To This Post Posted: February 11 2005 at 4:23pm

I'm a C#.Net man, I have some exp in C, but it has been awhile.  Send me some specs, and I'll what I can do.

 

"So this is what gives meaning to your life." -Unknown

Daniel in Santaquin
Back to Top
Summertop View Drop Down
Presidency
Presidency
Avatar

Joined: August 28 2003
Location: South Jordan
Status: Offline
Points: 3272
Post Options Post Options   Thanks (0) Thanks(0)   Quote Summertop Quote  Post ReplyReply Direct Link To This Post Posted: February 11 2005 at 4:45pm

seti007:   I am very fluent with Delphi.  I could write something for you.

Kull:  My company might be in the market for a good hiring a c# developer.

 

===========

Shawn Winterbottom
Back to Top
Kull View Drop Down
Guest
Guest
Avatar

Joined: October 24 2003
Location: Zimbabwe
Status: Offline
Points: 594
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kull Quote  Post ReplyReply Direct Link To This Post Posted: February 11 2005 at 4:52pm

Let me know.

I''m always in the market if you know what I mean.

"So this is what gives meaning to your life." -Unknown

Daniel in Santaquin
Back to Top
Kevin View Drop Down
Paid Member
Paid Member
Avatar

Joined: September 12 2002
Location: Pleasant Grove
Status: Offline
Points: 1044
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kevin Quote  Post ReplyReply Direct Link To This Post Posted: February 11 2005 at 5:34pm
I work doing Java and have written quite a bit in it. Done some schooling with C# and C++. Let me know if there is anything I can help with.
Back to Top
seti007 View Drop Down
Guest
Guest
Avatar

Joined: March 19 2003
Location: Holladay
Status: Offline
Points: 1157
Post Options Post Options   Thanks (0) Thanks(0)   Quote seti007 Quote  Post ReplyReply Direct Link To This Post Posted: February 13 2005 at 12:22am

Sorry for the delayed response. Ive been real busy at work. Here is the first thing I need to do. I have a temperature data logger ( here is a link http://quozl.netrek.org/ts/) that can monitor upto 4 channels with very accurate temp measurement. I am using a serial data logger software to capture the readings. I have only two temp probes hooked up to it. the captured data is stored in an ASCII text file that looks like....

68.321
69.112
68.321
69.112
68.321
69.112
68.451
69.112
68.451
  new lines are added every second with updated readings. The last digit is either a 1 or a 2 representing the temp sensor number. So one could be called "water temp" and the other "canopy temp" . The rest of the numbers are temp readings in F. I need a program that can parse through the file and plot the temp values over past duration of time. The plot needs to be saved in jpeg or something similar so it can be ftp'd to a web site.

Later I need to add a function that controls a relay bord ( 8 devices max) through a serial port in case the temp goes above or below a certain limit set by the program.

BTW. Im using a windows XP machine..



Edited by seti007
Back to Top
seti007 View Drop Down
Guest
Guest
Avatar

Joined: March 19 2003
Location: Holladay
Status: Offline
Points: 1157
Post Options Post Options   Thanks (0) Thanks(0)   Quote seti007 Quote  Post ReplyReply Direct Link To This Post Posted: February 13 2005 at 10:52am

Here is the relay board Im using  http://electronickits.com/kit/complete/elec/ck1610.htm

The software that comes with it is pretty neat and lets you control the on off timings of all components hooked up to the board. It will control upto 8 devices. It also listens for inputs on 4 opto-isolated inputs that can be used to control the behavior of the relays. e.g. the float switch for low water level in the sump goes high, this in turn causes the rodi to turn on until the float goes loww again.

The data from the relays can them be published on a website that tell you exactly which lights are on and if a high/low water level condition exists. This along with temperature can make for a pretty cool monitoring system taht can be accessed from anywhere.

Back to Top
jfinch View Drop Down
Guest
Guest
Avatar

Joined: March 06 2003
Location: Pleasant Grove
Status: Offline
Points: 7067
Post Options Post Options   Thanks (0) Thanks(0)   Quote jfinch Quote  Post ReplyReply Direct Link To This Post Posted: February 13 2005 at 12:11pm

Very interesting project.  Good luck!

Back to Top
Kevin View Drop Down
Paid Member
Paid Member
Avatar

Joined: September 12 2002
Location: Pleasant Grove
Status: Offline
Points: 1044
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kevin Quote  Post ReplyReply Direct Link To This Post Posted: February 14 2005 at 9:59am
I haven't done anything with serial ports but what you are asking for sounds fairly easy (depending on how hard it is to talk to serial ports). Then parsing the data would be a piece of cake, and plotting it in a jpeg over a period of time could be done easily by printing it using an opensource program such as JFreeChart. I would be willing to try to do it but, right now I am swamped with other programs and house things that I need to do. If no one decides to do it, PM me and I will see if I can help.
Back to Top
seti007 View Drop Down
Guest
Guest
Avatar

Joined: March 19 2003
Location: Holladay
Status: Offline
Points: 1157
Post Options Post Options   Thanks (0) Thanks(0)   Quote seti007 Quote  Post ReplyReply Direct Link To This Post Posted: February 14 2005 at 11:08am
Jfree looks promising. The trouble is parsing the ascii log file and extracting the values out of that. I think that I need a very specialized script for that. I got the idea from someone at reef central regarding using this hardware. Im also tryiing to get a hold of him. I think he has a software program written for it already. If he is willing to share, I might not have to reinvent the wheel.
Back to Top
Kevin View Drop Down
Paid Member
Paid Member
Avatar

Joined: September 12 2002
Location: Pleasant Grove
Status: Offline
Points: 1044
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kevin Quote  Post ReplyReply Direct Link To This Post Posted: February 14 2005 at 1:08pm
I was just reading up on the specs on that device, and it looks like it says that it has the software to write the info to a file directly on you harddrive(tsl11win.zip), thus no need to do any serial port stuff. All you need is a parser that will run through the file and spit out an image. This is incredibly easy to do depending on what you want. Really I doubt it would take longer than an hour or two to write a program for it if this is all it is. I would be more than happy to do it for a frag or two.

PM me if you want me to give it a go.
Back to Top
acerob View Drop Down
Guest
Guest
Avatar

Joined: April 12 2004
Location: United States
Status: Offline
Points: 424
Post Options Post Options   Thanks (0) Thanks(0)   Quote acerob Quote  Post ReplyReply Direct Link To This Post Posted: February 15 2005 at 11:16am
I didn't realize that we had so many programmers on here.  I'm a c# guy too.
Highland, UT

12g Nano

90g Reef
Back to Top
Kevin View Drop Down
Paid Member
Paid Member
Avatar

Joined: September 12 2002
Location: Pleasant Grove
Status: Offline
Points: 1044
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kevin Quote  Post ReplyReply Direct Link To This Post Posted: February 15 2005 at 6:14pm
Since were kind of on the subject, do any of you C# guys use MONO and if so do you like it compared to the microsoft alternative?
Back to Top
dnellans View Drop Down
Guest
Guest
Avatar

Joined: October 29 2003
Location: Uzbekistan
Status: Offline
Points: 842
Post Options Post Options   Thanks (0) Thanks(0)   Quote dnellans Quote  Post ReplyReply Direct Link To This Post Posted: March 17 2006 at 8:09pm
asad, did you ever get this taken care of?
Back to Top
seti007 View Drop Down
Guest
Guest
Avatar

Joined: March 19 2003
Location: Holladay
Status: Offline
Points: 1157
Post Options Post Options   Thanks (0) Thanks(0)   Quote seti007 Quote  Post ReplyReply Direct Link To This Post Posted: March 17 2006 at 11:18pm

Not really, I just kinda gave up on it. Im happy with the website I have. It lets me control/monitor the temperature among others. However, I just cant draw graphs over time. It would be nice to be able to check historic variations in temp but not a critical feature.

Dnellans, are you volunteering??

Back to Top
dnellans View Drop Down
Guest
Guest
Avatar

Joined: October 29 2003
Location: Uzbekistan
Status: Offline
Points: 842
Post Options Post Options   Thanks (0) Thanks(0)   Quote dnellans Quote  Post ReplyReply Direct Link To This Post Posted: March 18 2006 at 2:53pm
i might be willing to hack something up for you =)  are you going to be running it on a windows box or a unix/bsd based system?

can you send me the file that contains the data to be parsed?

Back to Top
seti007 View Drop Down
Guest
Guest
Avatar

Joined: March 19 2003
Location: Holladay
Status: Offline
Points: 1157
Post Options Post Options   Thanks (0) Thanks(0)   Quote seti007 Quote  Post ReplyReply Direct Link To This Post Posted: March 18 2006 at 5:55pm

ITa on a windows xp machine. The way I have it hooked up now, I dont get the file mentioned above, However, I can generate a slightly different log file. I will get that for you.

Thanks

Back to Top
Snoopy View Drop Down
Guest
Guest
Avatar

Joined: December 30 2005
Location: United States
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote Snoopy Quote  Post ReplyReply Direct Link To This Post Posted: March 18 2006 at 8:38pm
Are you looking for something like this?

http://207.155.178.109:3389/rrdtool/

This was done using perl and rrdtool. I also have my heater hooked up to x10 and my server turns it on based on the temp.
65 gal reef 40 gal sump/refg
2x250w AB MH 14k Phoenix
2x21w T5 actinic
Layton, UT

Back to Top
Shane H View Drop Down
Presidency
Presidency
Avatar

Joined: March 09 2003
Location: Brigham City
Status: Offline
Points: 7921
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shane H Quote  Post ReplyReply Direct Link To This Post Posted: March 19 2006 at 11:18am
freakin nerds ....


I would love to have a clue about this thread!
Back to Top
seti007 View Drop Down
Guest
Guest
Avatar

Joined: March 19 2003
Location: Holladay
Status: Offline
Points: 1157
Post Options Post Options   Thanks (0) Thanks(0)   Quote seti007 Quote  Post ReplyReply Direct Link To This Post Posted: March 19 2006 at 12:30pm

Snoopy, I looked at that tool but, correct me if Im wrong, Its based on Linux and getting it to work in a windows environment might be more trouble than its worth. I also looked at mrtg works for both Linux and windows. The trouble was writing a front end perl script for mrtg that takes in the temperature readings and feeds t to mrtg or something similar. BTW. my setup is similar to yours except that my server controls fans rather than a heater because my tank always tends to run on the warm side.

Shane, the end result of all the nerdy ramblings is this http://homeseer.bounceme.net:8080  login and password are both guest

Back to Top
 Post Reply Post Reply Page  123>
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2018 Web Wiz Ltd.

This page was generated in 0.391 seconds.