Nav

How to create a touch sensor for the micro:bit with Electric Paint

Learn how to use micro:bit with Electric Paint

The micro:bit is a great device to get started with electronics and in this tutorial, we are going to show you how to create a touch sensor for the micro:bit with Electric Paint. All you need is a micro:bit, some Electric Paint and a crocodile clip. Feel free to use the code for your next project and, for example, create a touch switch for your application.

The code was written by Barry Byford, who also wrote a comprehensive explanation about the code on his blog post. Thank you for sharing it with us, Barry!

Find out how to use the Printed Sensors

5 Ways to Use Printed Sensors

Make the most of your Electric Paint 10ml Tube

5 Things You Can Do With An Electric Paint 10ml Tube

Ever wondered what to do with your Touch Board? Check out this resource!

5 Ways You Can Use Your Touch Board

Materials

To begin you will need:

Electric Paint 10ml
-
micro:bit
crocodile clip
paper

Step 1

Download the code

First, download the code and upload it to your micro:bit.

Links

Step 2

Prepare your sensor

When you have uploaded the code to your micro:bit, you can paint your sensor with Electric Paint on a piece of paper. We have just painted a simple square, but you can paint anything you like! Make sure to paint a connection to your sensor from the edge of the paper. Leave the paint to dry for about 15 minutes.

Links

Step 3

Connect sensor to the micro:bit

Once the paint has dried, connect the sensor to the pin 0 of the micro:bit with a crocodile clip.

Links

Step 4

Calibrate micro:bit

Connect your micro:bit to power and first press the “A” button. This will calibrate the micro:bit and a number will flash across the screen. Once it has calibrated, press button “B” to start sensing. The middle LED should light up.

Links

Step 5

Touch the sensor

If you now touch the sensor, all of the LEDs should light up. That’s it! You have created a touch sensor for the micro:bit. You can use this code as part of your project and for example, create a touch switch for your application.

Links

Step 6

Try with Printed Sensors

Alternatively, you can use the Printed Sensors to quickly create a touch sensor for the micro:bit. We have cut out a small diamond. Make sure to leave part of the sensor access node to connect to the micro:bit.

Links

Suggested Tutorials

Find out how to use the Printed Sensors

5 Ways to Use Printed Sensors

Make the most of your Electric Paint 10ml Tube

5 Things You Can Do With An Electric Paint 10ml Tube

Ever wondered what to do with your Touch Board? Check out this resource!

5 Ways You Can Use Your Touch Board

Categories

Bare Conductive

Date Posted

2018/10/22

Rating

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