We recently bought an electric solenoid, uxcell 12VDC 4N 10mm Stroke Pull Push Solenoid Electromagnet Open Frame Type Linear Motion JF-0520B. We are not sure how it should be wired. Should it go to the vrm or the pdp? It has two green wires coming out of it and that’s it.
To control it you want to wire it to either a relay (controlled by roboRIO relay output), or a motor controller (PWM or CAN).
Relays and motor controllers get wired according to the rules.
Agreed, the PCM can act as a relay for this purpose, too.
It’s a pretty low power device and is a spring return, so only one direction is needed (power on/off).
The PCM can source 500ma at 12v and the device takes 300ma.