Connection of water solenoid valve and vacuum pump?

Hi, Can I connect the solenoid valve and the vacuum pump directly to the ramps or do I use relays?
P.S. Is there a connection diagram?

regards!!

The vacuum pump and solenoid valve can be connected directly to pins D9 and D10 on the RAMPS board.

The pins are customizable on the Controls page at my.farmbot.io, so you choose the pin for each peripheral. We’re working on a suggested wiring diagram in the electronics documentation.

Another question, what code do I charge arduino for ramps?

You can install the Arduino firmware by clicking the firmware Update button on the Device page at my.farmbot.io. Detailed instructions can be found in the software documentation.