# Capacitive Touch Sensor

**URL:** <https://forum.core-electronics.com.au/t/capacitive-touch-sensor/2626>\
**Category:** Support\
**Created:** [7 May 2018 01:56 UTC](https://forum.core-electronics.com.au/t/capacitive-touch-sensor/2626 "2018-05-07T01:56:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Stephen](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/stephen/32/1599_2.png) [@Stephen](https://forum.core-electronics.com.au/u/Stephen)\
**Post date:** [7 May 2018 03:45 UTC](https://forum.core-electronics.com.au/t/capacitive-touch-sensor/2626/3 "2018-05-07T03:45:30Z")

</div>

Hi Kieran,

There are a couple ways that you can control your trains through capacitive touch. You will probably need a micro-controller to sense the capacitive touch, and have the micro-controller trigger some relays to turn your trains power on and off. Depending on your level of programming proficiency, you could either use a traditional  
Arduino board and a capacitive touch shield such as this one:

> **[Adafruit 12 x Capacitive Touch Shield for Arduino - MPR121](https://core-electronics.com.au/adafruit-12-x-capacitive-touch-shield-for-arduino-mpr121.html)**
>
> This touch-able add on shield for Arduinos will inspire your next interactive project with 12 capacitive touch sensors. Capacitive touch sensing works by detecting...

Or you could use something like the [Adafruit Circuit Playground Express](https://core-electronics.com.au/circuit-playground-express-developer-edition.html) that has capacitive touch sensitive pads built in. There are only 7 pads on the Circuit Playground though, so you could only control 4 trains with a single controller. The big advantage is that you could program it with MakeCode which is much easier than Arduino. Plus we have tutorials on how to use the capacitive touch feature of the Circuit Playground Express:

> [@Capacitive Touch Keyboard with MakeCode: Adafruit Circuit Playground Express](https://forum.core-electronics.com.au/t/capacitive-touch-keyboard-with-makecode-adafruit-circuit-playground-express/2448):
>
> Stephen just shared a new tutorial: ["Capacitive Touch Keyboard with MakeCode: Adafruit Circuit Playground Express"](http://core-electronics.com.au/tutorials/capacitive-touch-keyboard-makecode-adafruit-circuit-playground-express-tutorial.html) [image] On the lower left-hand portion of every Adafruit Circuit Playground Express, there is a small onboard speaker and class D amplifier. This allows you to make some pretty loud sounds! The amplifier is also connected to the true analog output on pin A0,… [Read more](http://core-electronics.com.au/tutorials/capacitive-touch-keyboard-makecode-adafruit-circuit-playground-express-tutorial.html)

and if you want to program using CircuitPython:

> [@Capacitive Touch Keyboard with CircuitPython: Adafruit Circuit Playground Express](https://forum.core-electronics.com.au/t/capacitive-touch-keyboard-with-circuitpython-adafruit-circuit-playground-express/2474):
>
> Stephen just shared a new tutorial: ["Capacitive Touch Keyboard with CircuitPython: Adafruit Circuit Playground Express"](http://core-electronics.com.au/tutorials/capacitive-touch-keyboard-with-circuitpython-adafruit-circuit-playground-express-tutorial.html) [image] On the lower left-hand portion of every Adafruit Circuit Playground Express, there is a small onboard speaker and class D amplifier. This allows you to make some pretty loud sounds! The amplifier is also connected to the true analog output on pin A0,… [Read more](http://core-electronics.com.au/tutorials/capacitive-touch-keyboard-with-circuitpython-adafruit-circuit-playground-express-tutorial.html)

I hope that helps! Please share your completed project with us when you have finished it!

---

_[View the full topic](https://forum.core-electronics.com.au/t/capacitive-touch-sensor/2626)._
