Skip to content

Commit 3e39561

Browse files
Fixed with guidelines
1 parent 5ae0e30 commit 3e39561

File tree

1 file changed

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

1 file changed

+15
-15
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Uno R4 Capacitive-Touch Tutorial.
2+
title: UNO R4 Capacitive-Touch Tutorial.
33
difficulty: beginner
4-
description: Learn to use the built-in capacitive sensing capabilities of the Arduino® Uno R4.
5-
tags: [Arduino, Capacitive Sensing, Uno R4]
4+
description: Learn to use the built-in capacitive sensing capabilities of the Arduino® UNO R4.
5+
tags: [Arduino, Capacitive Sensing, UNO R4]
66
author: Pedro Lima
77
hardware:
88
- hardware/02.hero/boards/uno-r4-wifi
@@ -12,7 +12,7 @@ hardware:
1212
- web-editor
1313
---
1414

15-
Capacitive sensing is a technology that detects changes in capacitance to determine the presence or absence of a conductive object, such as a human finger. This principle is widely used in touch-sensitive devices. The Arduino® Uno R4, both the [WiFi](https://store.arduino.cc/products/arduino-uno-r4-wifi) and [Minima](https://store.arduino.cc/products/arduino-uno-r4-minima) versions, come equipped with built-in capacitive sensing capabilities, making it easier to integrate touch inputs into your projects.
15+
Capacitive sensing is a technology that detects changes in capacitance to determine the presence or absence of a conductive object, such as a human finger. This principle is widely used in touch-sensitive devices. The Arduino® UNO R4, both the [WiFi®](https://store.arduino.cc/products/arduino-uno-r4-wifi) and [Minima](https://store.arduino.cc/products/arduino-uno-r4-minima) versions, come equipped with built-in capacitive sensing capabilities, making it easier to integrate touch inputs into your projects.
1616

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

@@ -21,18 +21,18 @@ Capacitive sensing is a technology that detects changes in capacitance to determ
2121
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.
2222
Here's the process:
2323

24-
1. The sensor generates a small electric field
25-
2. When you touch or approach the sensor, your body acts like a conductor
26-
3. This changes the capacitance of the system
27-
4. The microcontroller measures this change and determines if it's significant enough to register as a "touch"
24+
1. The sensor electrode creates an electric field by applying a small voltage
25+
2. When you approach or touch the sensor, your body becomes part of the capacitive circuit
26+
3. This increases the capacitance between the sensor electrode and ground
27+
4. The microcontroller detects this capacitance change (often by measuring timing differences) and determines if it's significant enough to register as a "touch"
2828

29-
## Using Capacitive Sensing on the Uno R4
29+
## Using Capacitive Sensing on the UNO R4
3030

31-
The Uno R4 features a Capacitive Touch Sensing Unit (CTSU) that allows you to use certain pins as capacitive touch inputs. To utilize these capabilities, you can use the [Arduino_CapacitiveTouch library](https://github.com/arduino-libraries/Arduino_CapacitiveTouch).
31+
The UNO R4 features a Capacitive Touch Sensing Unit (CTSU) that allows you to use certain pins as capacitive touch inputs. To utilize these capabilities, you can use the [Arduino_CapacitiveTouch library](https://github.com/arduino-libraries/Arduino_CapacitiveTouch).
3232

3333
### Compatible Pins
3434

35-
For both the Uno R4 WiFi and Minima boards, the compatible pins for capacitive touch are listed in the [Arduino_CapacitiveTouch library documentation](https://github.com/arduino-libraries/Arduino_CapacitiveTouch?tab=readme-ov-file#compatible-pins).
35+
For both the UNO R4 WiFi® and Minima boards, the compatible pins for capacitive touch are listed in the [Arduino_CapacitiveTouch library documentation](https://github.com/arduino-libraries/Arduino_CapacitiveTouch?tab=readme-ov-file#compatible-pins).
3636

3737
**Arduino® UNO-R4 Minima:**
3838

@@ -50,7 +50,7 @@ For both the Uno R4 WiFi and Minima boards, the compatible pins for capacitive t
5050
| A2 (D16) | 22 | 2 | (1 << 6) |
5151
| LOVE_BUTTON | 0 | 0 | (1 << 0) |
5252

53-
**Arduino® UNO-R4 WiFi:**
53+
**Arduino® UNO-R4 WiFi®:**
5454

5555
| Arduino Pin | Touch Sensor Channel (TS#) | Channel Control Index (CHAC idx) | Channel Control Bit Mask (CHAC val) |
5656
|--------------|----------------------------|----------------------------------|-------------------------------------|
@@ -83,11 +83,11 @@ For more detailed usage and examples, refer to the [CapacitiveSensor library doc
8383

8484
## Example Code
8585

86-
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.
86+
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.
8787

8888
![How to connect](assets/HoockupGuideExample.png)
8989

90-
***__Note:__ You will first need to install the library [Arduino_CapacitiveTouch](https://docs.arduino.cc/libraries/capacitivesensor/). To do so, open `Arduino IDE: Library Manager``Search "Arduino_CapacitiveTouch"` within _Manage Libraries_ option`Install` .***
90+
**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.
9191

9292
```arduino
9393
#include "Arduino_CapacitiveTouch.h"
@@ -131,4 +131,4 @@ Now that you have learned the basics, here are some fun and interesting project
131131

132132
## Conclusion
133133

134-
Capacitive sensing on the Arduino UNO R4 lets you add intuitive touch controls with minimal hardware, simply pair the board with the `Arduino_CapacitiveTouch` library. Tune the detection threshold for your environment (humidity, nearby electronics, etc.), and you can quickly scale from a single touch button to richer, multi-point interfaces.
134+
Capacitive sensing on the Arduino UNO R4 lets you add intuitive touch controls with minimal hardware, simply pair the board with the `Arduino_CapacitiveTouch` library. Tune the detection threshold for your environment (humidity, nearby electronics, etc.), and you can quickly scale from a single touch button to richer, multi-point interfaces.

0 commit comments

Comments
 (0)