Programming the Petoi Double Touch Sensor
A keyboard equivalent for the Bittle robot
In the next series of posts, we will explore the Petoi sensor pack for robotics, which is a set of 5 sensors that Petoi sells as an accessory for its Bittle robots. These sensors work and can be programmed similar to the Petoi Camera Module which we have discussed in this forum before. If you are interested in our previous posts on the Petoi Camera Module, you can check our tutorial on making Bittle track a ball, and Bittle responding to colors. Just like the camera module, you can attach a wide variety of Arduino sensors to Bittle. There is some great documentation available on the wide variety of sensors you can use at Petoi’s page on extensible modules.
Double touch sensor
To start with, we choose one of the easiest sensors, the double touch sensor. The double touch sensor contains two touch parts which can detect changes in capacitance when the sensor is touched (the same way your mobile phone touch screen works). The changes detected are binary, that is, for each sensor you can dec…