Commit | Line | Data |
---|---|---|
63efb482 TM |
1 | ## |
2 | ## This file is part of the libsigrokdecode project. | |
3 | ## | |
4 | ## Copyright (C) 2020 Tomas Mudrunka <harvie@github> | |
5 | ## | |
6 | ## This program is free software; you can redistribute it and/or modify | |
7 | ## it under the terms of the GNU General Public License as published by | |
8 | ## the Free Software Foundation; either version 2 of the License, or | |
9 | ## (at your option) any later version. | |
10 | ## | |
11 | ## This program is distributed in the hope that it will be useful, | |
12 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ## GNU General Public License for more details. | |
15 | ## | |
16 | ## You should have received a copy of the GNU General Public License | |
17 | ## along with this program; if not, see <http://www.gnu.org/licenses/>. | |
18 | ## | |
19 | ||
20 | ''' | |
21 | This decodes digital output of cheap generic calipers (usualy made in china) | |
22 | Decoder will show measured value in milimeters or inches. | |
7d950734 TM |
23 | |
24 | Please note that these devices often communicate on low voltage level, | |
25 | which might not be possible to capture with 3.3V logic analyzers. | |
26 | So additional circuitry might be needed to capture the signal. | |
165bbc96 TM |
27 | |
28 | This is NOT for calipers using Digimatic protocol (eg. Mitutoyo and similar brands) | |
29 | ||
30 | More info: | |
31 | ||
32 | http://www.shumatech.com/support/chinese_scales.htm | |
33 | https://www.instructables.com/id/Reading-Digital-Callipers-with-an-Arduino-USB/ | |
63efb482 TM |
34 | ''' |
35 | ||
36 | from .pd import Decoder |