public TachometerApp() { this._motor = new HBridgeMotor(N.PWMChannels.PWM_PIN_D3, N.PWMChannels.PWM_PIN_D5, N.Pins.GPIO_PIN_D4, 50); this._tach = new LinearHallEffectTachometer(N.Pins.GPIO_PIN_D2); this._lcd = new SerialLCD(new TextDisplayConfig() { Width = 16, Height = 2 }); this._tach.RPMsChanged += RPMsChanged; }
public TachometerApp() { Debug.Print("Here2"); this._motor = new H.PWM(N.PWMChannels.PWM_PIN_D3, 100, 0, false); this._tach = new LinearHallEffectTachometer(N.Pins.GPIO_PIN_D2); this._lcd = new SerialLCD(new TextDisplayConfig() { Width = 16, Height = 2 }); this._tach.RPMsChanged += RPMsChanged; }
public MeadowApp() { Console.Write("Initializing..."); hallSensor = new LinearHallEffectTachometer( inputPort: Device.CreateDigitalInputPort(Device.Pins.D02, Meadow.Hardware.InterruptMode.EdgeRising, Meadow.Hardware.ResistorMode.PullUp, 0, 10), type: CircuitTerminationType.CommonGround, numberOfMagnets: 2, rpmChangeNotificationThreshold: 1); hallSensor.RPMsChanged += HallSensorRPMsChanged; Console.WriteLine("done"); }