Author Topic: Using a solenoid  (Read 5536 times)

0 Members and 1 Guest are viewing this topic.

Offline MyElectronsFellOutTopic starter

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Using a solenoid
« on: August 28, 2015, 02:11:14 pm »
Hey folks. Easy question today. I'm using a solenoid valve in a design and I have attached the circuit below.  Looking for clarification for working out the max current through the solenoid so I can calculate the dropper resistor value. But the only info I have is that it's 12V 0.5w rated.

I'm using a mosfet to trigger the solenoid as required so current should be 0 until triggered correct? And the voltage is determined by the RC curve created by the dropper resistor and capacitors?
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2550
  • Country: us
Re: Using a solenoid
« Reply #1 on: August 28, 2015, 02:26:58 pm »
Power = Voltage * Current
I = P / V = 0.5W / 12 V = 42 mA

R18 = 72 ohms.  I'd start with 100 ohms as an easy to find value.  The coil probably has a lower minimum voltage.  Standard values would be 68 or 75.
Sorry, I overlooked your 2 diode drops and the transistor drop.   You probably don't need the resistor.
« Last Edit: August 28, 2015, 02:35:00 pm by MarkF »
 

Offline MyElectronsFellOutTopic starter

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Re: Using a solenoid
« Reply #2 on: August 28, 2015, 03:09:21 pm »
Power = Voltage * Current
I = P / V = 0.5W / 12 V = 42 mA

R18 = 72 ohms.  I'd start with 100 ohms as an easy to find value.  The coil probably has a lower minimum voltage.  Standard values would be 68 or 75.
Sorry, I overlooked your 2 diode drops and the transistor drop.   You probably don't need the resistor.

Ah forgot about the mosfet drop. But the Rds On will be very low, in he milli ohm range perhaps so the voltage across the drain source is going to be tiny.
 

Offline LatvianOnJuice

  • Contributor
  • Posts: 13
