18-06-2020, 06:16
(Ten post był ostatnio modyfikowany: 18-06-2020, 06:21 przez PierwszyWolnyLogin.)
Cytat:"The float data type has only 6-7 decimal digits of precision. That means the total number of digits, not the number to the right of the decimal point. Unlike other platforms, where you can get more precision by using a double (e.g. up to 15 digits), on the Arduino, double is the same size as float.
Floating point numbers are not exact, and may yield strange results when compared. For example 6.0 / 3.0 may not equal 2.0. You should instead check that the absolute value of the difference between the numbers is less than some small number."
To dobre jest. Może wynik będzie poprawny a może nie
Wygląda na to, że pomiarów na tym poziomie dokładności nie zrobię - mogę oczywiście
zmienić rezystor bocznikowy i zmniejszyć zakres pomiarowy do zakresu uA, ale to mi
nie odpowiada bo chcę mieć zakres do około 1A.
Wpadłem teraz na pomysł, że przesunę sobie zakres pomiaru od drugiej strony - dołożę
równolegle do mierzonego układu rezystor który będzie pobierał powiedzmy 1mA
a reszta to już będzie prąd pobierany przez mierzony układ...
Hmm nie to chyba nic nie da niestety
Jakub