Skip to content

Commit 3e60b3c

Browse files
committed
Pull in sbot's Arduino docs
2 parents d594838 + f62d55b commit 3e60b3c

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed
660 Bytes
Binary file not shown.
508 KB
Loading
4.06 MB
Loading

docs/kit/arduino.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Arduino
2+
3+
This board allows you to control GPIO pins and analogue pins. More specifically, it's an [Arduino Uno](https://store.arduino.cc/arduino-uno-rev3>).
4+
5+
![Arduino Uno](../assets/img/kit/arduino_headers.png)
6+
7+
## Headers
8+
9+
We have supplied 2 screw terminal headers for your Arduino, allowing you to easily and securely attach your sensors.
10+
11+
## The reset button
12+
13+
The small button next to the USB socket allows you to instantly reboot the Arduino in case it
14+
isn't working. This isn't a guaranteed fix, but may solve some problems.
15+
16+
## GPIO Pins
17+
18+
The Arduino allows you to connect your kit to your own electronics. It has fourteen digital I/O pins, and six analogue input pins. 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.
19+
20+
![Pin Map](../assets/img/kit/arduino_pinout.png)
21+
22+
## Ultrasound Sensors
23+
24+
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.
25+
26+
!!! warning
27+
Ultrasound should only be considered accurate up to around two metres, beyond which the signal can become distorted and produce erroneous results.
28+
29+
The sensor has four pin connections: ground, 5V (sometimes labelled
30+
*vcc*), *trigger* and *echo*. Most ultrasound sensors will label which
31+
pin is which. The ground and 5V should be wired to the ground and 5V
32+
pins of the Arduino respectively. The trigger and echo pins should be
33+
attached to two different digital IO pins. Take note of these two pins,
34+
you'll need them to use the sensor.
35+
36+
!!! tip
37+
If the sensor always returns a distance of zero, it might mean the *trigger* and *echo* pins are connected the wrong way! Either change the pin numbers in the code, or swap the connections.
38+
39+
## Designs
40+
41+
The schematic diagrams for the Arduino is below, as
42+
well as the source code of the firmware on the Arduino. You do not need
43+
this information to use the board but it may be of interest to some
44+
people.
45+
46+
- [Arduino Uno Schematic](../assets/docs/arduino-schematic.pdf)
47+
- [Firmware Source](https://github.com/sourcebots/arduino-fw)

0 commit comments

Comments
 (0)