Beacon

In this tutorial you will learn how to turn any conductive surface into a capacitive touch sensor. This project illustrates how to use capacitive touch to turn on a motor (fan) and neopixel. In this example, all of the components were custom designed and built specifically for this application. Since this method can be used for many different applications, this instructable will cover the behind the scenes making of the circuit and code.

Beacon
click the link below to see what your project can do!

Step 1: Step 1: Gather Materials

The main components needed for this example are:

Arduino Uno
12volt fan (3 inch)
small breadboard
neopixel
a lidded jar
wire mesh
confetti
12volt wall plug adapter
22k ohm resistor
100k ohm resistor

The video above illustrates the first stages of prototyping the capacitive touch switch. The ball jar and foam sqaures are a stand-in for the final product, they do a great job of illustrating the animation that will happen in finished piece. Although the conductive fabric is acting as a stand-in for the actual switch, you can easily imagine that if it were hooked up to the metal lid of the jar, it would act the same way.

Step 2: Step 2: Download the code

Download the code

Below is the code used to create this animation.
It is a combination of code taken from Arduino’s capacitive touch library, and Adafruit’s neopixel code.
You must download the capacitive touch library and import it into your Arduino to use this code.

Use your serial monitor to calibrate your capacitive sensor. Note that your values will change depending on whether or not you are plugged into your computer, or connected to earth ground, etc.

calibrate your switch by changing the values in the if statement that reads:
if (total1 <=50)

this if statement controls both the motor and the neopixel.

 

For more detail: Beacon 


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top