2
\$\begingroup\$

I've a 6-12V dc latching solenoid, which needs 60ms of pulse to set it to on/off.

I'll be using a microcontroller to generate the pulse. I've following questions.

  1. What if the generated pulse is longer (say 10x of the specified 60 ms) Will it damage solenoid? Will it still correctly turn on/off.?
  2. I was thinking of using pwm(pulse wave modulation) technique to generate pulse. So I was thinking of using 60% duty cycle for time period of 100ms. Then after sleeping for 100ms, I would disable pwm. So there is always potential of two pulses instead of one, (or more) going out. Am I thinking on correct lines?

Adding specifications:

enter image description here

\$\endgroup\$
12
  • \$\begingroup\$ Do you have a datasheet for the solenoid? What is the reason you cannot generate a shorter pulse? \$\endgroup\$ Commented Mar 7, 2019 at 16:42
  • \$\begingroup\$ All I know is its rated 9ohm, 6-12v and needs 60ms. I can generate shorter pulse, but I want to understand what may go wrong. I would like to manually test this out using batteries by hand, and I just want to be sure if I keep it connected for a second or so, I don't burn the coil. \$\endgroup\$
    – Ouroboros
    Commented Mar 7, 2019 at 16:49
  • 3
    \$\begingroup\$ If 60 ms is the minimum pulse width, there should also be a maximum specified if there is a danger of overheating with longer pulses. \$\endgroup\$ Commented Mar 7, 2019 at 16:49
  • \$\begingroup\$ I see, I didn't know there is max specified pulse duration. What happens if I keep applying 60ms pulse every say 100ms? Will it burn the coil? \$\endgroup\$
    – Ouroboros
    Commented Mar 7, 2019 at 16:53
  • \$\begingroup\$ I was looking at one recently, not a latching version but one used to unlock a cabinet door. It had a maximum activation time, after which one risked burning up the coil. 800mS. A PWM signal is overkill to create one 60mS pulse. Your microcontroller shoud be able to handle that easily. Say about 6 lines of code with an Arduino in C++ for example. \$\endgroup\$
    – CrossRoads
    Commented Mar 7, 2019 at 16:53

1 Answer 1

0
\$\begingroup\$

What if the generated pulse is longer (say 10x of the specified 60 ms) Will it damage solenoid? Will it still correctly turn on/off.?

No it will actuate again if the timing is not followed, so make sure the timing and voltage are followed properly.

The electrical current applied to a latching valve is very brief, typically in pulses of 20 to 50 milliseconds. The device's electrical control system must control these pulses precisely. If they are too short, the valve will not respond and if they are too long the valve will open and then close again or vise versa. This is commonly referred to as re-latching. The voltage must also be stable not varying more than +10% or -15% of rated voltage.

Source: https://www.solenoidsolutionsinc.com/custom-solutions/latching-solenoid-valves--low-energy/

I was thinking of using pwm(pulse wave modulation) technique to generate pulse. So I was thinking of using 60% duty cycle for time period of 100ms. Then after sleeping for 100ms, I would disable pwm. So there is always potential of two pulses instead of one, (or more) going out. Am I thinking on correct lines?

A better way is to use a hardware timer on the microprocessor (which is available on almost any processor) to run the GPIO's. If that can't be done then use a loop and lock out interrupts while using the loop to avoid timing issues.

\$\endgroup\$
2
  • \$\begingroup\$ Thanks @laptop2d. I would like to know if code like so is okay? 1. Turn GPIO ON 2. Sleep 30ms 3. Turn GPIO OFF \$\endgroup\$
    – Ouroboros
    Commented Mar 8, 2019 at 9:27
  • \$\begingroup\$ Yeah, verify timing with the scope. Make sure you are reaching 4V, 3.3V won't work \$\endgroup\$
    – Voltage Spike
    Commented Mar 8, 2019 at 15:44

Your Answer

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

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