You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The input modes closely resemble those of an Arduino. More information on them can be found in [their docs](https://www.arduino.cc/en/Tutorial/DigitalPins).
88
85
89
86
### Setting the pin mode
90
87
@@ -138,11 +135,10 @@ have to be read differently. The Arduino has six analogue inputs, which
138
135
are labelled `A0` to `A5`; however pins `A4` and `A5` are reserved and
139
136
cannot be used.
140
137
141
-
{{% notice tip %}}
142
-
Analogue signals can have any voltage, while digital signals can only
143
-
take on one of two voltages. You can read more about digital vs analogue
Copy file name to clipboardExpand all lines: docs/api/motor-board.md
+8-18Lines changed: 8 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,8 @@ accessed using the `motor_board` property of the `Robot` object.
14
14
my_motor_board = r.motor_board
15
15
```
16
16
17
-
{{% notice warning %}}
18
-
If there is more than one motor board on your kit, you *must* use the
19
-
`motor_boards` property. `r.motor_board`*will cause an error*. This is
20
-
because the kit doesn't know which motor board you want to access.
21
-
{{% /notice %}}
17
+
!!! warning
18
+
If there is more than one motor board on your kit, you *must* use the `motor_boards` property. `r.motor_board`*will cause an error*. This is because the kit doesn't know which motor board you want to access.
22
19
23
20
Motor boards attached to your robot can be accessed under the
24
21
`motor_boards` property of the `Robot`. The boards are indexed by their
Setting a value outside of the range `-1` to `1` will raise an exception
68
-
and your code will crash.
69
-
{{% /notice %}}
63
+
!!! warning
64
+
Setting a value outside of the range `-1` to `1` will raise an exception and your code will crash.
70
65
71
-
{{% notice warning %}}
72
-
Sudden large changes in the motor speed setting (e.g. `-1` to `0`, `1`
73
-
to `-1` etc.) will likely trigger the over-current protection and your
74
-
robot will shut down with a distinct beeping noise and/or a red light
75
-
next to the power board output that is powering the motor board.
76
-
{{% /notice %}}
66
+
!!! danger
67
+
Sudden large changes in the motor speed setting (e.g. `-1` to `0`, `1` to `-1` etc.) will likely trigger the over-current protection and your robot will shut down with a distinct beeping noise and/or a red light next to the power board output that is powering the motor board.
77
68
78
69
### Special values
79
70
@@ -90,9 +81,8 @@ from sbot import BRAKE, COAST
90
81
`BRAKE` will stop the motors from turning, and thus stop your robot as
91
82
quick as possible.
92
83
93
-
{{% notice tip %}}
94
-
`BRAKE` does the same as setting the power to `0`.
95
-
{{% /notice %}}
84
+
!!! note
85
+
`BRAKE` does the same as setting the power to `0`.
Copy file name to clipboardExpand all lines: docs/kit/pi.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,5 @@ The Raspberry Pi is enclosed in a plastic case to protect the delicate component
11
11
## Included software
12
12
The software included on the Raspberry Pi allows it to run your robot. No graphical or user-required software is installed. You _do not_ need to connect to your Raspberry Pi from a computer in order to use your robot.
13
13
14
-
{{% notice warning %}}
15
-
Please do not attempt to modify the software on the Raspberry Pi. It has been configured and tested in its current configuration. Unauthorized modifications may damage your robot or prevent accurate debugging.
16
-
{{% /notice %}}
14
+
!!! warning
15
+
Please do not attempt to modify the software on the Raspberry Pi. It has been configured and tested in its current configuration. Unauthorized modifications may damage your robot or prevent accurate debugging.
Copy file name to clipboardExpand all lines: docs/kit/power-board.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,9 +28,8 @@ There is also a Micro USB B connector which should be used to connect the Raspbe
28
28
29
29
Finally, there are connectors for external Start and On|Off switches. You may connect any latching switch for the On|Off switch, or a push-to-make button for the Start button.
30
30
31
-
{{% notice note %}}
32
-
If you intend to use only the internal On|Off switch, a CamCon must be plugged into the On|Off connector with a wire connecting one pin to the other pin on the same connector. Your power board should already have one of these plugged in.
33
-
{{% /notice %}}
31
+
!!! note
32
+
If you intend to use only the internal On|Off switch, a CamCon must be plugged into the On|Off connector with a wire connecting one pin to the other pin on the same connector. Your power board should already have one of these plugged in.
Copy file name to clipboardExpand all lines: docs/kit/servo-assembly/GPIO.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,7 @@ The Arduino allows you to connect your kit to your own electronics. It has fourt
6
6
7
7
The pin layout of the servo assembly is the same as an Arduino Uno.
8
8
9
-
{{% notice note %}}
10
-
The Arduino communicates with the servo shield using two of the analogue input pins (4 and 5), and with the Raspberry Pi using two of the digital IO pins (0 and 1). These four pins are therefore reserved, and using them may cause the Arduino or servo shield to behave unusually.
11
-
{{% /notice %}}
9
+
!!! note
10
+
The Arduino communicates with the servo shield using two of the analogue input pins (4 and 5), and with the Raspberry Pi using two of the digital IO pins (0 and 1). These four pins are therefore reserved, and using them may cause the Arduino or servo shield to behave unusually.
Copy file name to clipboardExpand all lines: docs/kit/servo-assembly/ultrasound.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,11 @@ title: Ultrasound
4
4
5
5
Ultrasound sensors are a useful way of measuring distance. Ultrasound sensors communicate with the kit using two wires. A signal is sent to the sensor on the _trigger_ pin, and the length of a response pulse on the _echo_ pin can be used to calculate the distance.
6
6
7
-
{{% notice warning %}}
8
-
Ultrasound should only be considered accurate up to around two metres, beyond which the signal can become distorted and produce erroneous results.
9
-
{{% /notice %}}
7
+
!!! warning
8
+
Ultrasound should only be considered accurate up to around two metres, beyond which the signal can become distorted and produce erroneous results.
10
9
11
10
## Wiring up the sensor
12
11
The sensor has four pin connections: ground, 5V (sometimes labelled _vcc_), _trigger_ and _echo_. Most ultrasound sensors will label which pin is which. The ground and 5V should be wired to the ground and 5V pins of the Arduino respectively. The trigger and echo pins should be attached to two different digital IO pins. Take note of these two pins, you'll need them to [use the sensor](../../../api/arduino#ultrasound-sensors).
13
12
14
-
{{% notice tip %}}
15
-
If the sensor always returns a distance of zero, it means the _trigger_ and _echo_ pins are connected the wrong way! Either change the pin numbers in the code, or swap the connections.
16
-
{{% /notice %}}
13
+
!!! tip
14
+
If the sensor always returns a distance of zero, it means the _trigger_ and _echo_ pins are connected the wrong way! Either change the pin numbers in the code, or swap the connections.
0 commit comments