Component: Solenoid DC (Mechatronics): Difference between revisions
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 66: | Line 66: | ||
If the solenoid requires a large DC voltage, say 12V then you can connect the 12V directly to the top of the solenoid as shown above rather than using VCC or VDD. The transistor / FET will protect the micro from the large Voltage. | If the solenoid requires a large DC voltage, say 12V then you can connect the 12V directly to the top of the solenoid as shown above rather than using VCC or VDD. The transistor / FET will protect the micro from the large Voltage. | ||
| Line 80: | Line 84: | ||
===SetState=== | ===SetState=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetState''' | ||
|- | |- | ||
| colspan="2" | Trun the solenoid on or off using a boolean value. | | colspan="2" | Trun the solenoid on or off using a boolean value. | ||
| Line 99: | Line 103: | ||
===SetTarget=== | ===SetTarget=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetTarget''' | ||
|- | |- | ||
| colspan="2" | Choose an extermal object to move along with the solenoid's actuator | | colspan="2" | Choose an extermal object to move along with the solenoid's actuator | ||
| Line 118: | Line 122: | ||
===TurnOff=== | ===TurnOff=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''TurnOff''' | ||
|- | |- | ||
| colspan="2" | De-activate the solenoid | | colspan="2" | De-activate the solenoid | ||
| Line 132: | Line 136: | ||
===TurnOn=== | ===TurnOn=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''TurnOn''' | ||
|- | |- | ||
| colspan="2" | Activate the solenoid | | colspan="2" | Activate the solenoid | ||
| Line 147: | Line 151: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Connection | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.2 |
| Category | Mechatronics |
Solenoid DC component
Simple open frame solenoid based on the Benson BDC.4 series.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Solenoid_DC.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Solenoid_DC.fcfx
Detailed description
No detailed description exists yet for this component
Examples
A solenoid will likely require more current than a microcontroller device can supply to activate the mechanical mechanism.
To amplify the current from the microcontroller simply use a NPN transistor or N channel FET.
The diode is required as with any inductive loads to help protect the microcontroller from back EMF generated by the inductor as the control signal switches the current through the inductor on and off
If the solenoid requires a large DC voltage, say 12V then you can connect the 12V directly to the top of the solenoid as shown above rather than using VCC or VDD. The transistor / FET will protect the micro from the large Voltage.
Macro reference
SetState
| SetState | |
| Trun the solenoid on or off using a boolean value. | |
| State | |
| The new state for the solenoid to take. | |
| Return | |
SetTarget
| SetTarget | |
| Choose an extermal object to move along with the solenoid's actuator | |
| Object | |
| An object to be moved by the solenoid | |
| Return | |
TurnOff
| TurnOff | |
| De-activate the solenoid | |
| Return | |
TurnOn
| TurnOn | |
| Activate the solenoid | |
| Return | |
Property reference
| Properties | |
| Connection | |
| Pin | |
| Chip pin to connect the solenoid circuit to. NB) Solenoid cannot be moved unless there is a valid connection. | |