Re: Using a solenoid
« Reply #3 on: August 28, 2015, 10:38:45 pm »
The 100 ohm initial value is reasonable. To me it seems more like a 50-70 ohm value, but just start with the 100 and drop down by 10 (a potentiometer would be very uselful.)
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: Using a solenoid
« Reply #4 on: August 28, 2015, 11:55:28 pm »
Simply simulation and experience (I've was driving huge car alternator in custom output power limiter driver) shows that this current will depend on many factors among other PWM duty cycle and frequency related to solenoid inductance, so I do not know why are you trying to play with resistors when you have mosfet?  ???



By adjusting PWM frequency and duty cycle you can easy adjust this solenoid curent and stabilize it like I've already did in alternator for example, to be able limit output power based on custom RPM sensor inserted into this thing and disabled oryginal voltage regulator  8)


Remember even simple sim, with a litle bit theory behind can save your time and help learn how electronics circuits can work when you slow down simulation speed and manualy play with switches, else sooner or later something will  :-BROKE

BTW: Your solenoid should have specified coil resistance-it was a few Ohms in the case of my alternator "solenoid", so short-thrugth current was a few Amps :popcorn:
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline MyElectronsFellOutTopic starter

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Re: Using a solenoid
« Reply #5 on: August 29, 2015, 07:53:28 pm »
I should of mentioned im using a 3v3 micro output pin to toggle the mosfet. The datasheet didnt specify a resistance value for the solenoid which is annoying.
 

Offline calexanian

  • Super Contributor
  • ***
  • Posts: 1881
  • Country: us
    • Alex-Tronix
Re: Using a solenoid
« Reply #6 on: August 30, 2015, 07:05:10 pm »
I started thinking about all sorts of things to say when the thought hit me. Why not just use a 7812 regulator in the supply? then all you need in your free wheeling diode and you are good to go. btw 1N4148 is not suitable for any appreciable current. 1N4937 would be a far better choice.
Charles Alexanian
Alex-Tronix Control Systems
 

Offline MyElectronsFellOutTopic starter

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Re: Using a solenoid
« Reply #7 on: August 30, 2015, 11:06:04 pm »
I will check that out, thanks.
 

Online Someone

  • Super Contributor
  • ***
  • Posts: 4531
  • Country: au
    • send complaints here
Re: Using a solenoid
« Reply #8 on: August 31, 2015, 02:44:24 am »
The 1N4148 is fine for the 42mA or so that is expected in steady state, the dropping resistor will provide very simple and soft protection during turn on/off.

For the OP, if the relay is rated for 0.5W at 12V then you calculate the current from P=VI
With this current you can then estimate the dropping resistor after subtracting the diode and switch (fet) drops from the supply voltage

In the real world the relay will use more current to turn on than it does when it is being held, this is a good experiment that you could examine with an oscilloscope or if you do not have one then try different resistor values until it will not turn on reliably, then you can measure the voltage across the resistor when it will not turn on and estimate the current needed to first close the relay. They current needed to keep the relay closed is of course much easier to measure.
« Last Edit: September 01, 2015, 01:40:30 am by Someone »
 

Offline Moriniman

  • Contributor
  • Posts: 11
  • Country: gb
Re: Using a solenoid
« Reply #9 on: August 31, 2015, 07:56:51 am »
When the mosfet Q2 is off, the parallel combination of C33 and C34 is going to charge via R18 to the +15v rail (minus the diode drops of D5 & 6).

When you turn Q2 on, the capacitors will be accross the solenoid coil. That means the coil is going to see more than its rated voltage and draw more than it's rated current until the capacitors discharge. That may be a good thing, decreasing the turn on time for the solenoid. The resistor R18 can then be sized for the holding current of the solenoid.

I'd more usually implement this circuit with the capacitor in parallel with R18, so that their charging current gave the pull-in pulse.

http://electronicdesign.com/analog/what-s-all-solenoid-driver-stuff-anyhow

The flywheel diode by the way slows down the turn off of the solenoid. Back in my electric vehicle racing days (Porsche 914) this could be a real issue when breaking several hundred amps. The trick is to use a zenner as the flywheel diode.  Generally rated at the supply rail value, it allows the magnetic field to collapse much faster initially, then limits the BEMF to a safe level.
 

Offline MyElectronsFellOutTopic starter

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Re: Using a solenoid
« Reply #10 on: August 31, 2015, 05:18:31 pm »
I will play around with the circuit and scope it once I get my hands on one of the solenoids I'm planning to use. That's also a good tip about the flyback diode. I was concerned that the P=IV formula was somehow a bit too easy to correct lol.
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: Using a solenoid
« Reply #11 on: August 31, 2015, 10:08:58 pm »
7812 gives ~1A with infinite heat sink...
12V @ 500mA = 6W, a very hot 7812...
I'd recommend PWM drive mentioned above.
Not sure about regulation margin with 15V supply.
Don't ask a question if you aren't willing to listen to the answer.
 

Offline calexanian

  • Super Contributor
  • ***
  • Posts: 1881
  • Country: us
    • Alex-Tronix
Re: Using a solenoid
« Reply #12 on: September 01, 2015, 05:33:57 am »
7812 gives ~1A with infinite heat sink...
12V @ 500mA = 6W, a very hot 7812...
I'd recommend PWM drive mentioned above.
Not sure about regulation margin with 15V supply.

Don't forget. It will only be dropping (Loose number here) 3 volts at .5 amp therefore 1.5 watts. Quite suitable with a reasonable heat sink. I do like your thinking about a switching regulator.  I have a feeling he is looking for minimum component implementation though.
Charles Alexanian
Alex-Tronix Control Systems
 

Offline MyElectronsFellOutTopic starter

  • Regular Contributor
  • *
  • Posts: 70
  • Country: gb
Re: Using a solenoid
« Reply #13 on: September 01, 2015, 06:49:46 am »
I'm using a 15V 7815 regulator as I'm implementing a current source circuit, and I don't want to use a 3V solenoid on the 3V rail (i've had issues with rail voltage shifting due to solenoid activation in the past), hence the diode drops. The solenoid has to be controlled by software and will be switching on and off a constant intervals. The ON period will be in the hundreds of milli seconds range.

Also, will the inductance of the solenoid depend on the current / voltage applied?
« Last Edit: September 01, 2015, 08:04:13 am by MyElectronsFellOut »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf