Skip to content

Commit 9a91bd6

Browse files
committed
README with commands and sample session.
1 parent d5e40db commit 9a91bd6

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

README.md

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
## Polar Scanner
2+
3+
### Commands
4+
5+
* ```SERVO <ANGLE>``` : sensor rotation on the X axis, from 0 to 180 degrees
6+
* ```STEPPER <STEPS>``` : sensor rotation on the Y axis. A 360 degrees rotation on the 28BYJ is 512 steps.
7+
* ```MESURE``` : telemeter sensor mesure in centimeters
8+
* ```SCAN <STEPPER STEP> <STEPPER NBR> <SERVO STEP> <SERVO NBR> <SERVO FROM>``` : Performs ```<STEPPER NBR> * <SERVO NBR>``` mesures.
9+
10+
### Sample session
11+
12+
* Command:
13+
14+
```
15+
./arduino_chat.py /dev/ttyUSB0 9600 SERVO 90 MESURE SERVO 105 MESURE SERVO 90 MESURE STEPPER -256 SCAN 32 8 5 8 60
16+
```
17+
18+
* Chat log:
19+
20+
```
21+
CMD:
22+
SERVO
23+
ANGLE:
24+
90
25+
CMD:
26+
MESURE
27+
14
28+
CMD:
29+
SERVO
30+
ANGLE:
31+
105
32+
CMD:
33+
MESURE
34+
14
35+
CMD:
36+
SERVO
37+
ANGLE:
38+
90
39+
CMD:
40+
MESURE
41+
14
42+
CMD:
43+
STEPPER
44+
STEPS:
45+
-256
46+
CMD:
47+
SCAN
48+
STEPPER STEP:
49+
32
50+
STEPPER NBR:
51+
8
52+
SERVO STEP:
53+
5
54+
SERVO NBR:
55+
8
56+
SERVO FROM:
57+
60
58+
59+
0075 0074 0074 0051 0050 0049 0049 0049
60+
1000 0076 0075 0074 1000 0183 0019 0017
61+
0104 0103 0103 0026 0105 0165 0019 0018
62+
0064 0097 0063 0063 0083 0068 0060 0020
63+
0062 0061 0061 0060 0034 0034 0034 0034
64+
0062 0055 0051 0043 0033 0032 0024 0024
65+
0042 0036 0035 0034 0032 0032 0031 0018
66+
0025 0018 0019 0020 0020 0017 0016 0015
67+
CMD:
68+
```

0 commit comments

Comments
 (0)