INA219 sensor library error on arduino ide

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Post Reply
User avatar
thaicao0108
 
Posts: 1
Joined: Tue Apr 02, 2024 11:01 am

INA219 sensor library error on arduino ide

Post by thaicao0108 »

So i just downloaded and installed the INA219 library on arduino ide, and when i compile my code, the ide gives me an erro "no such file" like this image even though i installed and uninstalled it for many times. Can someon help me with my issues. Thank you so much. The ide screen:
FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\Thai Cao\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\Thai Cao\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...
C:\Users\Thai Cao\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\Thai Cao\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Thai Cao\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\Thai Cao\AppData\Local\Temp\arduino\sketches\D3BA2810A9753CCF3353F0271402DEFF\sketch\isc-voc.ino.cpp -o nul
Alternatives for Adafruit_INA219.h: [Adafruit [email protected]]
ResolveLibrary(Adafruit_INA219.h)
-> candidates: [Adafruit [email protected]]
C:\Users\Thai Cao\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\Thai Cao\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Thai Cao\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\Thai Cao\BANNED\Tài BANNED\Arduino\libraries\Adafruit_INA219 C:\Users\Thai Cao\AppData\Local\Temp\arduino\sketches\D3BA2810A9753CCF3353F0271402DEFF\sketch\isc-voc.ino.cpp -o nul
Alternatives for Adafruit_INA219.h: [Adafruit [email protected]]
ResolveLibrary(Adafruit_INA219.h)
-> candidates: [Adafruit [email protected]]
C:\Users\Thai Cao\BANNED\Máy BANNED\isc-voc\isc-voc.ino:1:10: fatal error: Adafruit_INA219.h: No such file or directory
compilation terminated.
exit status 1

Compilation error: Adafruit_INA219.h: No such file or directory

User avatar
mikeysklar
 
Posts: 14226
Joined: Mon Aug 01, 2016 8:10 pm

Re: INA219 sensor library error on arduino ide

Post by mikeysklar »

Your Arduino IDE might be getting confused about the installed libraries.

What version of the IDE are you using? It looks quite dated if I'm reading the version info correctly (1.8.6)?

Can you move the existing Arduino15 folder to another name and do a fresh Arduino IDE install with v2.3.2?

Post Reply
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”