Please use the instruction here is to connect Arduino + Base Shield + Grove Relay.
2.Use digitalWrite() to switch On & Off the relay. Before connecting a solenoid test the relay code.
3.The relay acts like a switch.
—Connect GND of Solenoid to GND of power solenoid supply.
—Connect 12V to one pin of Green Terminal on the relay board,
—Connect the other end to other pin of Green Terminal to positive of Solenoid code.
Note: Make sure there is enough delay between On & Off of relay.
Hi there thank you for your help!
I’ve got a problem with this solenoid which can be seen in the attachment below…
Both wires are of same colour and there is no indication of which is gnd!
May I also ask how do I determine which is it?
This article would help you to identify solenoid polarity. Solenoid is a coil of wires. If you web search for “Identify Solenoid polarity” there are many resources including videos on identifying polarity.
You could use a flyback diode for addition protection.