Go Down

Topic: Project 13-Touchy-feely lamp : Can´t put the CapacitiveSensor Libraries to work (Read 4734 times) previous topic - next topic

Funketek

Hello,

I have search on many forums which adressed to similar problems as mine: how to put the libraries "CapacitiveSensor" to work, but none has helped me.

I downloaded it and put it on the folder Arduino->Sketch->libraries , having created this folder like they told to do on page 137 of the Starter kit book.

But as I compiled the CapacitiveSensorSketch it gave me a error similar to the one of this forum :
http://forum.arduino.cc/index.php?PHPSESSID=gvq8kcu2s1voj2eoko1jjgh3s3&topic=187165.0

Also a similar error happened on the sketch designed for Touchy-feely lamp project .

I downloaded the other libraries folder someone gave on that same forum, but the same problem continued to happen.

I changed the name to "CapacitiveSensor" (as suggested on this forum http://forum.arduino.cc/index.php?topic=127732.0)  and even extra added the librarie on the option on Arduino Compiler Sketch->Add Library
and still the same problems.

Can someone help me here, please?

Thank you for the attention.

Roduino

Hi,

What is your directory structure for the libraries?

Is there 2 library directories in the CapacitiveSensor pathname??

If so try moving the CapacitiveSensor directory up to the first library directory.

Worked for me.

eg.

The Download zip file has the following directory structures ....

arduino-libraries-CapacitiveSensor-3e33f75/libraries/CapacitiveSensor

and

arduino-libraries-CapacitiveSensor-3e33f75/libraries/CapacitiveSensorDue

whereas (on my linux pc)

In my preferences for Sketchbook location I have ... /home/username/Documents/Ardunio (check yours)

thus the Arduino library directory is

/home/username/Documents/Ardunio/libraries

If I unzip the d/l file into my Arduino library directory, the zip directory  structure is appended to the arduino libray directory, thus creating the following ...

/home/username/Documents/Ardunio/libraries/arduino-libraries-CapacitiveSensor-3e33f75/libraries/CapacitiveSensor

note the 2 libraries directories.

I simply moved the CapacitiveSensor directory into the first libraries directory.

And all was ok  !  :D

Cheers!

Go Up