# Keeping a consistent supply voltage while driving a solenoid from battery

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

• What if you power the arduino with its own batteries. – Passerby Oct 10 '15 at 3:45
• 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? – EM Fields Oct 10 '15 at 5:04
• I was considering a separate set of batteries for the 2 parts, but it would be a maintenance headache. – Wayne Oct 12 '15 at 0:16
• 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 – Wayne Oct 12 '15 at 0:21

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.