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
Copy file name to clipboardExpand all lines: analogue.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -20,21 +20,21 @@ The analogue values are communicated to the Pi using the SPI protocol. While thi
20
20
21
21
## Wiring the ADC (MCP3008)
22
22
23
-
The MCP3008 is an ADC providing 8 input channels. The 8 connectors on one side are connected to the Pi's GPIO pins, and the other 8 are available to connect analogue input devices to read their values.
23
+
The MCP3008 is an ADC providing eight input channels. The eight connectors on one side are connected to the Pi's GPIO pins, and the other eight are available to connect analogue input devices to read their values.
24
24
25
-
Place the MCP3008 chip on a breadboard and carefully wire it up according to the following diagram:
25
+
Place the MCP3008 chip on a breadboard and carefully wire it up as shown in the following diagram:
26
26
27
27

28
28
29
-
*Alternatively, use the [Analog Zero](http://rasp.io/analogzero/) board, which provides the MCP3008 chip on a handy add-on board to save you from the complicated wiring.*
29
+
Alternatively, you could use the [Analog Zero](http://rasp.io/analogzero/) board, which provides the MCP3008 chip on a handy add-on board to save you from the complicated wiring.
30
30
31
31
## Add a potentiometer
32
32
33
-
Now the ADC is connected to the Pi, you can wire up devices to the input channels. A potentiometer is a good example of an analogue input device: it's simply a variable resistor, and the Pi reads the voltage (from 0V to 3.3V).
33
+
Now the ADC is connected to the Pi, you can wire devices up to the input channels. A potentiometer is a good example of an analogue input device: it's simply a variable resistor, and the Pi reads the voltage (from 0V to 3.3V).
34
34
35
35

36
36
37
-
A potentiometer's pins are ground, data and 3V3. This means you connect it to ground, a supply of 3V3 and read the actual voltage from the middle pin.
37
+
A potentiometer's pins are ground, data, and 3V3. This means you connect it to ground and a supply of 3V3, and read the actual voltage from the middle pin.
38
38
39
39
1. Place a potentiometer on the breadboard and wire one side to the ground rail, the other to the 3V3 rail and the middle pin to the first input channel like so:
0 commit comments