Skip to content

Commit 71d2a3f

Browse files
committed
Raspberry Pi Docs
1 parent 5029877 commit 71d2a3f

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
4.06 MB
Loading

docs/source/kit/arduino.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,35 @@ The reset button allows you to instantly reboot the Arduino in case it
2121
isn’t working. This is not a guaranteed fix, but may solve some
2222
problems.
2323

24+
GPIO Pins
25+
---------
26+
27+
The Arduino allows you to connect your kit to your own electronics. It has fourteen digital I/O pins, and six analogue. The analogue pins can read an analogue signal from 0 to 5V. The board also has a couple of ground pins, as well as some pins fixed at 3.3V and 5V output.
28+
29+
The pin layout of the servo assembly is the same as an Arduino Uno.
30+
31+
.. figure:: /_static/kit/arduino_pinout.png
32+
:alt: Pin Map
33+
:scale: 20%
34+
35+
Pin Map
36+
37+
Ultrasound Sensors
38+
------------------
39+
40+
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.
41+
42+
.. Warning:: Ultrasound should only be considered accurate up to around two metres, beyond which the signal can become distorted and produce erroneous results.
43+
44+
The sensor has four pin connections: ground, 5V (sometimes labelled
45+
*vcc*), *trigger* and *echo*. Most ultrasound sensors will label which
46+
pin is which. The ground and 5V should be wired to the ground and 5V
47+
pins of the Arduino respectively. The trigger and echo pins should be
48+
attached to two different digital IO pins. Take note of these two pins,
49+
you’ll need them to use the sensor.
50+
51+
.. Hint:: 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.
52+
2453
Designs
2554
-------
2655

0 commit comments

Comments
 (0)