Anyone doing an arduino controller?

I'm order my stuffs now. Hopefully it's gonna be here soon so I can start. BTW, I need help on how to wire the RTC using the proto shield and DS1307 chip! I can't find any link to show me this. :(
 
Did you buy a bare DS1307 or one of the breakout boards? If you got a breakout board, you just hook up the power, gnd, scl, and sda pins to the Arduino.

If you have a bare chip, you'll need a crystal, a decoupling cap, and a battery for backup. There's an example circuit in the datasheet for the DS1307 you can follow to wire it up.
 
I order the bare ds1307 chip, crystal and the battery. They are not here yet so I don't know if they come with the instruction or data-sheet on how to wire it up.
 
It won't come with a datasheet but you can get it online:

http://datasheets.maxim-ic.com/en/ds/DS1307.pdf

There's a typical circuit on the first page. There's also a recommended crystal layout on page 7, but you won't really be able to address that (the shielding) on a protoshield. Just keep the crystal RIGHT next to the IC and don't put anything else near it.

Basically, you just connect the crystal and battery as shown in the datasheet. Connect a .1uF decoupling cap from the Vcc pin to GND. Connect Vcc to the Arduino's 5v, and the IC's GND to the Arduino's GND.

Then, connect the SDA and SCL lines. They are Analog pins 4 and 5, respectively. You'll need pullup resistors, too. Connect a resistor from each of those two pins to +5v. 1k8 or 2k2 resistors are fine.

I've heard there's a new "time" library that abstracts all of the communication with the DS1307 but I've never used it. If you want the raw code lemme know and I'll post it.
 
I am very interested in getting involved in an Arduino project. With as much power and flexibility of the Arduino it's about time we get a nice DIY controller going.
 
Here is a link to my Arduino Build:

http://sites.google.com/site/richardorme1979/

Im just in the stage of building the first working prototype and getting it all put into its case. As soon as i have some built items, ill post the pics.

My website was setup to allow people with very little reefing or electronics knowledge to be able to follow the process.

Enjoy!

VR
 
Well, seeing as this is my first post here I'll say hi to everyone.

I noticed this thread in my referrers on my site (diy-labs dot com).

I took a bit of time off over the holidays and haven't been actively working on the project; however, I'm back at it again and open to suggestions.

As it stands right now basic control is working (temp, lights, pumps, ph ect.). I'm currently working on integrating wifi (cause I'm lazy) and once that's done more code is going in.

Anyways, all my hardware is pretty much done and it's all coding right now so if anyone has suggestions let me know.

Although I am selling boards this project is released open source (eagle + code is available on the site).

I look forward to hearing what you guys have to say.
 
Well, seeing as this is my first post here I'll say hi to everyone.

I noticed this thread in my referrers on my site (diy-labs dot com).

I took a bit of time off over the holidays and haven't been actively working on the project; however, I'm back at it again and open to suggestions.

As it stands right now basic control is working (temp, lights, pumps, ph ect.). I'm currently working on integrating wifi (cause I'm lazy) and once that's done more code is going in.

Anyways, all my hardware is pretty much done and it's all coding right now so if anyone has suggestions let me know.

Although I am selling boards this project is released open source (eagle + code is available on the site).

I look forward to hearing what you guys have to say.

Welcome to RC! The more people we have like you collaborating on a controller, the faster there will be a design people can replicate and build upon.
 
just curious if your software for changing temps if you have to do it in your code or can it be changed on the lcd with the key pad, i could do another thread of assembly off all the different componets when they arrive since i ordered all of them from DIY-LABS.com along with the lcd and keypad from ebay with a few temp sensors. i found reading the reef projects site then the diy-projects really made sense on how they would all be interegrated neither site had all the info on how to wire everything up or where to get the lcd, keypads and temp sensors but if you read both then they made sense.
 
Hi Drake1,

The keypad can be used to change the temp. Press # which gives you a config menu. Right now you can set: time, temp, lights on/off and configure PH.

Yeah, I'm not great at documentation. I'm going to work on it though because I've got a couple great new resources. We're going to be having a cheap lcd controller (10ish)... a guy on twitter helped me with that. It will be released open source in about a week (we need to finish testing).

The cool thing I wanted to let you know is I can now set the temperature wirelessly (well, wifi, ethernet, or serial will work). Not 100% on the ethernet because I don't know if it uses the serial port or not, but if it does it will work out of the box.

The other thing I'm working on is the ability to 'turn off' features if you don't want to use them. Most notably things like ph and orp.
 
It won't come with a datasheet but you can get it online:

http://datasheets.maxim-ic.com/en/ds/DS1307.pdf

There's a typical circuit on the first page. There's also a recommended crystal layout on page 7, but you won't really be able to address that (the shielding) on a protoshield. Just keep the crystal RIGHT next to the IC and don't put anything else near it.

Basically, you just connect the crystal and battery as shown in the datasheet. Connect a .1uF decoupling cap from the Vcc pin to GND. Connect Vcc to the Arduino's 5v, and the IC's GND to the Arduino's GND.

Then, connect the SDA and SCL lines. They are Analog pins 4 and 5, respectively. You'll need pullup resistors, too. Connect a resistor from each of those two pins to +5v. 1k8 or 2k2 resistors are fine.

I've heard there's a new "time" library that abstracts all of the communication with the DS1307 but I've never used it. If you want the raw code lemme know and I'll post it.

Hi der_wille_zur_macht,

For the 1K8 and 2k2 resistors, what should i get 1/8w, 1/4w or 1w?
Thanks.
 
Why not

Why not

Just a thought, but why dont you use a slc5/03 and an alan bradley monochrome screen. You could program a plc to do exactly what you want. You would have relayed outputs, inputs for all devices as well as rtd for temp, salinity probes, o2 sensors....
 
Hi der_wille_zur_macht,

For the 1K8 and 2k2 resistors, what should i get 1/8w, 1/4w or 1w?
Thanks.

Doesn't really matter. I'd probably get the 1/4w out of those options, unless it was really expensive. BTW you need 1k8 OR 2k2, not both. Just one resistor on SDA and one on SCL.


Also for the crystal....I should go with 6pF or 12.5pFon digi-key?
Thanks!

Check the datasheet for the DS1307 you're using to be sure, it should be listed there. For every brand of DS1307 I've used, it's been 12.5pF.

Just a thought, but why dont you use a slc5/03 and an alan bradley monochrome screen.

'Cause we likes the Arduino. :lol: As with anything in life, there are a million ways to skin this cat.
 
For I2C stuff 1/4 watt resistors are fine. You may want to look at 4k7 as well and you could use those if they're cheaper.

der_wille_zur_macht is right and the ds1307's use 12.5pf crystals.
 
Agreed, anything between 1k and 10k is probably fine. I stick towards the lower end because it means a stronger pullup. We're not really in the danger range for current on an Arduino pin, so there's no worries about it being TOO strong.
 
LOL, that's certainly true.

On another note I got wifi hooked up and working. I can wirelessly program and control a couple things now (lights on, and temp). I'm wondering if there's an interest for this to be developed further? My ultimate goal is to be able to control on my iphone and have it send warning emails if something goes awry.

Let me know.
 
Back
Top