Hello everyone. I am in need of support with regards to the Grove Beginner Kit for Arduino.
I work for school that adquied a dozen of them for last year’s cycle and went through the projects with very few problems but this time we are starting the course again and we wanted to reset the GBKs to the Demo Mode which has become very difficult.
I started by downloading the GroveBeginnerKitFirmwareFINAL.ZIP file from the official Seeed Wiki, then proceeded to extract the content and open the Grove_Starter_Kit.ino file with the Arduino IDE.
When trying to compile the code I stumbled with some compilation issues. Here are the steps I followed.
-
#include <U8g2lib.h> ---- fatal error:~~~~~~: No such file or directory. ---- This library was not yet installed so i went to Sketch → Include Library → Manage Libraries, then I searched for “U8g2” and installed U8g2 by oliver, Version 2.33.15. This solved this particular problem.
-
#include <MsTimer2.h> ---- fatal error:~~~~~~: No such file or directory. ---- Same as before, I searched for the library and installed MsTimer2 by Javier Valencia, version 1.1. Problem solved.
-
#include “DHT.h” ---- fatal error:~~~~~~: No such file or directory. ---- This time I could not find a library so I searched for the file in the Grove_Starter_Kit folder. I found it, copied it and pasted it in the same place as the Grove.ino file. Problem apparently solved.
-
#include “Seeed_BMP280.h”, same as with step 3
-
#include “LIS3DHTR.h”, same as steps 3 and 4.
I thought whis would fix the problems and the program partially compiled but the following errors occurred:
C:\Users\LABMAY~1\AppData\Local\Temp\ccNiNmmd.ltrans0.ltrans.o: In function `global constructors keyed to 65535_0_Grove_Starter_Kit.ino.cpp.o.17423':
<artificial>:(.text.startup+0x1e6): undefined reference to `DHT::DHT(unsigned char, unsigned char, unsigned char)'
<artificial>:(.text.startup+0x1f0): undefined reference to `LIS3DHTR<TwoWire>::LIS3DHTR()'
C:\Users\LABMAY~1\AppData\Local\Temp\ccNiNmmd.ltrans0.ltrans.o: In function `setup':
C:\Users\LAB MAYORES\Desktop\GROVE\Grove_Starter_Kit/Grove_Starter_Kit.ino:93: undefined reference to `BMP280::init(int)'
C:\Users\LAB MAYORES\Desktop\GROVE\Grove_Starter_Kit/Grove_Starter_Kit.ino:97: undefined reference to `LIS3DHTR<TwoWire>::begin(TwoWire&, unsigned char)'
C:\Users\LAB MAYORES\Desktop\GROVE\Grove_Starter_Kit/Grove_Starter_Kit.ino:100: undefined reference to `LIS3DHTR<TwoWire>::setOutputDataRate(odr_type_t)'
C:\Users\LAB MAYORES\Desktop\GROVE\Grove_Starter_Kit/Grove_Starter_Kit.ino:102: undefined reference to `LIS3DHTR<TwoWire>::operator bool()'
C:\Users\LABMAY~1\AppData\Local\Temp\ccNiNmmd.ltrans0.ltrans.o: In function `Temp_show':
C:\Users\LAB MAYORES\Desktop\GROVE\Grove_Starter_Kit/Grove_Starter_Kit.ino:305: undefined reference to `DHT::readHumidity()'
C:\Users\LAB MAYORES\Desktop\GROVE\Grove_Starter_Kit/Grove_Starter_Kit.ino:306: undefined reference to `DHT::readTemperature(bool)'
C:\Users\LABMAY~1\AppData\Local\Temp\ccNiNmmd.ltrans0.ltrans.o: In function `Pressure_show':
C:\Users\LAB MAYORES\Desktop\GROVE\Grove_Starter_Kit/Grove_Starter_Kit.ino:329: undefined reference to `BMP280::getPressure()'
C:\Users\LABMAY~1\AppData\Local\Temp\ccNiNmmd.ltrans0.ltrans.o: In function `Acele_show':
C:\Users\LAB MAYORES\Desktop\GROVE\Grove_Starter_Kit/Grove_Starter_Kit.ino:347: undefined reference to `LIS3DHTR<TwoWire>::getAccelerationX()'
C:\Users\LAB MAYORES\Desktop\GROVE\Grove_Starter_Kit/Grove_Starter_Kit.ino:348: undefined reference to `LIS3DHTR<TwoWire>::getAccelerationY()'
C:\Users\LAB MAYORES\Desktop\GROVE\Grove_Starter_Kit/Grove_Starter_Kit.ino:349: undefined reference to `LIS3DHTR<TwoWire>::getAccelerationZ()'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
Now I do not know how to fix this error and I require your assistance. Perhaps the steps I followed were wrong, If you could guide me on the re-installation of the Demo, the school and I would be very grateful.