DIY add on modules

Expansion modules and attachments
Post Reply
User avatar
jsclownfish
Posts: 378
Joined: Mon Oct 24, 2011 7:52 pm
Location: Saint Louis

DIY add on modules

Post 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 6001 times
photo 2.JPG
photo 2.JPG (123.79 KiB) Viewed 6001 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 6001 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
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: DIY add on modules

Post by cosmith71 »

Those are both awesome!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: DIY add on modules

Post by rimai »

I think it is awesome!!!
Roberto.
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: DIY add on modules

Post 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.
User avatar
jsclownfish
Posts: 378
Joined: Mon Oct 24, 2011 7:52 pm
Location: Saint Louis

Re: DIY add on modules

Post 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 5965 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
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: DIY add on modules

Post by Sacohen »

Thanks
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: DIY add on modules

Post by Rodasphoto »

Any more development on your talking tank?

Sent from my SCH-I535 using Tapatalk
Image
User avatar
jsclownfish
Posts: 378
Joined: Mon Oct 24, 2011 7:52 pm
Location: Saint Louis

Re: DIY add on modules

Post 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
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: DIY add on modules

Post 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/
Image
Post Reply