UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

GroveElectromagnet Class

  • ID: groveelectromagnet
  • Name: Electromagnet
  • Category: electric
  • Manufacturer: seeed
  • Connection: gpio

The Grove Electromagnet can hold up to 1 kg (approximately 2.2 lbs)
groveelectromagnet.jpg

Item Index

Methods

GroveElectromagnet

(
  • pin
)
Number

Grove Electromagnet constructor

Parameters:

  • pin Number

    Digital pin to use

Returns:

Number:

on

()

Turns the magnet on

off

()

Turns the magnet off