Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
duino-pi_protokol [2014/10/26 21:10] admin |
duino-pi_protokol [2014/11/10 02:18] (current) admin |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ---- | ---- | ||
| - | Structure:\\ | + | The signal beginns with 4 diffrent characters (S,M,A,D) for stepper motor, gear motors, analog- and digital output and the number of the device. Followed by an other character for the attribut and the value. |
| - | Character, Number, Character, Number, ....\\ | + | |
| + | Duino-Pi Code:\\ | ||
| + | [[https:// | ||
| + | |||
| + | structure: | ||
| + | character, number, character, number, .... return (" | ||
| Line 14: | Line 19: | ||
| **Motor: | **Motor: | ||
| M = motor + number (1, | M = motor + number (1, | ||
| + | D = direction + number (0,1) (0 = clockwise, 1 = counterclockwise)\\ | ||
| S = speed + number (0-255) \\ | S = speed + number (0-255) \\ | ||
| - | Example: | + | Example: |
| **Analog**\\ | **Analog**\\ | ||
| A = analog + number (1, | A = analog + number (1, | ||
| V = value + number (0 - 255)\\ | V = value + number (0 - 255)\\ | ||
| - | Example: A4V0 (analog: 4, value = 0) | + | Example: A4V0 (analog: 4, value = 0)\\ |
| **Digital**\\ | **Digital**\\ | ||
| D = digital + number (1, | D = digital + number (1, | ||
| - | V = value + number (0,1)\\ | + | S = value + number (0,1)\\ |
| - | Example: | + | or\\ |
| + | F = flash + number 1\\ | ||
| + | Example: | ||
| + | |||
| + | **Preset**\\ | ||
| + | P = preset + number(1, | ||
| + | Preset 0 = turn off everything\\ | ||
| + | Preset 1 = turn on everything\\ | ||