Electronics > Projects, Designs, and Technical Stuff

Prevent Solenoid from Sagging Voltage

(1/3) > >>

craigfoo:
I have an ATmega2560 MCU that controls a FET that controls a solenoid. Everything runs off the same 5V and when I actuate the solenoid it drags my 5V down to 4.1V and trips the Brown-Out reset circuit of the MCU and resets. I put a series resistor inline but the "punch" on the solenoid is greatly reduced because it needs that initial slug of current to get moving.

The 5V supply has more than enough current to supply all my electronics so I'm hoping there is an easy way to prevent this from happening. I can't change the Brown-Out reset threshold because the operating voltage for the MCU is 4.5V-5.5V and I don't want to keep dipping the voltage below those levels fearing that I may corrupt the EEPROM.

I also have 24V available but my solenoid is a 5V solenoid (which I need to keep) and even at a short duty cycle, I'm afraid of damaging the solenoid.

Thoughts?

free_electron:
Provide a local buffer capacitor for the cpu.
Or put a bigger buffer cap overt he main supply. Like 1000uf .

I prevent stuff like this from happening by feeding the cpu from its own power branch. You can do the following trick :
Take a shottky diode, or regular diode if you do t have a shottky, go from 5 volt to anode.
Go from carhode to your supply of the cpu.
Put a 220uf cap from cathode to ground

Whenever there is a current spike the cpu will not see it. The diode blocks the capacitor charge from flowing into the solenoid. So, the charge in the capaciotr can only be used by the cpu.

That solves the problem.

DutchGert:

--- Quote from: free_electron on October 01, 2013, 02:55:57 pm ---Provide a local buffer capacitor for the cpu.
Or put a bigger buffer cap overt he main supply. Like 1000uf .

I prevent stuff like this from happening by feeding the cpu from its own power branch. You can do the following trick :
Take a shottky diode, or regular diode if you do t have a shottky, go from 5 volt to anode.
Go from carhode to your supply of the cpu.
Put a 220uf cap from cathode to ground

Whenever there is a current spike the cpu will not see it. The diode blocks the capacitor charge from flowing into the solenoid. So, the charge in the capaciotr can only be used by the cpu.

That solves the problem.

--- End quote ---

Very simple but very nice

Poe:

--- Quote from: craigfoo on October 01, 2013, 02:31:20 pm ---I have an ATmega2560 MCU that controls a FET that controls a solenoid. Everything runs off the same 5V and when I actuate the solenoid it drags my 5V down to 4.1V and trips the Brown-Out reset circuit of the MCU and resets. I put a series resistor inline but the "punch" on the solenoid is greatly reduced because it needs that initial slug of current to get moving.

The 5V supply has more than enough current to supply all my electronics so I'm hoping there is an easy way to prevent this from happening. I can't change the Brown-Out reset threshold because the operating voltage for the MCU is 4.5V-5.5V and I don't want to keep dipping the voltage below those levels fearing that I may corrupt the EEPROM.

I also have 24V available but my solenoid is a 5V solenoid (which I need to keep) and even at a short duty cycle, I'm afraid of damaging the solenoid.

Thoughts?

--- End quote ---

A 5V solenoid should not 'arc' when fed with 24V.  The enamel is likely rated at >40V.  The only way to damage it is excessive heat dissipation.  Maybe just power the solenoid from the 24V source with a low enough duty cycle?  That would reduce the 5V regulator and caps requirements... and solenoid speed would slightly improve.  No additional components needed either.

Just some questions:
Where did you add the resistor?  How much energy does your FET take to turn on?  If you are directly connecting a huge gate capacitance to an IO line, the processor might be reseting due to that 'short'.  Have you looked at it on the scope to see where in the solenoid's current ramp it resets?  If it resets before the solenoid gets halfway up its current ramp then that's likely a good sign it's not the solenoid current pull.  Does your layout allow for an efficient exchange of this energy from bypass cap to FET gate?

Isolating the uP's supply with a diode and it's own supply cap is also a good idea I have used many times.  Especially if that's easier or your worried about the software hanging up and frying your solenoid.

craigfoo:
Great answers! Thanks! Unfortunately I'm working with an OTS board and I'm adding all my "fixes" to the connector that interfaces with the solenoid. The uP with diode and cap solution sounds awesome and I wish there was an elegant way to do it. Whatever fix works, I have to repeat it on 120 boards so white wiring each board isn't really feasible.

I've added 3000uF to the 5V right at the connector for the solenoid and I still get my dip in voltage. I'm looking at the dip on the scope and it drops down to 4.2V. I know the FET is ok because the control works fine without the solenoid attached.

Maybe I'll see if I can burn up a solenoid with 24V  ;D

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod