Page 1 of 1

getting error: Adafruit_Sensor.h: No such file or directory

Posted: Sat Oct 27, 2018 4:20 pm
by sansupercool
I am tryying to do my first arduino project on my lattepanda EP,
I followed the instructions:

but when I try to compile I get this error :

Code: Select all

Arduino: 1.8.7 Hourly Build 2018/10/24 04:33 (Windows 10), Board: "Arduino Leonardo"

In file included from C:\Users\LattePanda\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:22:0:

C:\Users\LattePanda\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory

compilation terminated.

exit status 1
Error compiling for board Arduino Leonardo.
Invalid library found in C:\Users\LattePanda\Documents\Arduino\libraries\libraries: no headers files (.h) found in C:\Users\LattePanda\Documents\Arduino\libraries\libraries
Invalid library found in C:\Users\LattePanda\Documents\Arduino\libraries\libraries: no headers files (.h) found in C:\Users\LattePanda\Documents\Arduino\libraries\libraries

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
On Arduino IDE i click on manage library and searched for Arduio Sensor but there is nothig like that, I have installed arduino DHT22 sensor library already.

Please help :!:

Re: getting error: Adafruit_Sensor.h: No such file or directory

Posted: Sat Oct 27, 2018 4:43 pm
by sansupercool
I fix this prolem already now I am getting a new error

Code: Select all

Arduino: 1.8.7 Hourly Build 2018/10/24 04:33 (Windows 10), Board: "Arduino Leonardo"

In file included from C:\Users\LattePanda\Downloads\DHT_project\DHT_Firmata\DHT_Firmata.ino:40:0:

C:\Program Files (x86)\arduino-nightly\libraries\Servo\src/Servo.h:84:0: warning: "MAX_SERVOS" redefined

 #define MAX_SERVOS   (_Nbr_16timers  * SERVOS_PER_TIMER)

 ^

In file included from C:\Users\LattePanda\Downloads\DHT_project\DHT_Firmata\DHT_Firmata.ino:1:0:

C:\Program Files (x86)\arduino-nightly\libraries\Firmata/Boards.h:32:0: note: this is the location of the previous definition

 #define MAX_SERVOS 0

 ^

Sketch uses 20248 bytes (70%) of program storage space. Maximum is 28672 bytes.
Global variables use 1319 bytes (51%) of dynamic memory, leaving 1241 bytes for local variables. Maximum is 2560 bytes.


avrdude: ser_drain(): read error: The I/O operation has been aborted because of either a thread exit or an application request.


avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.


avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.


avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.


avrdude: butterfly_recv(): programmer is not responding
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.


avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: leave prog mode
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.


avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: exit bootloader
avrdude: error: programmer did not respond to command: exit bootloader

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Re: getting error: Adafruit_Sensor.h: No such file or directory

Posted: Wed Nov 21, 2018 8:22 pm
by LattePanda
sansupercool wrote:
Sat Oct 27, 2018 4:43 pm
I fix this prolem already now I am getting a new error

Code: Select all

Arduino: 1.8.7 Hourly Build 2018/10/24 04:33 (Windows 10), Board: "Arduino Leonardo"

In file included from C:\Users\LattePanda\Downloads\DHT_project\DHT_Firmata\DHT_Firmata.ino:40:0:

C:\Program Files (x86)\arduino-nightly\libraries\Servo\src/Servo.h:84:0: warning: "MAX_SERVOS" redefined

 #define MAX_SERVOS   (_Nbr_16timers  * SERVOS_PER_TIMER)

 ^

In file included from C:\Users\LattePanda\Downloads\DHT_project\DHT_Firmata\DHT_Firmata.ino:1:0:

C:\Program Files (x86)\arduino-nightly\libraries\Firmata/Boards.h:32:0: note: this is the location of the previous definition

 #define MAX_SERVOS 0

 ^

Sketch uses 20248 bytes (70%) of program storage space. Maximum is 28672 bytes.
Global variables use 1319 bytes (51%) of dynamic memory, leaving 1241 bytes for local variables. Maximum is 2560 bytes.


avrdude: ser_drain(): read error: The I/O operation has been aborted because of either a thread exit or an application request.


avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.


avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.


avrdude: butterfly_recv(): programmer is not responding
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.


avrdude: butterfly_recv(): programmer is not responding
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.


avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: leave prog mode
avrdude: ser_send(): write error: sorry no info avail
avrdude: ser_recv(): read error: The device does not recognize the command.


avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: exit bootloader
avrdude: error: programmer did not respond to command: exit bootloader

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Try re-install your Arduino IDE. Looks like that your Arduino IDE has pre-installed the Servo library for twice in user folder and system library both...Maybe.

Re: getting error: Adafruit_Sensor.h: No such file or directory

Posted: Thu Nov 22, 2018 9:22 am
by sansupercool
I started using particle photon that was quite easy to set up , maybe I will give it a try.

Re: getting error: Adafruit_Sensor.h: No such file or directory

Posted: Thu Nov 29, 2018 2:26 pm
by LattePanda
sansupercool wrote:
Thu Nov 22, 2018 9:22 am
I started using particle photon that was quite easy to set up , maybe I will give it a try.
Interesting. Do you mean connecting photon on LattePanda? Look forward to your updates.

Re: getting error: Adafruit_Sensor.h: No such file or directory

Posted: Thu Oct 03, 2019 8:00 pm
by sansupercool
LattePanda wrote:
Thu Nov 29, 2018 2:26 pm
sansupercool wrote:
Thu Nov 22, 2018 9:22 am
I started using particle photon that was quite easy to set up , maybe I will give it a try.
Interesting. Do you mean connecting photon on LattePanda? Look forward to your updates.
No Man, I meant I stopped using LP