TINKER PIEDESIGN IN INDIA

Relay module with TinkerPie

A switch the board controls. For active-low modules, on = false.

TypeOutputs and actuators
Connect toany accessory pin
Givesswitches a lamp, fan or pump
SimulatorYes: a control appears under the simulated board

How to wire it

Signal pin to S1-S4 or P10-P13. Motors, pumps and lamps always go through the relay or a driver module, never straight to a pin.

Code

In blocks: Accessories category in TinkerPie Studio. As code:

// JavaScript
outputs.relay(Pin.S1, true)

// Arduino C++
outputs::relay(Pin::S1, true)

Projects with the Relay module

Smart street lightA light sensor and a relay: when it gets dark, the lamp turns on by itself.Sensor projects

Similar modules