TINKER PIEDESIGN IN INDIA

Traffic light module with TinkerPie

Three LEDs in a row: crossings and timers.

TypeOutputs and actuators
Connect toR, Y and G on three pins
Givesred, yellow, green
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.trafficLight(Pin.P10, Pin.P11, Pin.P12, TrafficLight.Green)

// Arduino C++
outputs::trafficLight(Pin::P10, Pin::P11, Pin::P12, TrafficLight::Green)

Projects with the Traffic light module

Traffic lightA traffic light module runs green, yellow, red, and the matrix shows walk or wait.Sensor projects

Similar modules