Laser module with TinkerPie
Laser tripwires with a light sensor. Never point it at eyes.
| Type | Outputs and actuators |
|---|---|
| Connect to | any accessory pin |
| Gives | a red dot |
| Simulator | Yes: 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.laser(Pin.S1, true)
// Arduino C++
outputs::laser(Pin::S1, true)