AquaticTechTank.net

A forum dedicated to design and program aquatic tanks
It is currently Tue Jan 16, 2018 8:19 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Feb 03, 2014 3:37 pm 
Offline
Site Admin

Joined: Fri Nov 30, 2012 1:54 pm
Posts: 275
So I'm moving on to the RPi from this previous Plug 'n Play, project for the Arduino.
I was running into a brink wall with turning the arduino into a responsive web server. The RPi lacks PWM (except 1) and analog input so adding multiple components are needed.

I then found a project where the arduino is used in conjunction with the RPi.
http://ni-c.github.io/heimcontrol.js/

It does pretty much I want with original arduino project. I'm installing it now on my RPi but 4gB of SD card space isn't enough. I'm ordering a 16gB card now but I think a 8gB card would be sufficient.
I might need to mod it to do what I want in the end but we'll see.


Top
 Profile  
 
PostPosted: Mon Feb 03, 2014 11:33 pm 
Offline

Joined: Sat Feb 23, 2013 11:03 am
Posts: 13
Actually you can output pwm on multiple GPIO pins on the Pi - see the "pi blaster" project:
https://github.com/sarfata/pi-blaster/

Don


Top
 Profile  
 
PostPosted: Tue Feb 04, 2014 11:41 am 
Offline
Site Admin

Joined: Fri Nov 30, 2012 1:54 pm
Posts: 275
doninla wrote:
Actually you can output pwm on multiple GPIO pins on the Pi - see the "pi blaster" project:
https://github.com/sarfata/pi-blaster/

Don

Thanks. The lack of analog input made me think using an arduino with the pi is good.
I'll install the heimcontrol when I get the chance and see how if works.


Top
 Profile  
 
PostPosted: Fri Feb 07, 2014 8:27 pm 
Offline
Site Admin

Joined: Fri Nov 30, 2012 1:54 pm
Posts: 275
I started installing software onto the PI. Mongo database took 8 hours! And when I can home to initialize the mongo build, it failed.
will have to find what's wrong. This can be tedious.


Top
 Profile  
 
PostPosted: Sun Feb 09, 2014 11:44 am 
Offline
Site Admin

Joined: Fri Nov 30, 2012 1:54 pm
Posts: 275
I got heimcontrol.js server up and running. There were issues with it starting up but you have to upload the sketch into the arduino and then connect the arduino to the pi to have the server run correctly.

So, it's basically a remote control lacking time control and dependencies on other devices like sensors, like if I need a relay to turn off when a temperature sensor hits 90F. I'll try to mod the existing heimcontrol code or start fresh. We'll see.


Top
 Profile  
 
PostPosted: Thu Feb 20, 2014 11:58 am 
Offline

Joined: Sat Feb 15, 2014 12:13 pm
Posts: 2
I am also trying to make controller for my aquarium. I wanted to use just RPi to keep it simple and control everything with it. I don't have a lot of programming experience so it will be a steep learning curve if i could get it done. I am following your thread now and some on TPT as well. Looking forward to see your progress.


Top
 Profile  
 
PostPosted: Sat Feb 22, 2014 10:59 am 
Offline
Site Admin

Joined: Fri Nov 30, 2012 1:54 pm
Posts: 275
salman wrote:
I am also trying to make controller for my aquarium. I wanted to use just RPi to keep it simple and control everything with it. I don't have a lot of programming experience so it will be a steep learning curve if i could get it done. I am following your thread now and some on TPT as well. Looking forward to see your progress.



Yeah, I hear ya. It is pretty steep. I've been learning node.js, mongodb, express, and jade templating. I've looked into heimcontrol and it's too complicated to mod to work as an automated controller. I guess I'll use it as a model but will have to build this from scratch.

Things will be slow. I have to work on a mobile game.

OR

I can go back to the arduino solely, maybe with an upgrade to the mega. So much work was put into it. I can use lessons I learned from the heimcontroler to the arduino. But the arduino is such a weak web server. We'll see.



Sent from my iPad using Tapatalk HD


Top
 Profile  
 
PostPosted: Sun Feb 23, 2014 2:19 pm 
Offline

Joined: Sat Feb 23, 2013 11:03 am
Posts: 13
I'm using a Pi to control a 75 gal planted Discus tank.
see viewtopic.php?f=35&t=152

I'm using Apache and PHP for the web pages, and C++ for the control algorithm.

If you are interested let me know and I'll try to find time to post an update - i've been tinkering with it and have made some additional progress... of course, there's always more to try/do. e.g. I got the Pi's HD camera module but need to get an extension cable so it can take pictures of more than just the inside of the cabinet under the tank :-).

Don


Top
 Profile  
 
PostPosted: Mon Feb 24, 2014 11:36 pm 
Offline
Site Admin

Joined: Fri Nov 30, 2012 1:54 pm
Posts: 275
doninla wrote:
I'm using a Pi to control a 75 gal planted Discus tank.
see http://aquatictechtank.net/viewtopic.php?f=35&t=152

I'm using Apache and PHP for the web pages, and C++ for the control algorithm.


Don


Oh cool. Can you take screenshots of for web ui and how things flow? I'm actually very proficient in php but I kept reading that apache runs slow on the pi.

Sent from my iPad using Tapatalk HD


Top
 Profile  
 
PostPosted: Fri Mar 07, 2014 12:26 am 
Offline

Joined: Sat Feb 23, 2013 11:03 am
Posts: 13
some screenshots
Attachment:
File comment: chart parameters
chart1.tiff
chart1.tiff [ 150.99 KiB | Viewed 3982 times ]
Attachment:
File comment: chart - temperature, nitrate filter flow, nitrate filter ORP
chart2.tiff
chart2.tiff [ 185.35 KiB | Viewed 3982 times ]
Attachment:
File comment: allows you to change control parameters - loop times, setpoints, etc
control.tiff
control.tiff [ 205.6 KiB | Viewed 3982 times ]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Copyright 2noodles LLC 2012