Hall effect sensor A3144 with TinkerPie
Counts wheel turns with a magnet: speedometers.
| Type | Digital sensors |
|---|---|
| Connect to | any accessory pin |
| Gives | true near a magnet pole |
| Simulator | Yes: a control appears under the simulated board |
How to wire it
Signal (DO / OUT / S) to any accessory pin: S1-S4, P10-P13, P43 or P44. Power from 3.3 V where the module allows it.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
sensors.hallSensor(Pin.S1)
// Arduino C++
sensors::hallSensor(Pin::S1)