Solenoid Valve

A solenoid consists of a steel plunger inside an electric coil which is wrapped around a tube. When the coil is energised a magnetic field is created, and this draws the plunger into the tube. When the coil is de-energised a spring pushes the plunger back out of the tube.

The plunger can be used to allow or prevent flow through of air or liquid through another tube or chamber. This combination is called a solenoid valve.

Related Commands:

Print Page

Share

Schematic

PCB

Activate a solenoid valve

This program will activate a solenoid valve connected to output pin B.1 for a quarter of a second every five seconds. This will give a short burst of air or liquid every five seconds when the valve is connected to an air or liquid supply.

Code Example:
main:	high B.1	; Activate the solenoid valve
	pause 250	; Keep activated for a quarter of a second

	low B.1		; Deactivate the solenoid valve
	pause 5000	; Wait five seconds

	goto main	; Repeat
Copy Code Submit an Example

Create Module

Bill of Materials

DescriptionCodeQty
6V Solenoid Valve REL005 1 Buy Now
FET ? 1 Buy Now
10k resistor (pack 100) RES10K 1 Buy Now
1N4001 signal diode RES041 1 Buy Now

Simulation

No Image Selected

Submit Your Own Code!

You must be logged in to submit code examples. Login now.

Comments

  • Login to leave a comment.