a quick question, can i make a SBR using UNO and two HC-SR04 knowing that this configuration offers a 1.36 mm resolution (i.e it increment 1.36mm) ?
$\begingroup$
$\endgroup$
4
-
$\begingroup$ could you explain how you place your srf? $\endgroup$– Albert H MCommented Jul 22, 2019 at 14:33
-
$\begingroup$ the surface is horizontal, no inclinations $\endgroup$– Allaw HusseinCommented Jul 23, 2019 at 1:40
-
$\begingroup$ im not sure there is a possible way to create sbr only using srf, because srf is distance sensor, not giving you any information about orientation of robot. You need gyroscope or anything similliar $\endgroup$– Albert H MCommented Jul 23, 2019 at 6:12
-
$\begingroup$ wait a minute.. i figure out a way $\endgroup$– Albert H MCommented Jul 23, 2019 at 6:18
Add a comment
|
1 Answer
$\begingroup$
$\endgroup$
2
Probably not - it can take about 60ms to get a reading from those sensors†, which is quite slow for the loop updating a balancing robot.
-
$\begingroup$ i believe yes, even interrupt based program (with sensors 2cm above ground) will read 14 "1.36cm" steps (20 / 1.36) each taking 4ms, the loop time is (you are right 60ms), just re edit you answer $\endgroup$ Commented Jul 27, 2019 at 21:01
-
$\begingroup$ and as an evidence a quadcopter loop time is 4ms and i hardly balance (at least DIYs) so expect what a 60ms might do $\endgroup$ Commented Jul 27, 2019 at 21:06