From 2add419a1d70a65e025bf60a5185c47c011e838d Mon Sep 17 00:00:00 2001 From: Volodymyr Date: Thu, 28 Apr 2022 09:08:46 +0200 Subject: [PATCH] Added delay in seria print for stability --- .../hall_sensors/hall_sensor_example/hall_sensor_example.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/utils/sensor_test/hall_sensors/hall_sensor_example/hall_sensor_example.ino b/examples/utils/sensor_test/hall_sensors/hall_sensor_example/hall_sensor_example.ino index ef2e504c..c4777baa 100644 --- a/examples/utils/sensor_test/hall_sensors/hall_sensor_example/hall_sensor_example.ino +++ b/examples/utils/sensor_test/hall_sensors/hall_sensor_example/hall_sensor_example.ino @@ -11,7 +11,7 @@ // HallSensor(int hallA, int hallB , int cpr, int index) // - hallA, hallB, hallC - HallSensor A, B and C pins // - pp - pole pairs -HallSensor sensor = HallSensor(2, 3, 4, 11); +HallSensor sensor = HallSensor(2, 3, 4, 14); // Interrupt routine intialisation // channel A and B callbacks @@ -44,4 +44,5 @@ void loop() { Serial.print(sensor.getAngle()); Serial.print("\t"); Serial.println(sensor.getVelocity()); + delay(100); }