Hi,
Let me start by saying that I have very little experience with the Arduino, electronics and programming, but am starting to learn.
I bought an Arduino (well, actually an Atmega168 Freeduino) quite some time ago, to make a controller for a LED strawberry growing test setup. I never got further than blinking a single LED on a digital pin, because I didn't have the time to learn all those new things back then.
I have time now, and new ideas, and I'm very eager to learn more and finally start using my Arduino! I plan to do this by gradually learning and adding new things to my Arduino, to monitor and control my backyard pond system.
I want to start by controlling the pump in my pond, which is a 230VAC 220W bilge pump. It is currently on a mechanical timer, 15 minutes on and 45 minutes off, but I want to be able to put it on a 5/55 minutes on/off cycle.
I am planning to do this by attaching a solid state relay to a digital pin of my Arduino. I read a bit about SSR's, and decided I wanted to keep it as simple as possible by using an SSR that can be controlled directly with 5 VDC and low current. I came across a Crydom D2425 which I can get qutie cheap ($10). It is however a bit oversized (rated 25A, I only need 1A).
Crydom D2425 Solid State Relay
Control voltage: 3-32 VDC
Typical input current: 3.4-20 mA
Output voltage: 24-280 VAC
Output current: max 25 A
I read on this forum that I can just put such an SSR directly on any digital pin, and that I should use a 220 Ohm resistor to be safe. Is the resistor to prevent thermal runaway, like with LEDs? I believe I should connect the resistor in series on the 5V side, but wouldn't that leave only 5-(220*0,020)= 0,4 V on the relay - can anyone help me out here?
I also plan to add two switches to be able to manually turn the pump on (even if the Arduino is off) or off, see picture.
Will this setup work, and do I need any additional components? Do I need a snubber circuit (because of the inductive load)? Thanks in advance for any help!
Things I'd like to add later on:
- A couple of DS18B20 1-wire thermometers
- 16*2 LCD-display using a PCF8574A?
- Fish feeding machine
- Some sort of water level sensor
- Water sensor in siphon overflow
- Constantly looping PHP script to run on a hacked NAS webserver, to monitor and control stuff :o
- ....