From 8955af00746dd06250bf692d482972fecdbb1341 Mon Sep 17 00:00:00 2001 From: anatolykopyl <33553182+anatolykopyl@users.noreply.github.com> Date: Mon, 3 Jun 2019 12:24:53 +0300 Subject: [PATCH] Explained a thing --- smartboard.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/smartboard.ino b/smartboard.ino index 6a947e9..dfad370 100644 --- a/smartboard.ino +++ b/smartboard.ino @@ -182,6 +182,10 @@ void loop() { } void update_speed() { + /* + * Dividing by two because reed switch gets triggered twice a rotation + * You probably won't need that if you opt for a hall sensor + */ dist = CIRCUMF * rotations / 2; speedKMH = dist * 3.6 / (WAIT / 1000);