Skip to content

Commit 23a34f2

Browse files
committed
updated knock tutorial
1 parent 6f57afe commit 23a34f2

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

content/built-in-examples/06.sensors/Knock/Knock.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,17 @@ Open the serial monitor to see this text.
3333

3434
Piezos are **polarized**, meaning that voltage passes through them (or out of them) in a specific direction. Connect the black wire (the lower voltage) to ground and the red wire (the higher voltage) to analog pin 0. Additionally, connect a 1-megohm resistor in parallel to the Piezo element to limit the voltage and current produced by the piezo and to protect the analog input.
3535

36-
It is possible to acquire piezo elements without a plastic housing. These will look like a metallic disc, and are easier to use as input sensors. PIezo sensors work best when firmly pressed against, taped, or glued their sensing surface.
37-
36+
It is possible to acquire piezo elements without a plastic housing. These will look like a metallic disc, and are easier to use as input sensors. Piezo sensors work best when firmly pressed against, taped, or glued their sensing surface.
3837

3938
![](assets/circuit.png)
4039

4140

4241
### Schematic
4342

43+
The piezo is attached to analog pin 0 with a 1 Megohm resistor in between the two legs. The placement of the resistor is used to save the piezo from damage from extra current. Without it, the analog pin might not be capable of reading the piezo's signal.
4444

4545
![](assets/schematic.png)
4646

47-
*A Piezo to attached to analog pin 0 with a 1 Megohm resistor*
48-
4947
### Code
5048

5149
In the code below, the incoming piezo data is compared to a threshold value set by the user. Try raising or lowering this value to increase your sensor's overall sensitivity.
@@ -56,6 +54,4 @@ In the code below, the incoming piezo data is compared to a threshold value set
5654

5755
You can find more basic tutorials in the [built-in examples](/built-in-examples) section.
5856

59-
You can also explore the [language reference](https://www.arduino.cc/reference/en/), a detailed collection of the Arduino programming language.
60-
61-
*Last revision 2015/07/29 by SM*
57+
You can also explore the [language reference](https://www.arduino.cc/reference/en/), a detailed collection of the Arduino programming language.
Loading
Loading

0 commit comments

Comments
 (0)