I have added one more expected feature to my cogniglio project, the patting gesture. The original idea was to find a strip of sensor that sensitive to pressure so that when touch it will give some analog input. But instead, I thought of just using my existing sensor which is capasitive sensor. However it is a digital input. So I wrote a code whereby the output will fade to bright the longer input is HIGH and dim back when it is LOW again. Here’s the video.