[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4708: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4710: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4711: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4712: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
AquaticTechTank.net • View topic - Raspberry PI

AquaticTechTank.net

A forum dedicated to design and program aquatic tanks
It is currently Sun Dec 22, 2024 6:12 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Raspberry PI
PostPosted: Thu Jan 24, 2013 12:14 pm 
Offline
Site Admin

Joined: Fri Nov 30, 2012 1:54 pm
Posts: 279
http://www.raspberrypi.org

I don't know too much about this MC, but it looks like a power house for media connectivity with a lot of RAM compared to the Arduino. The thing what's lacking for me is support: code, examples, and tutorials. I'm on OS X so not sure how that works out.


Top
 Profile  
 
 Post subject: Re: Raspberry PI
PostPosted: Sun Jan 27, 2013 12:30 am 
Offline

Joined: Sun Jan 27, 2013 12:03 am
Posts: 5
It is very powerful. I have some friends that are using it in a startup company that builds remote controlled submarines (cool project BTW PM me if anyone wants to know about it as I don't want to derail the post). It's cheap and powerful, but like you said it's lacking code, examples, and tutorials. Part of this is because it hasn't been widely available until the last few months.

The bigger issue is that many wouldn't really count it as a MC, its a full on computer. That opens a lot of doors and then closes others. This means you have to load an OS on it, and then write and compile your programs for that OS with all the libraries and extra support you need for any attached hardware. Not to say it's impossible, but it has a much higher barrier to entry compared to arduino, PIC, or the TI Lanuchpad.

The little I have played with it, you have to load an OS (usually linux/unix variation) onto an SD Card. From there you have console access through HDMI and USB keyboard, or if you enable it you have remote shell access over the network. I haven't gotten past that part. I thought about picking one up just to have another nerdy thing to play around with when I'm bored, someday.


Top
 Profile  
 
 Post subject: Re: Raspberry PI
PostPosted: Sun Jan 27, 2013 10:38 am 
Offline
Site Admin

Joined: Fri Nov 30, 2012 1:54 pm
Posts: 279
Thanks for some info on this. It wasn't an easy find.


Top
 Profile  
 
 Post subject: Re: Raspberry PI
PostPosted: Wed Feb 13, 2013 9:57 pm 
Offline
Site Admin

Joined: Fri Nov 30, 2012 1:54 pm
Posts: 279
The PI made the news
http://news.yahoo.com/blogs/this-could- ... 27303.html


Top
 Profile  
 
 Post subject: Re: Raspberry PI
PostPosted: Sat Feb 23, 2013 11:31 am 
Offline

Joined: Sat Feb 23, 2013 11:03 am
Posts: 13
Hi,

I'm new to this forum, just found it.

I'm using a Raspberry Pi to monitor/control a 75 gal freshwater planted Discus tank and in particular an Aquamedic NR Blue nitrate reactor. Looking at the Adafruit Peristaltic pump to control the flow into the reactor instead of the current solenoid-based solution. Concerned about noise, reliability, and ability to withstand pressure (the reactor is underneath the tank, hooked up to the output of a canister filter with the valve on the input to the filter).

If anyone is interested or has experience with this device, let me know and I'll post more details.


Top
 Profile  
 
 Post subject: Re: Raspberry PI
PostPosted: Sat Feb 23, 2013 1:25 pm 
Offline
Site Admin

Joined: Fri Nov 30, 2012 1:54 pm
Posts: 279


Top
 Profile  
 
 Post subject: Re: Raspberry PI
PostPosted: Sat Feb 23, 2013 4:20 pm 
Offline

Joined: Sat Feb 23, 2013 11:03 am
Posts: 13
OK - here goes...

- Raspberry Pi revision B
- Raspbian OS (latest - i keep this updated)
- 8Gb SD card
- USB wifi dongle
- ads1115 i2c 4-channel ADC (for temperature probes)
- 2 Adafruit thermistors (water and filter temp)
- 2 Jeelabs relay boards for controlling ORP valve, lights x 2
- Adafruit 16x2 I2C LCD backpack with 5 buttons
- Aquamedic ORP probe (in NR Blue nitrate reactor)
- Atlas Scientific ORP board (serial interface)
- "wiringPi" library to handle the I/O on the Pi
- Apache to run the web server
- PHP and HTML for the web pages
- MySQL 5.5 for the database to hold control data and measurements
- pchart for charting the data
- libesmtp for sending emails
- various miscellaneous code I've found and adapted to read the ADC, talk to the serial port, LCD, etc.

I've written the control code in C since that's the language I'm most comfortable with (but rusty :-)), and I'm using PHP for the web pages. There is a bunch of Python code for the Pi but that language gives me the creeps, so I've stayed away :-).

I've currently got a control loop that runs every 5 seconds, reads the inputs, checks for exceeded limits, and implements the control algorithm for the filter. It averages the readings over 10 minutes and records the data in the database. This loop also re-reads the control info (ORP setpoints, loop times, min/max alarms, etc) from the database every 10 minutes. If limits are exceeded, it sends me an email (but not more than once per hour per condition).

There are curently 3 sets of web pages:
- one to allow me to specify a charting interval (last N hours or start/stop date/time) and then shows a chart with the temperature, valve on/off data, and ORP level over time.
- one to allow me to update any of the control parameters
- one to allow me to turn off/on either of the two sets of lights (these are otherwise on a schedule using the Linux "cron" facility) .

I have a Mac and installed an AFP file service on the Pi so i can attach the Pi's file system to my Mac, and I use the Mac's XCode environment to edit. Then i SSH into the Pi to compile and run.

That pretty much covers it...

I just got the LCD going so I'll integrate that shortly to display the current metrics. There are some buttons on it as well but I'm not sure what I'll use them for yet :-). I'm sure I'll think of something...

Right now everything is on a big breadboard sitting under my aquarium - at some point I'll solder everything to a more permanent board.

Oh - the aquarium has 7 4" Discus, some dwarf Plecos, 9 Nerite snails, a few Amano shrimp, and is planted. This whole project is a result of my desire to minimize water changes by using the Nitrate reactor. I don't want to start a flame war here about that, so lets just leave it at that. But I needed a system to control the flow into the Nitrate reactor based on the ORP level within, and commercial units cost about $500 by the time you are done with the controller, pump, valves, etc. Thus the DIY effort... plus my wife said I needed a hobby.


regards
Don


Attachments:
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 136: preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 138: array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_reimg.php on line 141: Invalid argument supplied for foreach()
File comment: 75 Gal planted tank with 7 4" Discus
DiscusTankSmall.jpg
DiscusTankSmall.jpg [ 202.83 KiB | Viewed 8791 times ]
Top
 Profile  
 
 Post subject: Re: Raspberry PI
PostPosted: Sat Feb 23, 2013 7:55 pm 
Offline
Site Admin

Joined: Fri Nov 30, 2012 1:54 pm
Posts: 279
Very nice. I'm a Mac guy too. Can I use objective C to code the PI?


Top
 Profile  
 
 Post subject: Re: Raspberry PI
PostPosted: Sun Feb 24, 2013 1:22 am 
Offline

Joined: Sat Feb 23, 2013 11:03 am
Posts: 13
Not sure - you'd either need an Objective C compiler that runs on Linux, or a way to compile the code on the Mac to run on an ARM processor...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

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