Hello,
I have been trying to follow Elegoo's Robot Car 4.0 instructions and cannot get their SmartRobotCarV4.0_V1_20201229 file to upload to the car. Things I have done:
1.) As per their instructions, I have copied all their libraries to my Arduino libraries folder. When referenced in the editor, those libraries turn orange, which from my understanding is a good thing.
2.) I have updated the driver files for the board on COM3 to Arduino Uno. The tutorial references Arduino Genuino Uno, but even if I force the installation of those drivers, Arduino IDE does not recognize the car as AGU, it just always recognizes it as AU (Arduino Uno).
3.) When I try to upload the file to the car, I get the following craziness. I am new to Arduino and have been trying to debug this code on my own, but I'm not certain that I can really fix these things. Can anyone help me decipher what I need to do to get my car back operational?
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\I2Cdev.cpp:64:14: warning: #warning Using current Arduino IDE with Wire library is functionally limiting. [-Wcpp]
#warning Using current Arduino IDE with Wire library is functionally limiting.
^~~~~~~
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\I2Cdev.cpp:65:14: warning: #warning Arduino IDE v1.0.1+ with I2CDEV_BUILTIN_FASTWIRE implementation is recommended. [-Wcpp]
#warning Arduino IDE v1.0.1+ with I2CDEV_BUILTIN_FASTWIRE implementation is recommended.
^~~~~~~
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\I2Cdev.cpp:66:14: warning: #warning This I2Cdev implementation does not support: [-Wcpp]
#warning This I2Cdev implementation does not support:
^~~~~~~
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\I2Cdev.cpp:67:14: warning: #warning - Timeout detection (some Wire requests block forever) [-Wcpp]
#warning - Timeout detection (some Wire requests block forever)
^~~~~~~
In file included from C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\DeviceDriverSet_xxx0.h:15:0,
from C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\DeviceDriverSet_xxx0.cpp:9:
C:\Users\chads\Documents\Arduino\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000
# pragma message "FastLED version 3.004.000"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\DeviceDriverSet_xxx0.h:15:0,
from C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp:14:
C:\Users\chads\Documents\Arduino\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000
# pragma message "FastLED version 3.004.000"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\DeviceDriverSet_xxx0.cpp: In member function 'void DeviceDriverSet_Motor::DeviceDriverSet_Motor_control(boolean, uint8_t, boolean, uint8_t, boolean)':
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\DeviceDriverSet_xxx0.cpp:228:7: warning: case label value exceeds maximum value for type
case direction_void:
^~~~
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\DeviceDriverSet_xxx0.cpp:217:14: warning: switch condition has boolean value [-Wswitch-bool]
switch (direction_A) //movement direction control
^
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\DeviceDriverSet_xxx0.cpp:251:7: warning: case label value exceeds maximum value for type
case direction_void:
^~~~
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\DeviceDriverSet_xxx0.cpp:240:14: warning: switch condition has boolean value [-Wswitch-bool]
switch (direction_B)
^
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp: In function 'bool ApplicationFunctionSet_SmartRobotCarLeaveTheGround()':
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp:127:13: warning: 'bool ApplicationFunctionSet_SmartRobotCarLeaveTheGround()' was declared 'extern' and later 'static' [-fpermissive]
static bool ApplicationFunctionSet_SmartRobotCarLeaveTheGround(void)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp:100:6: note: previous declaration of 'bool ApplicationFunctionSet_SmartRobotCarLeaveTheGround()'
bool ApplicationFunctionSet_SmartRobotCarLeaveTheGround(void);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp: In function 'void ApplicationFunctionSet_SmartRobotCarLinearMotionControl(SmartRobotCarMotionControl, uint8_t, uint8_t, uint8_t, uint8_t)':
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp:151:13: warning: 'void ApplicationFunctionSet_SmartRobotCarLinearMotionControl(SmartRobotCarMotionControl, uint8_t, uint8_t, uint8_t, uint8_t)' was declared 'extern' and later 'static' [-fpermissive]
static void ApplicationFunctionSet_SmartRobotCarLinearMotionControl(SmartRobotCarMotionControl direction, uint8_t directionRecord, uint8_t speed, uint8_t Kp, uint8_t UpperLimit)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp:101:6: note: previous declaration of 'void ApplicationFunctionSet_SmartRobotCarLinearMotionControl(SmartRobotCarMotionControl, uint8_t, uint8_t, uint8_t, uint8_t)'
void ApplicationFunctionSet_SmartRobotCarLinearMotionControl(SmartRobotCarMotionControl direction, uint8_t directionRecord, uint8_t speed, uint8_t Kp, uint8_t UpperLimit);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp: In function 'void ApplicationFunctionSet_SmartRobotCarMotionControl(SmartRobotCarMotionControl, uint8_t)':
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp:205:13: warning: 'void ApplicationFunctionSet_SmartRobotCarMotionControl(SmartRobotCarMotionControl, uint8_t)' was declared 'extern' and later 'static' [-fpermissive]
static void ApplicationFunctionSet_SmartRobotCarMotionControl(SmartRobotCarMotionControl direction, uint8_t is_speed)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp:102:6: note: previous declaration of 'void ApplicationFunctionSet_SmartRobotCarMotionControl(SmartRobotCarMotionControl, uint8_t)'
void ApplicationFunctionSet_SmartRobotCarMotionControl(SmartRobotCarMotionControl direction, uint8_t is_speed);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp: In member function 'void ApplicationFunctionSet::CMD_UltrasoundModuleStatus_xxx0(uint8_t)':
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp:1519:48: warning: invalid conversion from 'volatile uint16_t* {aka volatile unsigned int*}' to 'uint16_t* {aka unsigned int*}' [-fpermissive]
AppULTRASONIC.DeviceDriverSet_ULTRASONIC_Get(&UltrasoundData_cm /*out*/); //Ultrasonic data
^~~~~~~~~~~~~~~~~~
In file included from C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp:14:0:
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\DeviceDriverSet_xxx0.h:132:8: note: initializing argument 1 of 'void DeviceDriverSet_ULTRASONIC::DeviceDriverSet_ULTRASONIC_Get(uint16_t*)'
void DeviceDriverSet_ULTRASONIC_Get(uint16_t *ULTRASONIC_Get /*out*/);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp: In member function 'void ApplicationFunctionSet::ApplicationFunctionSet_SerialPortDataAnalysis()':
C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\ApplicationFunctionSet_xxx0.cpp:1774:15: warning: invalid conversion from 'const char*' to 'uint8_t {aka unsigned char}' [-fpermissive]
uint8_t c = "";
^~
In file included from C:\Users\chads\Documents\Arduino\libraries\FastLED\src/bitswap.h:4:0,
from C:\Users\chads\Desktop\ELEGOO Smart Robot Car Kit V4.0 2021.12.24\02 Manual & Main Program & APP\02 Main Program (Arduino UNO)\TB6612 & MPU6050\SmartRobotCarV4.0_V1_20201229\SmartRobotCarV4.0_V1_20201229.ino:3:
C:\Users\chads\Documents\Arduino\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000
# pragma message "FastLED version 3.004.000"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files (x86)\Arduino\libraries\I2Cdev\I2Cdev.cpp:64:14: warning: #warning Using current Arduino IDE with Wire library is functionally limiting. [-Wcpp]
#warning Using current Arduino IDE with Wire library is functionally limiting.
^~~~~~~
C:\Program Files (x86)\Arduino\libraries\I2Cdev\I2Cdev.cpp:65:14: warning: #warning Arduino IDE v1.0.1+ with I2CDEV_BUILTIN_FASTWIRE implementation is recommended. [-Wcpp]
#warning Arduino IDE v1.0.1+ with I2CDEV_BUILTIN_FASTWIRE implementation is recommended.
^~~~~~~
C:\Program Files (x86)\Arduino\libraries\I2Cdev\I2Cdev.cpp:66:14: warning: #warning This I2Cdev implementation does not support: [-Wcpp]
#warning This I2Cdev implementation does not support:
^~~~~~~
C:\Program Files (x86)\Arduino\libraries\I2Cdev\I2Cdev.cpp:67:14: warning: #warning - Timeout detection (some Wire requests block forever) [-Wcpp]
#warning - Timeout detection (some Wire requests block forever)
^~~~~~~
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::I2Cdev()'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::I2Cdev()'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::writeBytes(unsigned char, unsigned char, unsigned char, unsigned char*)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::writeByte(unsigned char, unsigned char, unsigned char)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::writeWords(unsigned char, unsigned char, unsigned char, unsigned int*)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::writeWord(unsigned char, unsigned char, unsigned int)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::readBytes(unsigned char, unsigned char, unsigned char, unsigned char*, unsigned int)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::readByte(unsigned char, unsigned char, unsigned char*, unsigned int)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::readBit(unsigned char, unsigned char, unsigned char, unsigned char*, unsigned int)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::readBits(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char*, unsigned int)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::writeBit(unsigned char, unsigned char, unsigned char, unsigned char)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::readTimeout'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::writeBits(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::readWords(unsigned char, unsigned char, unsigned char, unsigned int*, unsigned int)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::readWord(unsigned char, unsigned char, unsigned int*, unsigned int)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::readBitW(unsigned char, unsigned char, unsigned char, unsigned int*, unsigned int)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::readBitsW(unsigned char, unsigned char, unsigned char, unsigned char, unsigned int*, unsigned int)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::writeBitW(unsigned char, unsigned char, unsigned char, unsigned int)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
libraries\I2Cdev\I2Cdev.cpp.o (symbol from plugin): In function `I2Cdev::I2Cdev()':
(.text+0x0): multiple definition of `I2Cdev::writeBitsW(unsigned char, unsigned char, unsigned char, unsigned char, unsigned int)'
sketch\I2Cdev.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "bitswap.h"
Used: C:\Users\chads\Documents\Arduino\libraries\FastLED
Not used: C:\Program Files (x86)\Arduino\libraries\FastLED-master
exit status 1
Error compiling for board Arduino Uno.