Nav

How to fade an LED on with proximity and the Touch Board

Learn how to fade an LED on with proximity and the Touch Board

In addition to touch, the Touch Board can also detect proximity. With the proximity function of the board you can trigger an MP3 from distance, or you can fade an LED on and off by approaching the sensor with your hand. In this tutorial we’re going to show you how to fade an LED on with proximity and the Touch Board, creating a dimmer effect.

Learn how to use Electric Paint with LEDs

How to use Electric Paint with LEDs

This tutorial will show you how to debug the Touch Board and get started with your project

Touch Board Troubleshooting

Learn how to use the Touch Board and LEDs

Touch Board and LEDs

Materials

To begin you will need:

Touch Board
Printed Sensors
-
headers
LED
jumper wires
270Ω resistor
crocodile clip

Step 1

Set-up the Touch Board

First, you need to set up your Touch Board. If you haven’t done this yet, you can do so by following this set-up tutorial.

You then need to upload the “Prox_LED” code. Select the sketch from the Sketchbook and hit upload.

Links
Touch Board Arduino next to computer screen

Step 2

Approach electrode E0

When you now approach E0 with your finger, you should see that the LED marked with an “L” on the Touch Board fades on and off.

Links

Step 3

Using 5mm LEDs

You can also use 5mm LEDs with the Touch Board. If you haven’t used them with the Touch Board before, have a look at our LED and Touch Board tutorial.

Connect an LED to pin 13, but don’t forget to include a resistor! When you now turn the Touch Board back on and approach E0 with your finger, the LED will fade on and off.

Links

Step 4

Add Printed Sensors

Just approaching an electrode with a finger can be a bit tricky as it’s quite small. You can make it easier by increasing the sensor size using a Printed Sensor. Simply attach a Printed Sensor to electrode E0, by using some crocodile clips. When you now turn the board back on and approach the sensor with your hand, the LED will fade on and off more smoothly.

Links

Step 5

Adjusting volume with proximity

We have a similar code “prox_volume”, which will allow you to adjust the volume when you approach E0. Simply upload this sketch to your Touch Board and play a track by touching an electrode from E1 to E11. If you now approach E0, this will decrease the volume.

Links

Step 6

Troubleshooting

That’s all there is to know about how to fade an LED on with proximity and the Touch Board! We’d love to see your creations so feel free to send us your work at info@bareconductive.com or via Instagram or Twitter.

Also contact us if you have any questions!

Links

Suggested Tutorials

Learn how to use Electric Paint with LEDs

How to use Electric Paint with LEDs

This tutorial will show you how to debug the Touch Board and get started with your project

Touch Board Troubleshooting

Learn how to use the Touch Board and LEDs

Touch Board and LEDs

Categories

Bare Conductive

Instructions

Printed Sensors

Touch Board

Date Posted

2018/07/05

Rating

0.00 avg. rating (0% score) - 0 votes