0
\$\begingroup\$

I am working on a project where I would like to pulse a solenoid using an arduino with the power from both coming from 4xAA batteries.

The project is a puzzle, when you solve the puzzle, the solenoid momentarily engages to open a latch.

The puzzle side of the circuit is pretty simple, an arduino pro mini with various LED's, switches, a buzzer and shift registers.

The solenoid is controlled using an N-channel MOSFET connected to one of the arduino outputs. The entire circuit is powered by a 4xAA nimh battery pack, to power the solenoid I am using an XL6009 based step up booster obtained from ebay, it's set to about 15V at the moment, there are 2 2200uF on the output of the step up to try and supply the solenoid when it is triggered.

Everything is working well except for one part, when the puzzle is solved and the solenoid is triggered, there is just a very small movement from the solenoid, and the LED on the arduino board goes faint.

I suspect that the step up booster is pulling too much power after the solenoid is triggered and causing a voltage drop from the battery and causing the arduino to malfunction.

I tested this theory by disconnecting the input of the step up after charging the capacitors and it all worked as expected.

So my questions are: Is it likely my theory is correct? If yes, is there some way I can protect the arduino from this momentary load? I thought the capacitors would have done this.

Or am I just dreaming that I can run this circuit from 4xAA's?

Here is the solenoid part of the circuit:

Q1 is a STP16NF06 C3, C4 are 2200uF caps The lead at the top is an output pin from the arduino The power marked 18V is coming from the step up

Solenoid circuit

\$\endgroup\$
4
  • \$\begingroup\$ What if you power the arduino with its own batteries. \$\endgroup\$
    – Passerby
    Oct 10, 2015 at 3:45
  • \$\begingroup\$ Can you post the solenoid's data sheet, or a link, or tell us what kind of current it takes to make it work with 15 volts across it, please? \$\endgroup\$
    – EM Fields
    Oct 10, 2015 at 5:04
  • \$\begingroup\$ I was considering a separate set of batteries for the 2 parts, but it would be a maintenance headache. \$\endgroup\$
    – Wayne
    Oct 12, 2015 at 0:16
  • \$\begingroup\$ The solenoid is an ebay cheapy, it was rated at DC6V 0.35-0.476A , but it doesn't move at that voltage unless it has the help of gravity, i have to hit it with 18V to get the force I need. I don't have the tools to measure the current it needs sorry. Similar to this: r.ebay.com/xVe6nS \$\endgroup\$
    – Wayne
    Oct 12, 2015 at 0:21

1 Answer 1

1
\$\begingroup\$

First part of your question can be answered experimentally. Charge those capacitors to 15V, disconnect them from the 15V source, and apply them to the solenoid. If the solenoid operates acceptably then the capacitors have enough capacitance and you're good to go from that perspective. Otherwise you'll need more capacitance (or more voltage!).

Secondly, you may need some way to isolate the drain of the solenoid from the boost regulator output to prevent it from dragging down the input voltage. The easiest way to do that is to use a resistor that is high enough value to prevent overloading the source and low enough to allow the capacitors to charge in a reasonable length of time. Suppose you allow a 25mA charge current, which might be 75mA at the batteries. That would be a 600 ohm resistor, so let's try 680 as a standard value. Power dissipation should not be much but if you use a 1/2W resistor it can't get too hot even if you leave it on.

The time constant of 680\$\Omega\$ and 4400\$\mu\$F is about 3 seconds, so after about 10 seconds or so the capacitors will be fully charged.

\$\endgroup\$
6
  • 1
    \$\begingroup\$ Thanks for the answer Sphero, yes, the test solenoid I have seemed to work just fine when disconnected from the source, i'll need to try it in he final setup, but that is the easy bit i guess. Where should I be placing the resistor? in series with the step up input? \$\endgroup\$
    – Wayne
    Oct 10, 2015 at 3:31
  • \$\begingroup\$ So just add the one resistor between '+18V' on your schematic and the step-up voltage output and it should work. \$\endgroup\$ Oct 10, 2015 at 3:32
  • \$\begingroup\$ Actually, if I read your comment properly, you say between the drain of the solenoid and the step up output :) i'll give that a go and report back, thanks again! \$\endgroup\$
    – Wayne
    Oct 10, 2015 at 3:35
  • \$\begingroup\$ Yeah, edited to make it unambiguous. Tks. \$\endgroup\$ Oct 10, 2015 at 3:37
  • \$\begingroup\$ All tested and that has worked great, Does that mean there will be a constant ~25mA load from that resistor? I guess that isn't too bad. \$\endgroup\$
    – Wayne
    Oct 12, 2015 at 0:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.