MPU6050 seismometer

Hello,

First of all, I am very new to Arduino. I have tried some really basic examples and tutorials, but I need to get a more complex project working. I chose this one:
https://create.arduino.cc/projecthub/mircemk/sensitive-mpu6050-seismometer-with-data-logger-9e6bf5

I got all the parts and have built the circuit on a breadboard. I couldn't find any regular Nano boards where I live, so I got a couple of Nano Everys instead. I also couldn't find the same exact accelerometer from the example, so I got a GY-521 instead. The person from the electronics shop assured me they would work just as well as the components in the example (I hope this was true!).

EDITED TO SHOW CURRENT ISSUE:
I managed to verify/compile all the codes from the project, but can't get them to work yet. Since I am very new to Arduino and this is my first test of the Nano Every, I decided
to try and get a super simple example, like the Blink code, working, to see if everything was ok with the board. And it seems it's not! I am using the Arduino IDE on Win10, and this is the code I am trying to upload to the board:

/*
  Blink

  Turns an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino
  model, check the Technical Specs of your board at:
  https://www.arduino.cc/en/Main/Products

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
  modified 8 Sep 2016
  by Colby Newman

  This example code is in the public domain.

  https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(5000);                       // wait for a second
}

This is the error I get when I try to upload it to the board (controllers are installed):

Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Nano Every, None (ATMEGA4809)"

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\Maria\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\Maria\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\Maria\Documents\Arduino\libraries -fqbn=arduino:megaavr:nona4809:mode=off -vid-pid=0000_0000 -ide-version=10819 -build-path C:\Users\Maria\AppData\Local\Temp\arduino_build_938656 -warnings=none -build-cache C:\Users\Maria\AppData\Local\Temp\arduino_cache_233209 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avrdude.path=C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avr-gcc.path=C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -verbose C:\Users\Maria\Desktop\Seismometer\Seismometer\Blink\Blink.ino

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\Maria\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\Maria\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\Maria\Documents\Arduino\libraries -fqbn=arduino:megaavr:nona4809:mode=off -vid-pid=0000_0000 -ide-version=10819 -build-path C:\Users\Maria\AppData\Local\Temp\arduino_build_938656 -warnings=none -build-cache C:\Users\Maria\AppData\Local\Temp\arduino_cache_233209 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avrdude.path=C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avr-gcc.path=C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 -verbose C:\Users\Maria\Desktop\Seismometer\Seismometer\Blink\Blink.ino

Using board 'nona4809' from platform in folder: C:\Users\Maria\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.8.7

Using core 'arduino' from platform in folder: C:\Users\Maria\Documents\ArduinoData\packages\arduino\hardware\megaavr\1.8.7

Detecting libraries used...

"C:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/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=atmega4809 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656\\sketch\\Blink.ino.cpp" -o nul

Generating function prototypes...

"C:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/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=atmega4809 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656\\preproc\\ctags_target_for_gcc_minus_e.cpp"

"C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino/api/deprecated" "-IC:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\hardware\\megaavr\\1.8.7\\cores\\arduino" "-IC:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\hardware\\megaavr\\1.8.7\\variants\\nona4809" "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656\\sketch\\Blink.ino.cpp.o"

Compiling libraries...

Compiling core...

Using previously compiled file: C:\Users\Maria\AppData\Local\Temp\arduino_build_938656\core\variant.c.o

Using precompiled core: C:\Users\Maria\AppData\Local\Temp\arduino_cache_233209\core\core_arduino_megaavr_nona4809_mode_off_b019999f4cb250d18ef2687452c66f19.a

Linking everything together...

"C:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -Wl,--section-start=.text=0x0 -mmcu=atmega4809 -o "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656/Blink.ino.elf" "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656\\sketch\\Blink.ino.cpp.o" "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656\\core\\variant.c.o" "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656/..\\arduino_cache_233209\\core\\core_arduino_megaavr_nona4809_mode_off_b019999f4cb250d18ef2687452c66f19.a" "-LC:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656" -lm

"C:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy" -O binary -R .eeprom "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656/Blink.ino.elf" "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656/Blink.ino.bin"

"C:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656/Blink.ino.elf" "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656/Blink.ino.eep"

"C:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656/Blink.ino.elf" "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656/Blink.ino.hex"

"C:\\Users\\Maria\\Documents\\ArduinoData\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-size" -A "C:\\Users\\Maria\\AppData\\Local\\Temp\\arduino_build_938656/Blink.ino.elf"

Sketch uses 1146 bytes (2%) of program storage space. Maximum is 49152 bytes.

Global variables use 22 bytes (0%) of dynamic memory, leaving 6122 bytes for local variables. Maximum is 6144 bytes.

Forcing reset using 1200bps open/close on port COM1

C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega4809 -cjtag2updi -PCOM1 -b115200 -e -D -Uflash:w:C:\Users\Maria\AppData\Local\Temp\arduino_build_938656/Blink.ino.hex:i -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x00:m {upload.extra_files} 



avrdude: Version 6.3-20190619

         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         Copyright (c) 2007-2014 Joerg Wunsch



         System wide configuration file is "C:\Users\Maria\Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"



         Using Port                    : COM1

         Using Programmer              : jtag2updi

         Overriding Baud Rate          : 115200

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

avrdude: jtagmkII_getsync(): sign-on command: status -1

An error occurred while uploading the sketch

It takes forever to upload that code (over 10 minutes before I get the error message). I am probably doing a hundred things wrong, so I´d appreciate any advice on how to get this project going!

Many thanks,

Xay

No, it doesn't.
Please don't try to paraphrase.

Please post your code, in code tags.

Just edited my post to include the chip code I am trying to verify. The error message was literally 'FilterOnePole' does not name a type, no paraphrasing.

Thanks for the reply!

First off, a Nano Every is very different than a Nano: Nano vs Nano Every

It may be that your "Filters" library doesn't work with a Nano Every. Where did you get it?

Thanks for the reply! I got it from the library manager in the web editor. I searched for Nano Every specific libraries, so I thought it should work?

A commenter on that project had the same problem a year ago. The answer was:

"Use this library:

My bad. Somehow I assumed that was the same Filters library you can find in the library manager, but it seems it's not. I uploaded this one instead and that seems to solve the 'FilterOnePole' problem (yay!).
Editing the post to show my current problem with the project. Thank you johnwasser!

Always better to just post anew. Editing beyond typos makes a mess of the subsequent posts by removing or changing the context they appear to be made in.

If that’s what you meant.

a7

It seems that you’ve learned a valuable lesson about developing a microcontroller project.

Even though devices and libraries have the same name,appearance and other attributes… it’s not LEGO
.
You can’t swap a red block for a blue one without some considered preparation. They’ll fit, and serve the same purpose, but the design won’t work.

I see. There's a lot I need to learn here, but hopefully I'll get it to work soon. Thanks for the reply!