How do run a 120Vac water pump using Arduino starter kit supplies

arduinorelaytransistors

I'm very new to EE so forgive the simple question. I have a small water pump 120Vac that I want to turn on and off via my arduino. I have the arduino starter kit as well as a 12v relays.

I've tried to get the relay working and can't even seem to do that. This is the instructable, which I'm trying to do.

I understand that I have a 12v relay, which means I need a way to send more current through to the relay than the arduino 5v can provide. so I tried the smaller transistors (bc5478) in the arduino starter kit, along with one diode that also came with the kit. I thought the transistor had enough juice to activate the relay, but when I put a multimeter to it, it switches between 7 and 9v.

I should also mention I have a 9v battery connected to the relay which should power the pump.

Conceptually, am I doing anything wrong? Maybe I just hooked it up incorrectly?

Best Answer

The problem with the relays isn't that of current, but of voltage. You will need to supply 12V to the coil of those relays in order to get it to energize.

One option is to find relays that only require either 5V or 9V instead, so that it can be either powered from the Arduino's supply or from a 9V battery. You will still need the transistor if using 5V relays, since at that point the coil will need more current than the Arduino output driver can provide.

Another option is to draw power from the incoming AC line and put it through a regulator to get the 12V required to operate the relay. Additionally, a 5V regulator will get you the power you need for the Arduino so that the entire apparatus is powered off the line.