Page 1 of 1

DIY add on modules

Posted: Sun Mar 30, 2014 9:06 pm
by jsclownfish
I finally got around to working on a few RA related projects and I thought I would share them here if anyone is interested in building something similar or has suggestions.

The first is this slick little LED warning light system. I made this and connect it to a IO module. I was going to install it directly in the stand, but I thought this was easier and I can move it to another tank later. It was really easy to build, just a red, yellow and green LED with some resistors to keep the brightness down. It's handy that I can see it across the room and I get a little extra warning with the 'caution' yellow option. I have it signal temp pH, water level warnings. It is on yellow in these pics as it was topping off the water. :geek:
photo 1.JPG
photo 1.JPG (101.15 KiB) Viewed 6542 times
photo 2.JPG
photo 2.JPG (123.79 KiB) Viewed 6542 times
.

The second is the voice recognition module I started awhile ago. http://forum.reefangel.com/viewtopic.php?f=3&t=2521I squeezed it all into a project box and use a PIR to detect when someone is nearby and the module should be listening. The blue LED indicates it is listening. Here is what it looks like now.
photo (5).JPG
photo (5).JPG (105.13 KiB) Viewed 6542 times
It can control the lights, powerheads, feeder, water change, as well as set back to auto. :ugeek: It's fun, but it is really sensitive to cadence when you speak and it struggles when the house is noisy. I suppose I could probably make the code better, but I'm still trying to learn what it can do. Here is a video: https://www.youtube.com/watch?v=nV0dgtgD1Vo
Comments and suggestions alwyas welcome. :)
Jon

Re: DIY add on modules

Posted: Mon Mar 31, 2014 5:16 am
by cosmith71
Those are both awesome!

Re: DIY add on modules

Posted: Mon Mar 31, 2014 8:06 am
by rimai
I think it is awesome!!!

Re: DIY add on modules

Posted: Mon Mar 31, 2014 10:01 am
by Sacohen
I've been following the "Listening Reef" thread for a while. Great job on it.
I was thinking about something similar to the LED's but never got around to it.
I'd like some more info on how your LED warning system is set up.

Re: DIY add on modules

Posted: Mon Mar 31, 2014 8:07 pm
by jsclownfish
Here is a picture of the inside of the LED module. It is pretty simple really, just 3 LEDs (each with a resistor under the shrink tubing) and the grounds are tied together. It's kind of handy that the phone cord has 4 wires and the colors match. :)
photo.JPG
photo.JPG (119.95 KiB) Viewed 6506 times
I used this bit of code to send signals to the IO module. My IO code is pretty custom, but I'm sure it could work using the standard IO coding as well.

Code: Select all

void ErrorCheckLED()
{
RedLED = 0;
static WiFiAlert redAlert;
if (ReefAngel.Params.Temp[T1_PROBE]>820) 
{
  RedLED=1;
  redAlert.Send("Check Tank, Temp>82");
}
if (ReefAngel.Params.PH>840)
{ 
  RedLED=1;
  redAlert.Send("Check Tank, pH>8.4");
}
if (ReefAngel.LowATO.IsActive()) 
{
  RedLED=1;
  redAlert.Send("Check Tank, LowATO!");
}

YellowLED=0;
if (RedLED == 0)
{
if (ReefAngel.Params.Temp[T1_PROBE]>810 && ReefAngel.Params.Temp[T1_PROBE]<821) YellowLED=1;
if (ReefAngel.Params.PH>820 && ReefAngel.Params.PH>841) YellowLED=1;
//if (!ReefAngel.HighATO.IsActive()) YellowLED=1;
if (ReefAngel.WaterLevel.GetLevel()<80) YellowLED=1;
}

GreenLED=0;
if (RedLED == 0 && YellowLED == 0) GreenLED=1;
else GreenLED=0;

} 
Hopefully that helps,
Jon

Re: DIY add on modules

Posted: Tue Apr 01, 2014 3:31 am
by Sacohen
Thanks

Re: DIY add on modules

Posted: Sat Apr 05, 2014 4:38 pm
by Rodasphoto
Any more development on your talking tank?

Sent from my SCH-I535 using Tapatalk

Re: DIY add on modules

Posted: Sun Apr 06, 2014 12:02 pm
by jsclownfish
Well, not exactly sure what you're asking. As it is now, the sound module plays little snippets I've recorded on the chip when folks walk by or in response to signals from the RA. The listening module will also play a limited amount of sound bytes as part of the voice recognition response. Both however are fairly limited in space for sound info. The sound module should be able to actually report things like temp (or any other number, http://www.spikenzielabs.com/SpikenzieL ... hield.html), but since the sound memory space is pretty limited I replaced the space used for numbers with my sound bytes.

I just assembled a Wave Shield board https://learn.adafruit.com/adafruit-wav ... or-arduino and I may switch it over to this as it can carry a much larger assortment of sounds to call on. Im hoping I can then keep my fun sound bytes and the numbers as well.

-Jon

Re: DIY add on modules

Posted: Tue Apr 08, 2014 4:17 am
by Rodasphoto
jsclownfish wrote:Well, not exactly sure what you're asking. As it is now, the sound module plays little snippets I've recorded on the chip when folks walk by or in response to signals from the RA. The listening module will also play a limited amount of sound bytes as part of the voice recognition response. Both however are fairly limited in space for sound info. The sound module should be able to actually report things like temp (or any other number, http://www.spikenzielabs.com/SpikenzieL ... hield.html), but since the sound memory space is pretty limited I replaced the space used for numbers with my sound bytes.

I just assembled a Wave Shield board https://learn.adafruit.com/adafruit-wav ... or-arduino and I may switch it over to this as it can carry a much larger assortment of sounds to call on. Im hoping I can then keep my fun sound bytes and the numbers as well.

-Jon
I was wondering if you incorporated a new sounds or features. Please keep us updated if you can keep both sound bytes and numbers. I was hoping to in the future add what you have done and maybe some thunder sounds to compliment lighting from lights.

I just came upon this and thought you might be interested in it
http://jasperproject.github.io/