Skip to content

Commit cd8f677

Browse files
Update content.md
1 parent 72aa11e commit cd8f677

File tree

1 file changed

+17
-1
lines changed
  • content/hardware/02.hero/boards/uno-r4-wifi/tutorials/touch

1 file changed

+17
-1
lines changed

content/hardware/02.hero/boards/uno-r4-wifi/tutorials/touch/content.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ Capacitive sensing is a technology that detects changes in capacitance to determ
1616

1717
![Sensor Example](assets/Touch_Cover_001.gif)
1818

19+
## Required Hardware
20+
To use the library you will need one of the compatible boards:
21+
- [Arduino® UNO R4 WiFi](https://docs.arduino.cc/hardware/uno-r4-wifi)
22+
- [Arduino® UNO R4 Minima](https://store.arduino.cc/products/uno-r4-minima)
23+
24+
You will also need:
25+
- Wire
26+
- Something that can affect the electric field to touch (metal objects, materials with moisture, even bananas! Experimentation is key!)
27+
1928
## How Capacitive Sensing Works
2029

2130
Imagine the sensor as creating an invisible electric field around itself. When a conductive object (like your finger) approaches, it's like dropping a stone into a calm pond - the field gets disturbed. The sensor detects this disturbance as a change in capacitance, which is essentially how much electrical charge the system can store.
@@ -81,12 +90,17 @@ The **Arduino_CapacitiveTouch** library provides several functions to work with
8190

8291
For more detailed usage and examples, refer to the [CapacitiveSensor library documentation](https://docs.arduino.cc/libraries/capacitivesensor/).
8392

84-
## Example Code
93+
## Detecting Touch Example
94+
95+
### Circuit
8596

8697
Here's a simple example to get you started with capacitive sensing on the UNO R4. For this example, we are connecting a single piece of any conductive material to the pin `D0` on the Board.
8798

8899
![How to connect](assets/HoockupGuideExample.png)
89100

101+
102+
### Code
103+
90104
**Note:** To install the `Arduino_CapacitiveTouch` library, open the Arduino IDE Library Manager, search for "Arduino_CapacitiveTouch" within the Manage Libraries option, and click Install.
91105

92106
```arduino
@@ -120,6 +134,8 @@ void loop() {
120134
}
121135
```
122136

137+
![Sensor Example](assets/Touch_Cover_001.gif)
138+
123139
## Creative Project Ideas
124140

125141
Now that you have learned the basics, here are some fun and interesting project ideas:

0 commit comments

Comments
 (0)